{"slug":"7fg5bxb40m3f0v23-68r-lambda-web-us-east-1-on-aws-v1-resize-5e1f17","title":"Resize an image at a URL to a width, a height or both, keeping the aspect ratio ","host":"7fg5bxb40m3f0v23.68r.lambda-web.us-east-1.on.aws","method":"POST","resource":"https://7fg5bxb40m3f0v23.68r.lambda-web.us-east-1.on.aws/v1/resize","category":"image","description":"Resize an image at a URL to a width, a height or both, keeping the aspect ratio inside the box by default (cover, contain, inside, outside or fill), optionally converting it. Returns a signed URL of the result, valid for an hour.","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":669,"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","url":"https://raw.githubusercontent.com/danielgatis/rembg/main/examples/animal-1.jpg","width":800},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"enlarge":{"description":"allow making the image larger (default false)","type":"boolean"},"fit":{"description":"how to fit the box (default inside)","enum":["cover","contain","inside","outside","fill"],"type":"string"},"format":{"description":"output format (default: the input's)","enum":["webp","avif","png","jpeg","gif","tiff"],"type":"string"},"height":{"description":"target height (1-8192)","type":"integer"},"inline":{"description":"also return the image as a data URL when it is at most 1 MB","type":"boolean"},"quality":{"description":"1-100","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"},"width":{"description":"target width (1-8192)","type":"integer"}},"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":{},"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":669,"error":null}],"description_full":"Resize an image at a URL to a width, a height or both, keeping the aspect ratio inside the box by default (cover, contain, inside, outside or fill), optionally converting it. Returns a signed URL of the result, valid for an hour.","last_updated":"2026-10-25T01:19:11.736Z","schemes":["exact"]}