{"slug":"rengi-dev-v1-media-tools-video-compress-94756d","title":"Media tools","host":"rengi.dev","method":"POST","resource":"https://rengi.dev/v1/media-tools/video-compress","category":"image","description":"Media tools: Make a video web-ready: H.264 MP4 that plays everywhere (or VP9 WebM), scaled, faststart, by quality level or to a target file size. Also turns a GIF into a video a tenth of the size. Returns the file, a poster frame and a <video> tag. Full schema: https://rengi.dev/v1/media-tools/schem","price_listed":0.05,"price_asked":0.05,"state":"answering","state_label":"Answering","checks_7d":6,"answered_7d":6,"latency_ms_median":886,"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":"mp4","maxWidth":320,"quality":"medium","videoUrl":"https://rengi.dev/samples/clip.mp4"},"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":{"duration":{"description":"How many seconds to keep. To the end when omitted.","maximum":36000,"minimum":0.1,"type":"number"},"format":{"default":"mp4","description":"mp4: H.264 + AAC, plays everywhere. webm: VP9 + Opus, smaller, slower to make.","enum":["mp4","webm"],"type":"string"},"maxFps":{"default":60,"maximum":60,"minimum":5,"type":"integer"},"maxHeight":{"default":1080,"maximum":2160,"minimum":64,"type":"integer"},"maxWidth":{"default":1920,"maximum":3840,"minimum":64,"type":"integer"},"mute":{"default":false,"description":"Drop the audio track (background and hero videos).","type":"boolean"},"quality":{"default":"medium","description":"high is visually lossless, medium suits web pages, low is for previews.","enum":["high","medium","low"],"type":"string"},"start":{"default":0,"description":"Where to start, in seconds.","maximum":36000,"minimum":0,"type":"number"},"targetBytes":{"description":"Aim for this file size instead of a quality level (25 MB for Discord, 8 MB for email).","maximum":500000000,"minimum":100000,"type":"integer"},"video":{"description":"Video file as base64 (MP4, MOV, WebM, MKV, AVI or GIF).","type":"string"},"videoUrl":{"description":"Link to the video.","format":"uri","type":"string"}},"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":{"audioCodec":{"type":["string","null"]},"bytes":{"type":"number"},"duration":{"type":"number"},"file":{"type":"string"},"format":{"type":"string"},"fps":{"type":"number"},"height":{"type":"number"},"html":{"description":"A <video> tag sized to the result.","type":"string"},"notes":{"items":{"type":"string"},"type":"array"},"originalBytes":{"type":"number"},"poster":{"description":"First frame as JPEG, for the poster attribute.","type":"string"},"savedPercent":{"type":"number"},"videoCodec":{"type":"string"},"width":{"type":"number"}},"required":["file","poster","format","width","height","fps","duration","bytes","originalBytes","savedPercent","videoCodec","audioCodec","html","notes"],"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.05,"price_match":true,"latency_ms":895,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.05,"price_match":true,"latency_ms":896,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.05,"price_match":true,"latency_ms":903,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.05,"price_match":true,"latency_ms":876,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.05,"price_match":true,"latency_ms":878,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.05,"price_match":true,"latency_ms":877,"error":null}],"description_full":"Media tools: Make a video web-ready: H.264 MP4 that plays everywhere (or VP9 WebM), scaled, faststart, by quality level or to a target file size. Also turns a GIF into a video a tenth of the size. Returns the file, a poster frame and a <video> tag. Full schema: https://rengi.dev/v1/media-tools/schema","last_updated":"2026-11-21T15:12:24.323Z","schemes":["exact"]}