{"uid":"cap_P622mFb5eIu7NXWxce6mH","slug":"image-compress-api-824794bf","name":"Image Compress API","description":"Image processing for AI agents","url":"https://remarkable-light-production-0cb8.up.railway.app/compress?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"image":"base64...","format":"jpeg","original_kb":450,"compressed_kb":98}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VJn87KaHGgtWu26fYmqZ6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compresses and optimizes images via HTTP POST, returning a base64-encoded compressed image with size metadata","exampleAgentPrompt":"Can you compress this image for me? It's a JPEG that's currently around 450 KB and I need it reduced — send it as a JSON POST with the image in the body and give me back the compressed base64 version.","exampleUseCases":[{"title":"Shrink product photos for e-commerce","prompt":"I have a 450 KB product photo that's slowing down my store pages — can you compress it and give me back the optimized JPEG so I can swap it in?"},{"title":"Optimize screenshots before saving","prompt":"This screenshot I just took is huge, can you compress it down before I store it? I want the base64 output so I can embed it directly."},{"title":"Reduce image size in an automated pipeline","prompt":"In my content pipeline, images coming from the scraper are way too large — automatically compress each one and return the compressed KB size and base64 so I can log the savings."}],"resultDescription":"Returns a JSON object containing: 'image' (base64-encoded compressed image string), 'format' (output format, e.g. 'jpeg'), 'original_kb' (original file size in kilobytes), and 'compressed_kb' (resulting compressed file size in kilobytes).","failureModes":["Invalid or missing image body returns an error","Unsupported image format may cause processing failure","Overly large payloads may time out or be rejected","Malformed JSON body returns a 400-level error","Payment not fulfilled returns a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-use image compression service accessible via HTTP POST that returns a base64-encoded result with before/after size metadata. Ideal for agents that need to compress individual images on-demand within a workflow without managing local image processing libraries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:37:39.234Z","isFirstParty":false,"canonicalSlug":"image-compress-api-824794bf"}