{"slug":"rengi-dev-v1-media-tools-audio-convert-9227b4","title":"Media tools","host":"rengi.dev","method":"POST","resource":"https://rengi.dev/v1/media-tools/audio-convert","category":"image","description":"Media tools: Convert audio between MP3, OGG, Opus, M4A, WAV and FLAC with control of bitrate, sample rate and channels; cut a part, add fades, and normalize loudness to a LUFS target under a true-peak ceiling, keeping the dynamics. Full schema: https://rengi.dev/v1/media-tools/schema","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":6,"answered_7d":6,"latency_ms_median":906,"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":{"audioUrl":"https://rengi.dev/samples/tone.wav","format":"mp3","normalize":true,"targetLufs":-16},"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":{"audio":{"description":"Audio file as base64 (MP3, WAV, OGG, FLAC, M4A, AAC), or a video to take the sound from.","type":"string"},"audioUrl":{"description":"Link to the audio.","format":"uri","type":"string"},"bitrateKbps":{"description":"For mp3, ogg, opus and m4a. A sensible default per format when omitted.","maximum":320,"minimum":16,"type":"integer"},"channels":{"description":"1 downmixes to mono.","enum":[1,2],"type":"number"},"duration":{"description":"How many seconds to keep. To the end when omitted.","maximum":36000,"minimum":0.1,"type":"number"},"fadeInMs":{"default":0,"maximum":10000,"minimum":0,"type":"integer"},"fadeOutMs":{"default":0,"maximum":10000,"minimum":0,"type":"integer"},"format":{"default":"mp3","enum":["mp3","ogg","opus","m4a","wav","flac"],"type":"string"},"normalize":{"default":false,"description":"Bring loudness to the target level (two-pass, no pumping).","type":"boolean"},"sampleRate":{"enum":[8000,11025,16000,22050,24000,32000,44100,48000],"type":"number"},"start":{"default":0,"description":"Where to start, in seconds.","maximum":36000,"minimum":0,"type":"number"},"targetLufs":{"default":-16,"description":"Loudness target when normalize is on: -16 for web and podcasts, -14 for music platforms, -23 for broadcast.","maximum":-8,"minimum":-30,"type":"number"}},"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":{"bitrateKbps":{"type":["number","null"]},"bytes":{"type":"number"},"channels":{"type":"number"},"codec":{"type":"string"},"duration":{"type":"number"},"file":{"type":"string"},"format":{"type":"string"},"loudness":{"anyOf":[{"additionalProperties":false,"properties":{"gainDb":{"type":"number"},"inputLufs":{"type":"number"},"limited":{"description":"True when a limiter held the peaks under the -1.5 dB ceiling.","type":"boolean"},"outputLufs":{"type":"number"},"reachedTarget":{"description":"False when reaching the target would have meant crushing the peaks by more than 3 dB; the result is then quieter than asked.","type":"boolean"}},"required":["inputLufs","outputLufs","gainDb","limited","reachedTarget"],"type":"object"},{"type":"null"}]},"originalBytes":{"type":"number"},"sampleRate":{"type":"number"}},"required":["file","format","codec","duration","sampleRate","channels","bitrateKbps","bytes","originalBytes","loudness"],"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":992,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":886,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":946,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":890,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":879,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":922,"error":null}],"description_full":"Media tools: Convert audio between MP3, OGG, Opus, M4A, WAV and FLAC with control of bitrate, sample rate and channels; cut a part, add fades, and normalize loudness to a LUFS target under a true-peak ceiling, keeping the dynamics. Full schema: https://rengi.dev/v1/media-tools/schema","last_updated":"2026-11-21T15:12:28.48Z","schemes":["exact"]}