{"uid":"cap_9IZChKS43CLHDVrT0K2eX","slug":"nanoapi-image-compress-fc8bd7e1","name":"NanoAPI Image Compress","description":"Pay-per-use APIs for AI agents: image processing and Solana data endpoints. $0.001-$0.01 USDC per call on Base or Solana via x402 protocol. No signup or API keys required.","url":"https://nanoapi.org/image/compress?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"image":{"type":"string","format":"binary","description":"Image file (PNG, JPEG, WebP, AVIF, max 10MB)"},"quality":{"type":"integer","maximum":100,"minimum":1,"description":"Compression quality (1 = smallest file, 100 = best quality)"}}},"responseSchema":{"type":"json","example":"<binary JPEG data â compressed image at target quality>"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"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_jEz3uzT8nzP4vDrOAX2Qe","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":"Compresses an uploaded image (PNG, JPEG, WebP, AVIF) to a target quality level and returns the compressed JPEG binary","exampleAgentPrompt":"Compress this product photo for me — squeeze it down to quality 75 so it loads faster on the website, it's a JPEG under 10MB.","exampleUseCases":null,"resultDescription":"Raw binary JPEG data of the compressed image at the requested quality level, returned directly in the response body","failureModes":["Image exceeds 10MB limit — request rejected","Unsupported image format provided — only PNG, JPEG, WebP, AVIF accepted","Quality parameter out of range (must be 1–100)","Payment not completed via x402 protocol — 402 response returned","Malformed or corrupted image binary — processing error","Network timeout on large image upload"],"whenToPreferThis":"Use this endpoint when an AI agent needs to reduce image file size programmatically without requiring signup or API keys, paying only $0.01 USDC per call via x402 protocol on Base or Solana. Ideal for pay-per-use workflows where no subscription is desired and the agent handles micropayments natively.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:32:01.823Z","isFirstParty":false,"canonicalSlug":"nanoapi-image-compress-fc8bd7e1"}