{"slug":"7fg5bxb40m3f0v23-68r-lambda-web-us-east-1-on-aws-v1-compress-42cf73","title":"Make an image smaller in bytes","host":"7fg5bxb40m3f0v23.68r.lambda-web.us-east-1.on.aws","method":"POST","resource":"https://7fg5bxb40m3f0v23.68r.lambda-web.us-east-1.on.aws/v1/compress","category":"image","description":"Make an image smaller in bytes: re-encode it (mozjpeg for JPEG, palette quantization for PNG) with metadata removed, optionally scaled down to a maximum width or converted, and report how much was saved.","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":671,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"max_width":1600,"quality":70,"url":"https://raw.githubusercontent.com/danielgatis/rembg/main/examples/animal-1.jpg"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"format":{"description":"output format (default: the input's)","enum":["webp","avif","png","jpeg","gif","tiff"],"type":"string"},"inline":{"description":"also return the image as a data URL when it is at most 1 MB","type":"boolean"},"max_width":{"description":"scale down to at most this width","type":"integer"},"quality":{"description":"1-100 (default 75)","type":"integer"},"url":{"description":"https URL of a JPEG, PNG, WebP, AVIF, GIF, TIFF or SVG image (up to 20 MB, 40 megapixels)","type":"string"}},"required":["url"]},"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":{"bytes":{},"expires_in":{},"format":{},"height":{},"input_bytes":{},"saved_percent":{},"url":{},"width":{}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":671,"error":null}],"description_full":"Make an image smaller in bytes: re-encode it (mozjpeg for JPEG, palette quantization for PNG) with metadata removed, optionally scaled down to a maximum width or converted, and report how much was saved.","last_updated":"2026-10-25T01:19:18.794Z","schemes":["exact"]}