{"slug":"tanod-dev-v1-image-compress-83e17d","title":"imagepeek (Tanod) image compression","host":"tanod.dev","method":"POST","resource":"https://tanod.dev/v1/image/compress","category":"image","description":"imagepeek (Tanod) image compression: to a quality or a byte budget.","price_listed":0.003,"price_asked":0.003,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":218,"reported_calls_30d":2,"reported_payers_30d":2,"networks":["eip155:137","eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"max_bytes":150000,"url":"https://raw.githubusercontent.com/ianare/exif-samples/master/jpg/gps/DSCN0010.jpg"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"auto_orient":{"default":true,"description":"Apply the EXIF orientation first (default true).","type":"boolean"},"colors":{"anyOf":[{"maximum":256,"minimum":2,"type":"integer"},{"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)."},"image_base64":{"anyOf":[{"maxLength":13333464,"type":"string"},{"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."},"keep_icc":{"default":true,"description":"Keep the ICC colour profile (default true).","type":"boolean"},"lossless":{"default":false,"description":"webp only: lossless encoding (default false).","type":"boolean"},"max_bytes":{"anyOf":[{"maximum":15000000,"minimum":1000,"type":"integer"},{"type":"null"}],"default":null,"description":"Size target: the highest quality that fits."},"progressive":{"default":false,"description":"jpeg only: progressive encoding (default false).","type":"boolean"},"quality":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Target (or, with max_bytes, highest) quality."},"url":{"anyOf":[{"maxLength":2048,"type":"string"},{"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."}},"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"after_bytes":{"type":"integer"},"before_bytes":{"type":"integer"},"bytes":{"type":"integer"},"content_type":{"type":"string"},"data_base64":{"type":"string"},"encodes":{"type":"integer"},"final_url":{"type":"string"},"format":{"type":"string"},"height":{"type":"integer"},"input":{"properties":{"animated":{"type":"boolean"},"bytes":{"type":"integer"},"format":{"type":"string"},"frames":{"type":"integer"},"has_alpha":{"type":"boolean"},"height":{"type":"integer"},"width":{"type":"integer"}},"type":"object"},"notes":{"items":{"type":"string"},"type":"array"},"operation":{"type":"string"},"quality_used":{"type":["integer","null"]},"returned_original":{"type":"boolean"},"saved_bytes":{"type":"integer"},"saved_ratio":{"type":"number"},"source":{"type":"object"},"source_url":{"type":"string"},"target_met":{"type":["boolean","null"]},"width":{"type":"integer"}},"required":["operation","input","notes","format","content_type","bytes","width","height","data_base64"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":218,"error":null}],"description_full":"imagepeek (Tanod) image compression: to a quality or a byte budget.","last_updated":"2026-10-08T20:56:17.826Z","schemes":["exact"]}