/install image-hosting
Image Hosting — img402
Upload an image to img402.dev and get a public URL. No account, no API key, no config.
Quick reference
# Upload (multipart)
curl -s -X POST https://img402.dev/api/free -F image=@/path/to/image.png
# Response
# {"url":"https://i.img402.dev/aBcDeFgHiJ.png","id":"aBcDeFgHiJ","contentType":"image/png","sizeBytes":182400,"expiresAt":"2026-02-17T..."}
Workflow
- Get image: Use an existing file, or generate/download one.
- Check size: Must be under 1MB. If larger, resize:
sips -Z 1600 /path/to/image.png # macOS — scale longest edge to 1200px convert /path/to/image.png -resize 1600x1600 /path/to/image.png # ImageMagick - Upload:
curl -s -X POST https://img402.dev/api/free -F image=@/path/to/image.png - Use the URL: The
urlfield in the response is a public CDN link. Embed it wherever needed.
Constraints
- Max size: 1MB
- Retention: 7 days
- Formats: PNG, JPEG, GIF, WebP
- Rate limit: 1,000 free uploads/day (global)
- No auth required
Paid tier
For images that need to persist longer (1 year, 5MB max), use the paid endpoint at $0.01 USDC via x402:
# Step 1: Get an upload token (requires x402 payment)
POST https://img402.dev/api/upload/token
# → {"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
See https://img402.dev/blog/paying-x402-apis for details on x402 payment.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install image-hosting - 安装完成后,直接呼叫该 Skill 的名称或使用
/image-hosting触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
image-hosting 是什么?
Upload images to img402.dev and get a public URL. Free tier: 1MB max, 7-day retention, no auth. 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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2027 次。
如何安装 image-hosting?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install image-hosting」即可一键安装,无需额外配置。
image-hosting 是免费的吗?
是的,image-hosting 完全免费(开源免费),可自由下载、安装和使用。
image-hosting 支持哪些平台?
image-hosting 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 image-hosting?
由 rahulgi(@rahulgi)开发并维护,当前版本 v1.0.0。