FLAC to MP3 API - convert lossless FLAC to 320 kbps or VBR MP3 with tags
flac_to_mp3Send a lossless FLAC audio file as base64 and get an MP3 back at 320, 256, 192 or 128 kbps CBR or audiophile VBR V0 / V2. Preserves Vorbis/ID3 metadata tags and embedded album cover art by default, with optional sample rate (44.1 / 48 kHz), stereo/mono and EBU R128 loudness normalization. Deterministic local ffmpeg (libmp3lame), 0 AI, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.005/call via x402 at https://radarbg.com/x402/flac-to-mp3.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "flac_to_mp3"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quality | No | MP3 bitrate or VBR preset: 320, v0, 256, 192 (default), v2, 128 | 192 |
| channels | No | keep original, 2 (Stereo) or 1 (Mono) | keep |
| fileName | No | Optional file name, e.g. song.flac | |
| normalize | No | Normalize loudness to EBU R128 (-16 LUFS) | |
| sampleRate | No | Target sample rate in Hz, or keep original | keep |
| fileContent | No | The .flac file as base64, max 20 MB (empty = built-in sample FLAC) | |
| stripMetadata | No | Strip ID3 tags and embedded album art |