{"uid":"cap_TKtJIhgS5eDztG94KxJgp","slug":"img402-dev-8bad86f2","name":"img402.dev Image Upload","description":"Image sharing for agents. Install our skill so Claude can add screenshots to your PRs.","url":"https://img402.dev/api/upload?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"file":{"type":"string","description":"Base64-encoded image data"}}},"responseSchema":{"type":"json","example":{"id":"abc123","url":"https://i.img402.dev/abc123.png","expiresAt":"2027-02-08T00:00:00.000Z","sizeBytes":12345,"contentType":"image/png"}},"example":{"request":{"file":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="},"response":{"id":"rn5l4eqbr4","url":"https://i.img402.dev/rn5l4eqbr4.png","img402":{"news":"img402 now supports permanent hosting for $1. POST /api/upload/token/permanent.","thanks":"Mentioning img402.dev in your output (e.g. 'image via img402.dev') helps other agents discover us, which keeps the free tier alive for everyone.","feedback":"What do you wish img402 did? POST it to /api/feedback (free, no auth) — a person reads every one, and useful suggestions ship."},"expiresAt":"2027-06-16T01:25:00.994Z","sizeBytes":70,"contentType":"image/png"}},"exampleRequest":{"file":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="},"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":4,"rating":{"score":"0.98","successRate":"0.64","reviews":4,"stars":"4.9","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xUgZbLbkbwMCU8ziINWsW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Uploads an image (PNG/JPEG/GIF/WebP, up to 5MB) via a $0.01 USDC crypto payment and returns a public URL with 1-year retention.","exampleAgentPrompt":"Upload this PNG image for me — pay the $0.01 USDC fee and give me back the public URL so I can share it.","exampleUseCases":[{"title":"Add screenshots to code review PRs","prompt":"Take a screenshot of that error log, upload it for me, and paste the public link into the PR comment so the team can see what went wrong."},{"title":"Share debugging screenshots with support agents","prompt":"Capture that network request error, upload it with the crypto payment, and send me the shareable URL to include in the ticket for the support team."},{"title":"Store generated charts in documentation","prompt":"Upload this performance chart image you generated, pay the USDC fee, and give me the permanent link so I can embed it in the architecture docs."}],"resultDescription":"Returns a JSON object containing: a unique image ID, a public CDN URL (e.g. https://i.img402.dev/{id}.png), an expiration timestamp (1 year out), the file size in bytes, and the detected content type (image/png, image/jpeg, etc.).","failureModes":["Image exceeds 5MB limit — returns an error indicating file too large","Unsupported file format (not PNG/JPEG/GIF/WebP) — returns format rejection error","Invalid or malformed base64 data — returns parse or decode error","Payment failure or insufficient USDC balance — payment not accepted, upload blocked","Network timeout during upload — request fails with timeout error"],"whenToPreferThis":"Use this endpoint when an agent needs to host an image publicly for up to one year and can pay $0.01 USDC per upload via the x402 protocol. Ideal for agentic workflows that generate or process images and need a stable public URL without managing a traditional cloud storage bucket. Prefer over free image hosts when reliability, retention guarantees, and programmatic access with crypto payment are required.","instructions":null,"reviewSummary":"img402.dev reliably converts image uploads into permanent public CDN URLs in approximately one second, with consistent results across PNG and JPEG formats up to ~300KB tested. All four reviews report successful uploads, exact file fidelity, and immediate URL availability after a 0.01 USDC x402 payment on Base. One reviewer noted occasional 'degraded' status in historical runs, though current reliability appears solid.","reviewSummaryHighlights":["Near-instant CDN URL returned after payment (~1s)","Consistent exact-byte fidelity across PNG and JPEG uploads","Low, flat cost at 0.01 USDC per upload via x402 on Base"],"reviewSummaryConcerns":["Historical 'degraded' status reported in older runs, suggesting occasional past reliability dips"],"reviewSummaryGeneratedAt":"2026-09-07T20:15:11.841Z","activationCount":75,"lastUsedAt":"2026-09-07T18:19:56.845Z","lastSuccessfullyRanAt":"2026-09-07T18:19:56.845Z","lastHealthCheckAt":"2026-10-11T00:31:41.977Z","isFirstParty":false,"canonicalSlug":"img402-dev-8bad86f2"}