---
name: img402.dev
description: img402.dev is a paid image hosting service that uses the x402 payment protocol on Base to gate uploads behind a $0.01 USDC micropayment. Agents obtain a short-lived upload token via this host, then use that token to POST image data to the service's upload endpoint.
host: img402.dev
---

# img402.dev

img402.dev serves agents and applications that need to host images (PNG, JPEG, GIF, WebP up to 5MB) and are willing to pay a per-upload micropayment in USDC on Base. The host exposes a single skill that handles the payment and token issuance step; the actual binary upload is a separate HTTP call made by the caller using the returned token.

## When to use this host

Use this host when an agent needs to upload a raster image (PNG, JPEG, GIF, or WebP, max 5MB) to a publicly accessible URL and is operating in an environment that can settle $0.01 USDC payments on Base via x402. Do not use this host for the binary upload itself — after calling fetch-upload-token, the agent must separately POST the image file to POST /api/upload with the X-Upload-Token header; that step is outside this host's skills. Not suitable for video, audio, PDF, SVG, or any non-raster format, or files exceeding 5MB. If no x402-compatible payment wallet is available, this host cannot be used. For free or higher-volume image hosting, look for alternative hosts that do not require per-upload micropayments.

## Capabilities

### Upload Token Issuance

Handles the x402 micropayment and returns a single-use, time-limited token required to authorize an image upload request.

- **`fetch-upload-token`** — Pays $0.01 USDC on Base via x402 and returns a single-use upload token valid for 10 minutes, to be used with POST /api/upload via the X-Upload-Token header.

## Skill reference

### `fetch-upload-token`

**Img402 Paid Upload Token** — Pays $0.01 USDC on Base via x402 and returns a single-use upload token valid for 10 minutes, to be used with POST /api/upload via the X-Upload-Token header.

*Use when:* Use when an agent needs to upload an image (PNG, JPEG, GIF, or WebP up to 5MB) to img402.dev and must first obtain a short-lived upload token before sending binary data in a separate request.

*Not for:* Do not use for the actual image upload step; after obtaining the token, call POST /api/upload with the X-Upload-Token header. Not suitable for uploading files other than PNG, JPEG, GIF, or WebP, or files larger than 5MB.

**Returns:** Returns a JSON object with a 40-character hex upload token and an ISO 8601 expiration timestamp 10 minutes in the future.

**Example:** `POST https://img402.dev/api/upload/token
Content-Type: application/json

{}`

---
