{"slug":"rengi-dev-v1-image-tools-convert-fa33b0","title":"Image tools","host":"rengi.dev","method":"POST","resource":"https://rengi.dev/v1/image-tools/convert","category":"image","description":"Image tools: Convert an image to WebP, AVIF, JPEG or PNG, resize it and compress it. Strips EXIF by default, applies EXIF rotation, keeps animation for GIF/WebP sources. Returns the file with before/after sizes. Full schema: https://rengi.dev/v1/image-tools/schema","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":6,"answered_7d":6,"latency_ms_median":904,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"format":"webp","imageUrl":"https://rengi.dev/samples/photo.jpg","quality":78,"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":{"additionalProperties":false,"properties":{"background":{"description":"Colour behind transparency. JPEG has no alpha, so it defaults to white there.","pattern":"^#?[0-9a-fA-F]{6}$","type":"string"},"fit":{"default":"inside","description":"inside: fit within the box, keep aspect; cover: fill the box and crop; contain: fit and pad with background.","enum":["inside","cover","contain"],"type":"string"},"format":{"default":"webp","description":"Output format.","enum":["png","jpeg","webp","avif"],"type":"string"},"height":{"maximum":8192,"minimum":1,"type":"integer"},"image":{"description":"Image file as base64 (PNG, JPEG, WebP, AVIF, GIF, TIFF or SVG).","type":"string"},"imageUrl":{"description":"Link to the image.","format":"uri","type":"string"},"keepMetadata":{"default":false,"description":"Keep EXIF/ICC. Off by default: strips location and camera data.","type":"boolean"},"lossless":{"default":false,"description":"WebP/AVIF lossless mode; PNG keeps full colour.","type":"boolean"},"quality":{"default":80,"description":"Lossy quality. For PNG, under 100 switches to a palette PNG (much smaller).","maximum":100,"minimum":1,"type":"integer"},"upscale":{"default":false,"description":"Allow making the image larger than the source.","type":"boolean"},"width":{"description":"Target width in pixels. With only one of width/height the other follows the aspect ratio.","maximum":8192,"minimum":1,"type":"integer"}},"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":{"additionalProperties":false,"properties":{"animated":{"type":"boolean"},"bytes":{"type":"number"},"file":{"type":"string"},"format":{"type":"string"},"height":{"type":"number"},"originalBytes":{"type":"number"},"savedPercent":{"description":"How much smaller than the source file, in percent (negative when it grew).","type":"number"},"width":{"type":"number"}},"required":["file","format","width","height","bytes","originalBytes","savedPercent","animated"],"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.01,"price_match":true,"latency_ms":898,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":911,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":935,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":875,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":878,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":912,"error":null}],"description_full":"Image tools: Convert an image to WebP, AVIF, JPEG or PNG, resize it and compress it. Strips EXIF by default, applies EXIF rotation, keeps animation for GIF/WebP sources. Returns the file with before/after sizes. Full schema: https://rengi.dev/v1/image-tools/schema","last_updated":"2026-11-21T15:12:12.415Z","schemes":["exact"]}