{"slug":"bild-halowerk-com-v1-compress-to-size-3c11a4","title":"Compress an image to a target file size","host":"bild.halowerk.com","method":"POST","resource":"https://bild.halowerk.com/v1/compress-to-size","category":"image","description":"Compress an image to a target file size: binary search over encoder quality (JPEG, WebP or AVIF) above a quality floor, optionally reducing dimensions when the floor is not enough.","price_listed":0.004,"price_asked":0.004,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":896,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"format":"webp","image_base64":"iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFElEQVR4nGPgqjjxnxjMMKqQvgoBasrkhTND8CQAAAAASUVORK5CYII=","max_quality":80,"target_bytes":100000},"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":{"allow_resize":{"default":false,"type":"boolean"},"format":{"default":"jpeg","enum":["jpeg","webp","avif"],"type":"string"},"image_base64":{"maxLength":14000000,"minLength":16,"type":"string"},"image_url":{"format":"uri","maxLength":2048,"type":"string"},"max_quality":{"default":92,"maximum":100,"minimum":1,"type":"integer"},"max_width":{"maximum":10000,"minimum":16,"type":"integer"},"min_quality":{"default":40,"maximum":100,"minimum":1,"type":"integer"},"target_bytes":{"maximum":10000000,"minimum":1024,"type":"integer"}},"required":["target_bytes"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":898,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":912,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":896,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":888,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":875,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":878,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":965,"error":null}],"description_full":"Compress an image to a target file size: binary search over encoder quality (JPEG, WebP or AVIF) above a quality floor, optionally reducing dimensions when the floor is not enough.","last_updated":"2026-11-20T10:27:45.548Z","schemes":["exact"]}