{"uid":"cap_DNs3gSzMaKxT019K3IYs1","slug":"24k-labs-image-compress-18a0186d","name":"24K Labs Image Compress","description":"A curated directory of x402 services — each one on the list on purpose, with the health, uptime, and independent trust grades from across the ecosystem gathered in one place.","url":"https://api.24klabs.ai/api/image-compress","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"quality":{"type":"number"},"image_b64":{"type":"string"}}},"responseSchema":{"type":"json","example":{"bytes":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RbFYqh-KdJ8gRqTesWRIO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compresses an image to reduce file size while preserving visual quality, returning the compressed image bytes.","exampleAgentPrompt":"Can you compress this image to reduce its file size as much as possible before I upload it to the site?","exampleUseCases":[{"title":"Optimize product images for e-commerce","prompt":"I have a high-res product photo that's 4MB — can you compress it so it loads faster on our store page without looking terrible?"},{"title":"Reduce image size before email attachment","prompt":"This screenshot is too large to attach to an email, can you compress it down so it's under 1MB?"},{"title":"Batch-ready image optimization for a blog","prompt":"I'm about to upload a hero image to my blog but it's huge — compress it so the page doesn't lag on mobile."}],"resultDescription":"A JSON object containing the compressed image as bytes and the resulting byte size, allowing the caller to retrieve the optimized image data and confirm the new file size.","failureModes":["Unsupported image format returns an error response","Corrupt or malformed image binary causes a processing failure","Image too large exceeds payload limits","Network timeout on very large files","Missing or empty image input field returns a validation error"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call image compression step without managing your own image processing infrastructure. It's ideal for agentic workflows that need to reduce image file sizes on the fly — e.g., before storing, emailing, or serving images — and when you want a simple JSON response with the resulting bytes rather than a full image CDN solution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:29.405Z","isFirstParty":false}