50% OFF nos modelos Vidu Q3 e Q3 Pro · Apenas na WaveSpeedAI | 20 de maio – 2 de junho

Audio Converter

wavespeed-ai /

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.

audio-to-audio
Entrada

Arraste e solte ou clique para enviar

Ocioso

$0.0005por execução·~2000 / $1

ExemplosVer todos

Modelos relacionados

README

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

  1. Upload your audio — provide the source file via URL, file upload, or microphone recording.
  2. Select output format — choose from mp3, wav, aac, flac, ogg, m4a, or wma.
  3. Submit — download your converted audio.

Pricing

$0.0005 per second of input audio.

Supported Output Formats

FormatBest For
mp3Universal playback, streaming, and podcasts
wavLossless quality for professional audio workflows
aacHigh-quality compressed audio for mobile and streaming
flacLossless compression for archival and audiophile use
oggOpen-source web audio with good compression
m4aApple ecosystem delivery and iTunes compatibility
wmaWindows 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.
Acessibilidade:Este site utiliza modelos de IA fornecidos por terceiros.

Audio Converter API — Quick start

Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/wavespeed-ai/audio-converter with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for Audio Converter below.

HTTP example
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/audio-converter" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY" \
  -d '{
    "audio": "https://example.com/your-audio.mp3",
    "output_format": "mp3"
}'

# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY"

# When status is "completed", read the output from data.outputs[0].
Node.js example
// npm install wavespeed
const WaveSpeed = require('wavespeed');

const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env

const result = await client.run("wavespeed-ai/audio-converter", {
        "audio": "https://example.com/your-audio.mp3",
        "output_format": "mp3"
});

console.log(result.outputs[0]); // → URL of the generated output
Python example
# pip install wavespeed
import wavespeed

output = wavespeed.run(
    "wavespeed-ai/audio-converter",
    {
    "audio": "https://example.com/your-audio.mp3",
    "output_format": "mp3"
}
)

print(output["outputs"][0])  # → URL of the generated output

Audio Converter API — Frequently asked questions

What is the Audio Converter API?

Audio Converter is a WaveSpeedAI model for AI inference, exposed as a REST API 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. You can call it programmatically or try it from the playground above.

How do I call the Audio Converter API?

POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/wavespeed-ai/audio-converter.

How much does Audio Converter cost per run?

Audio Converter starts at $0.001 per run. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.

What inputs does Audio Converter accept?

Key inputs: `audio`, `output_format`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/wavespeed-ai/audio-converter.

How do I get started with the Audio Converter API?

Sign up for a free WaveSpeedAI account to claim starter credits, copy your API key from /accesskey, then call the endpoint shown in the API tab of the playground. The playground also auto-generates a code sample in Python, JavaScript, or cURL for the parameters you've set.

Can I use Audio Converter outputs commercially?

Commercial usage rights depend on the model's license, set by its provider (WaveSpeedAI). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.