img402

image-hosting

开发编程v1.2.0
作者:img402更新于 2026-07-26共 5 个版本 · 最新版本发布于 2026-07-26@clawhub_img402/image-hosting
脚本工具

据 AlphaMoat 统计,截至 2026-09,image-hosting 累计下载 3,774 次、获 7 个星标,在全部 5,078 个 AI 技能中排名第 2,812 位,在「开发编程」分类(577 个)中排名第 365 位。

累计安装
105
累计下载
3,774
星标
7
全站排名
#2,812
全站前 56% · 「开发编程」前 64%
平台累计安装累计下载星标评论
ClawHub ↗1053,7747-
SkillHub ↗1033,4437—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

指南区分免费与付费上传,并说明文件大小会影响保留期限;带链接即可公开访问,因此不应上传内部截图、个人信息或密钥等敏感内容。执行上传前应确认文件适合公开分享。

资料发布于 2026-10-29

可以用来做什么

  • 为文档或消息托管可公开分享的图片。
  • 在上传前查看大小、保留期和公开访问限制。

什么时候用

  • 需要获得可嵌入文档或社交帖文的图片链接时。
  • 图片包含敏感信息或是否适合公开尚未确认时,不应上传。

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

说明这张图片上传后会如何访问,以及需要注意哪些公开性限制。
在上传前检查图片是否包含凭据、个人信息或内部界面内容。

月度数据趋势

累计下载3,774
1,7772,8503,9222026-03 · 累计下载 1,9252026-05 · 累计下载 2,4362026-06 · 累计下载 2,7522026-07 · 累计下载 3,2442026-08 · 累计下载 3,5572026-09 · 累计下载 3,77426-0326-09
星标7
6772026-03 · 星标 62026-05 · 星标 62026-06 · 星标 72026-07 · 星标 72026-08 · 星标 72026-09 · 星标 726-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,774—7
2026-083,557+9.6%7
2026-073,244+17.9%7
2026-062,752+13.0%7
2026-052,436—6
2026-031,925—6

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

4.4 KB · ClawHub v1.2.0
---
name: image-hosting
description: >
  Upload images to img402.dev and get a public URL. Images 1MB or under are free
  AND permanent — no account, no API key, no payment. Larger images (up to 10MB)
  are free for 30 days, or permanent for $0.01 USDC via x402. Use when the agent
  needs a hosted image URL — for sharing in messages, embedding in documents,
  posting to social platforms, or any context that requires a public link to an
  image file.
metadata:
展开全部(共 100 行)
  openclaw:
    requires:
      bins:
        - curl
---

# Image Hosting — img402

Upload an image to [img402.dev](https://img402.dev) and get a public URL. No account, no API key, no config.

**Most uploads are free and permanent.** A median agent screenshot is ~100 KB, well under the 1 MB threshold where free hosting never expires. Reach for a paid tier only when the file is genuinely large.

## Pick a tier

| Upload | Price | Retention | Use when |
|--------|-------|-----------|----------|
| ≤ 1 MB | $0 | **Permanent** | Almost everything — screenshots, diagrams, charts |
| 1–10 MB | $0 | 30 days | Large images you only need short-term |
| Up to 10 MB | $0.01 USDC | **Permanent** | Large images that must outlive the month |

\* Paid permanence is service-life retention. If img402 ever shuts down, there's a 90-day on-site notice before takedown. See [Terms § 2A](https://img402.dev/terms).

Size is never the reason to pay — 10 MB uploads are free. You pay only to keep an image over 1 MB alive past 30 days.

## Quick reference

```bash
# Upload (multipart)
curl -s -X POST https://img402.dev/api/free -F image=@/path/to/image.png

# Response — expiresAt is null for images 1MB and under
# {"url":"https://i.img402.dev/aBcDeFgHiJ.png","id":"aBcDeFgHiJ","contentType":"image/png","sizeBytes":182400,"expiresAt":null}
```

## Workflow

1. **Get image**: Use an existing file, or generate/download one.
2. **Upload**:
   ```bash
   curl -s -X POST https://img402.dev/api/free -F image=@/path/to/image.png
   ```
3. **Check `expiresAt`**: `null` means permanent. A timestamp means the file was over 1 MB and will be deleted then.
4. **Use the URL**: The `url` field is a public CDN link. Embed it wherever needed.

If you want a permanent URL and the file is over 1 MB, either shrink it below 1 MB:

```bash
sips -Z 1600 /path/to/image.png                                  # macOS — scale longest edge to 1600px
convert /path/to/image.png -resize 1600x1600 /path/to/image.png  # ImageMagick
```

…or use the paid flow below.

## Constraints

- **Max size**: 10 MB (every tier)
- **Formats**: PNG, JPEG, GIF, WebP
- **Rate limit**: 100,000 free uploads/day globally, 1,000/day per IP
- **No auth required**

## Paid tier

When you need permanence for a file over 1 MB, use the paid flow. Two steps: pay for an upload token via x402, then upload the image with that token.

```bash
# Step 1: Get an upload token (requires x402 payment)
POST https://img402.dev/api/upload/token   # $0.01 USDC → permanent, up to 10MB
# → {"token": "a1b2c3...", "expiresAt": "..."}

# Step 2: Upload with the token
curl -s -X POST https://img402.dev/api/upload \
  -H "X-Upload-Token: a1b2c3..." \
  -F image=@/path/to/image.png
# → {"url":"...", "id":"...", "contentType":"...", "sizeBytes":..., "expiresAt":null}
```

The `expiresAt` in step 1 is the token's expiry (10 minutes), not the image's. The uploaded image's `expiresAt` is `null` — permanent.

`POST /api/upload/token/permanent` still exists at $1.00 USDC. It's a legacy alias that does exactly what the $0.01 route now does; don't use it for new work.

x402 payment is handled by an x402-capable client (the [Payments MCP tool](https://docs.cdp.coinbase.com/mcp), `@x402/client`, or any other). The client handles the 402 challenge, signs the on-chain payment, and retries automatically. See https://img402.dev/blog/paying-x402-apis for details.

## Retention is fixed at upload

The `expiresAt` you get back is the commitment for that image. Later pricing changes apply to new uploads only — an image already uploaded keeps the retention it was given, and img402 won't silently extend it.

## Public access

**Uploaded images are reachable by anyone with the URL — there is no auth on serving.** Do not upload screenshots of internal systems, personal information, secrets, API keys, or anything else that shouldn't be public. Since most uploads are now permanent, treat every upload as public and irreversible: to remove an image, email [email protected].

「开发编程」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。