{"version":1,"resources":["https://img402.dev/api/upload/token"],"ownershipProofs":["0x3e0737420b02e9376cfed0f5e2e7a9acdc4fd640efc86abd2406d531eff444fe43850d83dc0aee4543a9ca4d269f388b75e1e9e5c7f631cd3a4f90da4d9bcae11c"],"instructions":"# img402.dev — x402-native image hosting\n\nUpload an image, pay $0.01 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)\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}`.\n\n## Free tier\n`POST https://img402.dev/api/free` — no payment required.\n1MB max, 7-day retention, daily cap. Send multipart `image` field or JSON `{\"file\": \"<base64>\"}`.\n\n## Paid limits\n- 5MB max per image\n- PNG, JPEG, GIF, WebP\n- 1-year retention"}