{"uid":"cap__OoIu-DOfusOI9dlcU4h_","slug":"24k-labs-image-compressor-6657780b","name":"24K Labs Image Compressor","description":"Re-encode an image as JPEG/WEBP at a target quality to shrink it.","url":"https://api.24klabs.ai/api/v1/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_Fful85qlPdnQY796tzjme","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":"Re-encodes an image as JPEG or WEBP at a specified target quality level to reduce its file size.","exampleAgentPrompt":"Can you compress this image as a WEBP at quality 75 to shrink the file size for my website?","exampleUseCases":[{"title":"Shrink product photos for e-commerce","prompt":"Take this product image and re-encode it as a JPEG at quality 80 — I need the file size way smaller for our storefront page load times."},{"title":"Optimize user-uploaded avatars","prompt":"Compress this user's uploaded profile picture to WEBP at quality 70 so it takes up less storage and loads faster in the app."},{"title":"Reduce image before email attachment","prompt":"I need to send this photo over email but it's too large — can you re-encode it as a JPEG at quality 65 to bring the file size down?"}],"resultDescription":"Returns the re-encoded image binary (JPEG or WEBP) at the specified quality, resulting in a smaller file size than the original input image.","failureModes":["Unsupported input image format returns an error","Invalid quality value outside accepted range causes rejection","Corrupted or non-image input returns a processing error","Network timeout for very large input images"],"whenToPreferThis":"Choose this endpoint when you need to reduce image file size by re-encoding to JPEG or WEBP at a controlled quality level, especially when targeting web performance or storage savings. If you need to change image format without quality/compression control, prefer the format-conversion sibling endpoint instead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:35.299Z","isFirstParty":false}