---
agent:
  instructions: "Search the site by keyword or question. The search API returns Markdown."
  endpoint: "https://platform.invideo.io/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Audio

> Generate speech or music, edit audio and transcribe recordings. Track the run and download its output.

Use `POST /v1/request` to generate speech, music or sound effects, process a recording, or turn it into text. If you already use a provider SDK, keep its request format and use the Platform base URL and your Platform API key. Use a canonical Platform model ID in the format's model field. [Audio formats](/docs/sdks/audio)

## Find a model

List the models and prices available to your key with `GET /v1/models?modality=audio`. Read `GET /v1/models/{model}` for the model's `modes`, `input_schema`, output shape and price tiers. Choose the mode and fields for the job you want to run. [Catalogue](/docs/catalog)

## Submit an audio request

This example transcribes a recording with Nova-3. Set `INVIDEO_AUDIO_URL` to an HTTPS recording the Platform can download. The example uses `jq` to encode that URL in JSON. Use a new idempotency key for each recording and reuse it if you retry the same body.

```bash
curl https://platform-api.invideo.io/v1/request \
  -H "Authorization: Bearer $INVIDEO_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: meeting-transcript-01" \
  --data-binary "$(jq -cn --arg url "${INVIDEO_AUDIO_URL:?Set an HTTPS recording URL}" \
    '{model:"deepgram-nova-3",mode:"transcribe",input:{audio_url:$url,language:"en",diarize:true}}')"
```

Save the response `id`. For a speech generation example, use `cartesia-sonic-3` with mode `generate` and pass the text in `input.prompt` and a Cartesia voice ID in `input.voice_id`.

## Choose inputs

| Task | Fields to look for |
| --- | --- |
| Text to speech | Text and a voice ID. The model may also accept language, speed, emotion, volume, an output format or a sample rate. |
| Music or sound effects | A prompt and, for some models, lyrics, a duration, or an instrumental setting. |
| Transcription | A source audio file and optional controls such as language, word timing or speaker labels. |
| Audio editing, stems or dubbing | A source recording, plus controls such as stem count or target language where the model supports them. |
| Reference audio or video | Some models use reference clips for voice or style. Voice-over models can use a source video to time the track. |

Audio files can be downloadable HTTPS URLs or base64 data URIs. Use the field name, accepted containers, clip length and reference count from the model's schema. [Files](/docs/files)

## Poll and download

For `POST /v1/request`, read `GET /v1/request/{id}` every 2 to 5 seconds while the request is queued or running. Some provider formats return bytes or a transcript when the request finishes. Those that return a task have a status or result route of their own. Use polling for asynchronous completion because media webhooks are unavailable. [Requests](/docs/requests) · [Audio formats](/docs/sdks/audio)

On `succeeded`, download `output.files[].url`. Use each file's `content_type` to select a player or extension. For stems, read `name` when present. For transcription, read `output.transcript.text` and the words, timings and speaker labels the model provides. The transcript is also available as a JSON download. Signed links expire after one hour. Read the request again for fresh links. On `failed`, read `error` for what happened.

## Prices and limits

The [Pricing page](/pricing) and each model page show the billed unit and the exact rate for each priced option.

Models priced per second may bill the source length, as with speech-to-text and dubbing, or the generated length. Other models use a different unit, such as characters for Cartesia Sonic 3. Check `prices[].unit` and `prices[].conditions` in the model details before you submit. The Platform holds an estimate and settles the exact charge when the run ends. Look for `cost_usd` on the generic result or the `x-invideo-cost-usd` header on a settled provider response. Some formats also carry the cost in the body. [Billing and balance](/docs/billing) · [Audio formats](/docs/sdks/audio)

The request body can be up to 64 MB. Use a downloadable HTTPS URL for larger files, up to 100 MB per audio file or 300 MB per reference video. The model may impose smaller limits on files, duration or text length. For a rate-limit response, wait the number of seconds in `Retry-After`. [Files](/docs/files) · [Limits](/docs/limits)

## Fix a field error

A provider format can expose fields the selected model does not take. The API returns a `422` naming a translated field the model cannot use. For example, if you choose a transcript model in a speech synthesis format, send its audio source and omit the speech voice field. Check its input schema for the names and accepted values. With `POST /v1/request`, read `detail[].loc` for the path to an invalid field. [Errors](/docs/errors)
