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
累計下載
3774
星標
7
全站排名
#2,812
全站前 56% · 「開發程式設計」前 64%
平台累計安裝累計下載星標評論
ClawHub ↗10537747-
SkillHub ↗10334437—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

指南區分免費與付費上傳,並說明檔案大小會影響保留期限;帶連結即可公開訪問,因此不應上傳內部截圖、個人資訊或金鑰等敏感內容。執行上傳前應確認檔案適合公開分享。

資料釋出於 2026-10-29

可以用來做什麼

  • 為文件或訊息託管可公開分享的圖片。
  • 在上傳前檢視大小、保留期和公開訪問限制。

什麼時候用

  • 需要獲得可嵌入文件或社交帖文的圖片連結時。
  • 圖片包含敏感資訊或是否適合公開尚未確認時,不應上傳。

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

說明這張圖片上傳後會如何訪問,以及需要注意哪些公開性限制。
在上傳前檢查圖片是否包含憑據、個人資訊或內部介面內容。

月度資料趨勢

累計下載3774
1777285039222026-03 · 累計下載 19252026-05 · 累計下載 24362026-06 · 累計下載 27522026-07 · 累計下載 32442026-08 · 累計下載 35572026-09 · 累計下載 377426-0326-09
星標7
6772026-03 · 星標 62026-05 · 星標 62026-06 · 星標 72026-07 · 星標 72026-08 · 星標 72026-09 · 星標 726-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093774—7
2026-083557+9.6%7
2026-073244+17.9%7
2026-062752+13.0%7
2026-052436—6
2026-031925—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),按月更新。口徑說明見資料方法。