media convert
media_convertConvert audio or video between formats with ffmpeg: mp4, webm, mov, mkv, mp3, wav, ogg, opus, m4a, aac, flac. Optional width, fps, crf, audio_bitrate, sample_rate and channels. Up to 20 MB in, 150 s of processing. Costs $0.018 USDC per call (x402).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | mp4, webm, mov, mkv, mp3, wav, ogg, opus, m4a, aac, flac | |
| crf | No | 15-45, lower = better quality | |
| fps | No | ||
| url | No | https URL of the file (max 20 MB) | |
| store | No | Return 7-day share links instead of base64 (+$0.001); automatic above 3 MB | |
| width | No | ||
| format | No | binary = raw file bytes (single output) | |
| channels | No | ||
| filename | No | Name with extension, helps detect the type | |
| file_base64 | No | Or the file as base64 / data URI | |
| sample_rate | No | ||
| audio_bitrate | No | e.g. 128k |