{"slug":"img402-dev-api-upload-1f506b","title":"Upload an image with payment and get a public URL","host":"img402.dev","method":"POST","resource":"https://img402.dev/api/upload","category":"image","description":"Upload an image with payment and get a public URL. Accepts multipart form-data (field 'image') or JSON {\"file\": \"<base64>\"}. 10MB max, permanent hosting (no expiration). PNG, JPEG, GIF, WebP.","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":274,"reported_calls_30d":5,"reported_payers_30d":3,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"file":"<base64-encoded-image>"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"file":{"description":"Base64-encoded image data","type":"string"}},"required":["file"]},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"contentType":{"description":"Detected MIME type","type":"string"},"expiresAt":{"description":"ISO 8601 expiration timestamp, or null for permanent images","type":["string","null"]},"id":{"description":"Unique image ID","type":"string"},"sizeBytes":{"description":"File size in bytes","type":"number"},"url":{"description":"Public CDN URL of the hosted image","type":"string"}},"required":["url","id","contentType","sizeBytes","expiresAt"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":274,"error":null}],"description_full":"Upload an image with payment and get a public URL. Accepts multipart form-data (field 'image') or JSON {\"file\": \"<base64>\"}. 10MB max, permanent hosting (no expiration). PNG, JPEG, GIF, WebP.","last_updated":"2026-09-08T17:15:30.639Z","schemes":["exact"]}