Audio Converter
Playground
Try it on WavespeedAI!AI Audio Converter converts audio files between formats. Upload an audio file and specify the target format to get a converted result. Ready-to-use REST inference API, no coldstarts, affordable pricing.
Features
Audio Converter
Audio Converter converts any audio file into your preferred format instantly. Upload a track and choose an output format — MP3, WAV, AAC, FLAC, OGG, M4A, or WMA — and get a converted file ready to download in seconds.
How to Use
- Upload your audio — provide the source file via URL, file upload, or microphone recording.
- Select output format — choose from mp3, wav, aac, flac, ogg, m4a, or wma.
- Submit — download your converted audio.
Pricing
$0.0005 per second of input audio.
Supported Output Formats
| Format | Best For |
|---|---|
| mp3 | Universal playback, streaming, and podcasts |
| wav | Lossless quality for professional audio workflows |
| aac | High-quality compressed audio for mobile and streaming |
| flac | Lossless compression for archival and audiophile use |
| ogg | Open-source web audio with good compression |
| m4a | Apple ecosystem delivery and iTunes compatibility |
| wma | Windows Media Player and legacy Microsoft workflows |
Notes
- Both audio and output_format are required fields.
- Pricing is based on the duration of the input audio at $0.0005 per second.
- Ensure audio URLs are publicly accessible if using a link rather than a direct upload.
Authentication
For authentication details, please refer to the Authentication Guide.
API Endpoints
Submit Task & Query Result
# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/audio-converter" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{}'
# Get the result
curl --location --request GET "https://api.wavespeed.ai/api/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"
Parameters
Task Submission Parameters
Request Parameters
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
| audio | string | Yes | - | - | The URL of the input audio. |
| output_format | string | Yes | - | mp3, wav, aac, flac, ogg, m4a, wma | The target format to convert the audio to (mp3, wav, aac, flac, ogg, m4a, wma). |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data.id | string | Unique identifier for the prediction, Task Id |
| data.model | string | Model ID used for the prediction |
| data.outputs | array | Array of URLs to the generated content (empty when status is not completed) |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.has_nsfw_contents | array | Array of boolean values indicating NSFW detection for each output |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |
Result Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Yes | - | Task ID |
Result Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data | object | The prediction data object containing all details |
| data.id | string | Unique identifier for the prediction, the ID of the prediction to get |
| data.model | string | Model ID used for the prediction |
| data.outputs | string | Array of URLs to the generated content (empty when status is not completed). |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |