返回顶部
i

image-hosting

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
1,912
下载量
6
收藏
概述
安装方式
版本历史

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 ```bash # 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 1. **Get image**: Use an existing file, or generate/download one. 2. **Check size**: Must be under 1MB. If larger, resize: ```bash 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 ``` 3. **Upload**: ```bash curl -s -X POST https://img402.dev/api/free -F image=@/path/to/image.png ``` 4. **Use the URL**: The `url` field 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: ```bash # 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.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 image-hosting-1776420056 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 image-hosting-1776420056 技能

通过命令行安装

skillhub install image-hosting-1776420056

下载 Zip 包

⬇ 下载 image-hosting v1.0.0

文件大小: 1.61 KB | 发布时间: 2026-4-17 18:34

v1.0.0 最新 2026-4-17 18:34
- Initial release: upload images to img402.dev and receive a public URL.
- Free tier: images up to 1MB, 7-day retention, supports PNG, JPEG, GIF, WebP, no authentication required.
- Provides ready-to-use curl commands for quick uploads.
- Includes resizing tips for large images and details on rate limits.
- Paid tier option: longer retention (1 year) and larger images (up to 5MB) via x402 token.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部