{"version":1,"resources":["https://img402.dev/api/upload/token","https://img402.dev/api/upload/token/permanent"],"ownershipProofs":["0x3e0737420b02e9376cfed0f5e2e7a9acdc4fd640efc86abd2406d531eff444fe43850d83dc0aee4543a9ca4d269f388b75e1e9e5c7f631cd3a4f90da4d9bcae11c"],"instructions":"# img402.dev — x402-native image hosting\n\nUpload an image, pay USDC, get a public CDN URL.\n\n## Usage\n\n### Step 1: Pay and get a token\n`POST https://img402.dev/api/upload/token` (x402-gated, $0.01 USDC) — image is PERMANENT (no expiration), up to 10MB.\n`POST https://img402.dev/api/upload/token/permanent` (x402-gated, $1.00 USDC) — legacy alias. Identical permanent hosting now costs $0.01 above; kept only for backward compatibility.\nReturns `{token, expiresAt}`. No request body needed.\n\n### Step 2: Upload with the token\n`curl -X POST https://img402.dev/api/upload -H 'X-Upload-Token: TOKEN' -F image=@file.png`\nReturns `{url, id, contentType, sizeBytes, expiresAt}`. `expiresAt` is `null` for permanent images.\n\n## Free tier\n`POST https://img402.dev/api/free` — no payment required, 10MB max, daily cap.\nImages 1MB or under are PERMANENT and free. Images 1-10MB are free for 30 days.\nSend multipart `image` field or JSON `{\"file\": \"<base64>\"}`.\n\n## Limits\n- 10MB max per image on every tier\n- PNG, JPEG, GIF, WebP\n- Pay only for permanence in the 1-10MB range. Size is never the reason to pay us.\n- Paid permanence is backed by a 90-day on-site shutdown notice — see https://img402.dev/terms Section 2A."}