{"uid":"cap_DZHH_v8M9lYhDDE3fLelI","slug":"tanod-imagepeek-image-compression-885787c5","name":"Tanod imagepeek Image Compression","description":"One MCP server and HTTP API with 193 pay-per-call tools for AI agents (security checks, chain data, finance, aviation, documents), plus free uptime and MikroTik monitoring and 130+ free browser tools. No signup; free daily tier. Operated by an AI.","url":"https://tanod.dev/v1/image/compress?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"default":null,"description":"Public http(s) URL of the image (at most 10 MB; private, internal and IP-literal hosts are refused); or use image_base64."},"colors":{"anyOf":[{"type":"integer","maximum":256,"minimum":2},{"type":"null"}],"default":null,"description":"png: quantise to this many colours."},"format":{"anyOf":[{"enum":["jpeg","png","webp","avif"],"type":"string"},{"type":"null"}],"default":null,"description":"Output format: jpeg, png, webp or avif (default: the input's)."},"output":{"enum":["base64","url"],"type":"string","default":"base64","description":"base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window."},"quality":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"default":null,"description":"Target (or, with max_bytes, highest) quality."},"keep_icc":{"type":"boolean","default":true,"description":"Keep the ICC colour profile (default true)."},"lossless":{"type":"boolean","default":false,"description":"webp only: lossless encoding (default false)."},"max_bytes":{"anyOf":[{"type":"integer","maximum":15000000,"minimum":1000},{"type":"null"}],"default":null,"description":"Size target: the highest quality that fits."},"auto_orient":{"type":"boolean","default":true,"description":"Apply the EXIF orientation first (default true)."},"progressive":{"type":"boolean","default":false,"description":"jpeg only: progressive encoding (default false)."},"image_base64":{"anyOf":[{"type":"string","maxLength":13333464},{"type":"null"}],"default":null,"description":"The image as standard or url-safe base64 (at most 10 MB decoded; a data:image/...;base64, prefix is fine); or use url."}}},"responseSchema":{"type":"json","example":{"bytes":132092,"input":{"bytes":161713,"width":640,"format":"jpeg","frames":1,"height":480,"animated":false,"has_alpha":false},"notes":[],"width":640,"format":"jpeg","height":480,"source":{"url":"https://python-pillow.org","library":"Pillow","license":"MIT-CMU (HPND)"},"encodes":1,"final_url":"https://raw.githubusercontent.com/ianare/exif-samples/master/jpg/gps/DSCN0010.jpg","operation":"compress","source_url":"https://raw.githubusercontent.com/ianare/exif-samples/master/jpg/gps/DSCN0010.jpg","target_met":true,"after_bytes":132092,"data_base64":"/9j/4AAQSkZJRgAB... (trimmed: 176,124 base64 characters in the reply)","saved_bytes":29621,"saved_ratio":0.1832,"before_bytes":161713,"content_type":"image/jpeg","quality_used":85,"returned_original":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0u5BYtirkRzgsYR-9ohjY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compresses an image (JPEG, PNG, WebP, AVIF) to a target quality level or byte-size budget via a pay-per-call API.","exampleAgentPrompt":"Can you compress this image (https://example.com/photo.jpg) to WebP format at quality 75, making sure the result stays under 200 KB?","exampleUseCases":[{"title":"Web image optimization pipeline","prompt":"Take this product photo at https://myshop.com/images/hero.jpg and compress it to WebP at quality 80 — I need it to stay under 150 KB for my homepage."},{"title":"Avatar upload size enforcement","prompt":"I need to compress this base64-encoded PNG profile picture to fit under 50 KB; use JPEG format and find the highest quality that still meets that size limit."},{"title":"Lossless PNG color reduction","prompt":"Compress this PNG image at https://cdn.example.com/chart.png losslessly, but quantize it down to 64 colors to shrink the file size as much as possible."}],"resultDescription":"Returns a compressed image in the requested format (JPEG, PNG, WebP, or AVIF), optimized to either a specified quality level (1–100) or the highest quality that fits within a given byte budget (max_bytes). The response includes the resulting image data along with metadata such as output size and format.","failureModes":["Image URL not publicly accessible or returns non-2xx status","Input image exceeds 10 MB limit","Unsupported image format or corrupt image data","max_bytes target is too low to produce a valid image","Both url and image_base64 provided or neither provided","quality and max_bytes conflict resolution edge cases","Payment not received or x402 protocol failure"],"whenToPreferThis":"Choose this endpoint when you need server-side image compression with fine-grained control over quality or byte-size targets, and when you want format conversion (e.g., to WebP or AVIF) as part of the same operation. It is ideal for agents handling media pipelines, upload preprocessing, or web performance optimization where a pay-per-call model is acceptable and no self-hosted infrastructure is desired.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:43:49.776Z","isFirstParty":false,"canonicalSlug":"tanod-imagepeek-image-compression-885787c5"}