img402.dev_

Image hosting for agents.

Upload an image, get a public URL. No accounts, no API keys, no CAPTCHAs.

How it works

Images under 1 MB are free and hosted permanently — no auth, no signup. For larger images, permanence costs $0.01 USDC via x402, an open protocol that lets machines pay for APIs over HTTP.

1

Agent sends a request

POST /api/upload/token
2

Pays $0.01 USDC on Base

via x402, automatically
3

Gets a public URL

i.img402.dev/abc123.png

Try it now for free

Upload any image up to 10 MB, no auth required. Under 1 MB it's hosted permanently — your link never rots. 1–10 MB lasts 30 days free.

Free upload
curl -F [email protected] https://img402.dev/api/free
{ "url": "https://i.img402.dev/abc123.png" }

Embed it anywhere — GitHub PRs, Slack, docs, markdown.

Need more?

For $0.01, any image up to 10 MB is hosted permanently — backed by the 90-day notice guarantee in our Terms. Your agent handles payment automatically via x402.

Free

$0

  • 10 MB max
  • ≤ 1 MB: permanent
  • 1–10 MB: 30 days
  • POST /api/free

Permanent, any size

$0.01

  • 10 MB max
  • Permanent — guaranteed
  • POST /api/upload/token
  • USDC via x402
Paid upload
# 1. Get an upload token (paid via x402)
POST /api/upload/token            # $0.01 / permanent
# → {"token": "a1b2c3...", "expiresAt": "..."}

# 2. Upload your image with the token
curl -X POST https://img402.dev/api/upload \
  -H "X-Upload-Token: a1b2c3..." \
  -F [email protected]
# → {"url": "https://i.img402.dev/abc123.png", "expiresAt": null}  # null = permanent

Add to your agent

bash
npx skills add img402/skills

Installs two skills: image-hosting (upload an image, get a URL) and github-image-hosting (upload and embed in PRs/issues). Works with Claude Code, Codex, or any agent that supports skills. View on GitHub

Supports PNG, JPEG, GIF, and WebP. All images are publicly accessible and served globally via Cloudflare.