ElevenLabs Eleven v4 API, ElevenLabs Music API, ElevenLabs Sound Effects v3, Dubbing, Voice Changer, Multilingual v2 API: Pricing, Documentation

by ElevenLabs

ElevenLabs is a premium AI platform for ultra-realistic voice synthesis, voice cloning, and music generation with industry-leading naturalness. Through Pixazo's API, developers can generate lifelike speech in multiple languages, clone voices from short audio samples, and create original music tracks. The API powers applications ranging from audiobook narration and podcast production to real-time voice assistants and multilingual content localization with human-quality audio output.

Get API Key
ElevenLabs Audio API

Models Version

WELCOME BONUS

Get 10% Cashback on Your First Payment (up to $500)

Add funds and get 10% cashback on your first payment (up to $500).

Claim Your Cashback →

ElevenLabs Eleven v4 API Documentation

Turn text into lifelike, expressive speech with Eleven v4, ElevenLabs' most expressive text-to-speech model, in 90+ languages. Direct the delivery with audio tags such as [whispers] or [laughs]. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED. The speech is returned as an MP3 file.

POST https://gateway.pixazo.ai/elevenlabs-eleven-v4-tts/v1/text-to-speech

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Text to Speech - ElevenLabs Eleven v4

Request Code

POST https://gateway.pixazo.ai/elevenlabs-eleven-v4-tts/v1/text-to-speech
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "text": "Welcome to Pixazo. [whispers] This is Eleven v4, the most expressive voice model from ElevenLabs.",
  "stability": 0.5
}
import requests

url = "https://gateway.pixazo.ai/elevenlabs-eleven-v4-tts/v1/text-to-speech"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "text": "Welcome to Pixazo. [whispers] This is Eleven v4, the most expressive voice model from ElevenLabs.",
  "stability": 0.5
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/elevenlabs-eleven-v4-tts/v1/text-to-speech", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "text": "Welcome to Pixazo. [whispers] This is Eleven v4, the most expressive voice model from ElevenLabs.",
  "stability": 0.5
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/elevenlabs-eleven-v4-tts/v1/text-to-speech' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"text": "Welcome to Pixazo. [whispers] This is Eleven v4, the most expressive voice model from ElevenLabs.", "stability": 0.5}'

Output

{
  "request_id": "elevenlabs-eleven-v4-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-eleven-v4-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Example: enable Webhook

curl -X POST 'https://gateway.pixazo.ai/elevenlabs-eleven-v4-tts/v1/text-to-speech' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  -H 'X-Webhook-URL: https://your-server.com/webhook' \
  --data-raw '{"text": "Welcome to Pixazo. [whispers] This is Eleven v4, the most expressive voice model from ElevenLabs.", "stability": 0.5}'

Callback Payload (success)

{
  "request_id": "elevenlabs-eleven-v4-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-eleven-v4-tts",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-09-30T10:04:54.387Z",
  "completed_at": "2026-09-30 10:05:14"
}

Failure callback shape

{
  "request_id": "elevenlabs-eleven-v4-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "elevenlabs-eleven-v4-tts",
  "error": "Description of the failure"
}

Delivery semantics

  • terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
  • sync mode: a Webhook callback on every poll while the request is processing (status PROCESSING), plus the final COMPLETED/ERROR callback.
  • Callbacks are idempotent on request_id — de-duplicate on it.
  • Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / rangeDescription
textYesstring—1–5000 charactersThe text to speak. Direct the delivery with audio tags in square brackets, such as [whispers], [laughs] or [excited]. Set a pronunciation with IPA between forward slashes, such as /təˈmɑːtəʊ/.
voiceNostring— (the provider's default voice)An ElevenLabs voice nameThe voice to speak with, by name — for example Roger, Sarah, Laura, Charlie, George.
stabilityNonumber0.50–1Lower values give a more expressive, varied delivery; higher values keep the delivery closer to a steady baseline.
similarity_boostNonumber0.750–1How closely the speech follows the chosen voice. Higher values sound more like the voice but can reduce naturalness.
language_codeNostring— (detected from the text)ISO 639-1 code, e.g. en, es, jaForces the language, including how numbers and dates are read. Omit it to let the model detect the language. A code the model does not support is ignored, and the language is detected from the text.
apply_text_normalizationNostringautoauto, on, offWhether numbers, dates and abbreviations are spelled out before they are spoken.
seedNointeger—0–4294967295Random seed for best-effort reproducibility. The same seed and text can still sound slightly different.
output_formatNostringmp3_44100_128mp3_22050_32, mp3_44100_32, mp3_44100_64, mp3_44100_96, mp3_44100_128, mp3_44100_192MP3 encoding of the speech, written as codec_sample-rate_bitrate.
  • text is the only required field, 1–5000 characters. Spaces, punctuation and audio tags count towards the length; an emoji counts as two characters.
  • Omit optional fields you do not use — do not send them as null.
  • Eleven v4 has two voice settings, stability and similarity_boost. There is no style, speed or speaker-boost setting, and SSML tags such as <break> are not supported — use audio tags such as [pause] instead.
  • timestamps (per-character timing) is not available on this endpoint. A request with timestamps: true is rejected.
  • ElevenLabs keeps improving Eleven v4 after launch, so the same text can sound slightly different over time.

Audio tags

Write a short instruction in square brackets where the delivery should change — an emotion such as [excited], a way of speaking such as [whispers], a reaction such as [laughs], or a pause such as [pause]. Tags are free-form: describe the voice you want in plain words. Because the model can also produce sound effects, a tag that names a sound may be read as one, so describe how the voice should sound.

{
  "text": "[excited] We did it! [pause] [whispers] Now keep it a secret.",
  "language_code": "en"
}

Example Request

{
  "text": "Welcome to Pixazo. [whispers] This is Eleven v4, the most expressive voice model from ElevenLabs.",
  "stability": 0.5
}

Example Response

{
  "request_id": "elevenlabs-eleven-v4-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-eleven-v4-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Invalid parameters — a required field is missing, a value has the wrong type or is out of range, or the text is too long. Rejected before any hold is placed on your balance.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance for the hold this request needs.
429Too many requests.
500Internal server error.

Most parameter problems are caught when you submit and returned as a 400, before any hold is placed on your balance. A few are only known once the provider has the request; they are reported through the status endpoint as status: "ERROR", with a message in error saying what to fix. Failed requests are not billed — the hold is released in full.

ConditionHow it surfaces
Missing or invalid subscription keysynchronous 401
Balance too low for the holdsynchronous 402
Missing or empty textsynchronous 400
text longer than 5000 characterssynchronous 400
stability or similarity_boost not a number in 0–1, or seed not an integer in 0–4294967295synchronous 400
language_code longer than 3 characters (for example "auto"), or apply_text_normalization or output_format not one of the allowed valuessynchronous 400
timestamps: truesynchronous 400
A voice name the provider does not recognisestatus: "ERROR"
Text refused by the provider's content policystatus: "ERROR"

Retrieving Results

Poll the status endpoint with the request_id from the submit response until status is COMPLETED or ERROR, then download the speech from output.media_url. Treat any status other than QUEUED, PROCESSING or COMPLETED as a failure.

curl 'https://gateway.pixazo.ai/v2/requests/status/elevenlabs-eleven-v4-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response

{
  "request_id": "elevenlabs-eleven-v4-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-eleven-v4-tts",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-09-30T10:04:54.387Z",
  "completed_at": "2026-09-30 10:05:14"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED or ERROR.
model_idstringThe model that handled the request — elevenlabs-eleven-v4-tts for this endpoint.
output.media_urlarray of stringsURL of the speech, as an MP3 file.
output.media_typestringaudio/mpeg.
created_atstringRequest creation timestamp.
completed_atstringCompletion timestamp.
errorstringError message when status is ERROR.

Status Values & Flow

QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure).

How billing is measured

Billing is measured on the length of the text you submit: every started block of 1,000 characters — spaces, punctuation and audio tags included — is one billing unit, so a short request bills one block. The amount is placed as a hold when the request is submitted and released in full if the request fails.

The current rate is shown in the pricing panel on this page.

ElevenLabs Eleven v4 API Pricing

Your request will cost $0.08 per 1,000 characters of input text.
each started block of 1,000 characters is billed once
equivalent to $80 per 1M characters
2. ElevenLabs Sound Effects v3

ElevenLabs Sound Effects v3 API Documentation

Describe a sound in plain words and get a sound effect back: footsteps, rain, a door slam, a trailer hit or a short musical sting, up to 30 seconds long, with optional seamless looping. Sound Effects v3 is ElevenLabs' newest sound-effects model and handles multi-part descriptions, music and vocal sounds better than v2. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED.

POST https://gateway.pixazo.ai/elevenlabs-sound-effects-v3/v1/text-to-sound-effects

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Text to Sound Effects - ElevenLabs Sound Effects v3

Request Code

POST https://gateway.pixazo.ai/elevenlabs-sound-effects-v3/v1/text-to-sound-effects
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "text": "Heavy rain on a tin roof with distant rolling thunder",
  "duration_seconds": 5
}
import requests

url = "https://gateway.pixazo.ai/elevenlabs-sound-effects-v3/v1/text-to-sound-effects"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "text": "Heavy rain on a tin roof with distant rolling thunder",
  "duration_seconds": 5
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/elevenlabs-sound-effects-v3/v1/text-to-sound-effects", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "text": "Heavy rain on a tin roof with distant rolling thunder",
  "duration_seconds": 5
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/elevenlabs-sound-effects-v3/v1/text-to-sound-effects' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"text": "Heavy rain on a tin roof with distant rolling thunder", "duration_seconds": 5}'

Output

{
  "request_id": "elevenlabs-sound-effects-v3_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-sound-effects-v3_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Example: enable Webhook

curl -X POST 'https://gateway.pixazo.ai/elevenlabs-sound-effects-v3/v1/text-to-sound-effects' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  -H 'X-Webhook-URL: https://your-server.com/webhook' \
  --data-raw '{"text": "Heavy rain on a tin roof with distant rolling thunder", "duration_seconds": 5}'

Callback Payload (success)

{
  "request_id": "elevenlabs-sound-effects-v3_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-sound-effects-v3",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/elevenlabs-sound-effects-v3_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-11-03T13:49:47.285Z",
  "updated_at": "2026-11-03 13:50:33",
  "completed_at": "2026-11-03 13:50:32"
}

Failure callback shape

{
  "request_id": "elevenlabs-sound-effects-v3_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "elevenlabs-sound-effects-v3",
  "error": "Description of the failure",
  "output": null,
  "created_at": "2026-11-03T13:49:47.285Z",
  "updated_at": "2026-11-03 13:50:33",
  "completed_at": "2026-11-03 13:50:32"
}

Delivery semantics

  • terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
  • sync mode: a Webhook callback on each status change.
  • Callbacks are idempotent on request_id — de-duplicate on it.
  • Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / rangeDescription
textYesstring—1 – 450 charactersDescribes the sound to make, in plain words: what it is, how it sounds and how it changes, for example Glass shattering on a stone floor, then silence.
promptNostring—1 – 450 charactersAnother name for text, for code written against other sound-effects APIs. Send one of the two.
duration_secondsNonumber—0.5 – 30Length of the sound effect in seconds. Leave it out to let the model pick a length that fits the description.
loopNobooleanfalsetrue, falseMakes a sound that loops seamlessly, for ambience or background beds that repeat without a gap or a click.
prompt_influenceNonumber0.30 – 1How closely the result follows the description. Higher values follow it more literally and vary less between requests; lower values allow more variation.
output_formatNostringmp3_44100_128mp3_22050_32, mp3_24000_48, mp3_44100_32, mp3_44100_64, mp3_44100_96, mp3_44100_128MP3 sample rate and bitrate, written as mp3_<sample rate>_<kbps>. Every format returns audio/mpeg.

How length is measured

Billed per second of the sound effect produced, measured from the returned audio and rounded up to whole seconds. The rate is in the pricing panel on this page.

The length of the audio you get back is what counts. Set duration_seconds to choose it; without it the model picks a length that fits the description, up to 30 seconds.

RequestLength producedBilled seconds
The example request (duration_seconds 5)5 seconds5
A short hit with duration_seconds 1.51.5 seconds2
The longest request30 seconds30

Parameters not supported

Worth reading if you are porting existing ElevenLabs code — some parameters are rejected outright, some fail once the request is processed, and others are accepted and then ignored.

Rejected with 400

Checked when you submit: the request is rejected before it is queued.

ParameterWhyUse instead
model_id, modelThe model is fixed for this endpoint (Sound Effects v3) and is not caller-selectable.—
duration, secondsThe length field is duration_seconds.duration_seconds
output_format mp3_44100_192, PCM, Opus or other codecsNot offered; the listed MP3 formats play everywhere.One of the six mp3_* formats
n, batch_size, count, num_images, number_of_imagesThis API returns one sound effect per request.One request per sound effect

Accepted, then the request fails

These values pass the submit check, so the submit returns 202, but they are validated while the request is processed: the request fails, and the status endpoint (or Webhook) reports status: "ERROR" with an error message that names the problem.

ParameterWhen the request fails
textA description ElevenLabs declines to generate under its content rules. The request ends with an error.

Accepted but ignored

These are silently dropped — the request still returns 202, but the value has no effect on the generated audio. Only the parameters listed in the table above are forwarded.

enable_logging, sign_with_c2pa, and any parameter not listed above

Describing the Sound

Writing a good description

  • Say what the sound is and how it behaves over time: a heavy wooden door creaks open slowly, then slams shut works better than door.
  • Several parts in one description are fine, in the order they should happen; for an exact count of repeats, check the result, because counts such as four knocks are not always followed exactly.
  • Short musical stings, risers and vocal sounds such as a crowd cheering are supported, as well as everyday sounds and ambience.

Looping ambience

Set loop to true for a sound that repeats seamlessly, such as a background bed for a game level or a video scene:

{
  "text": "Gentle forest ambience with birdsong and a light breeze",
  "duration_seconds": 20,
  "loop": true
}

Choosing a length

duration_seconds takes 0.5 to 30 seconds. Leave it out and the model picks a length that suits the description; set it when the effect has to fit an exact cut.

Example Request

{
  "text": "Heavy rain on a tin roof with distant rolling thunder",
  "duration_seconds": 5
}

Example Response

{
  "request_id": "elevenlabs-sound-effects-v3_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-sound-effects-v3_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Bad request — the body failed the submit check and was not queued: text (or prompt) missing, not a string or over 450 characters; duration_seconds not a number from 0.5 to 30; loop not a boolean; prompt_influence not a number from 0 to 1; an output_format outside its allowed values; or any of model_id, model, duration, seconds, n, batch_size, count, num_images, number_of_images (see “Parameters not supported” above).
401Unauthorized — missing or invalid subscription key.
402Insufficient balance.
403Forbidden.
429Too many requests.
500Internal server error.

Problems that can only be detected while the request is processed (“Accepted, then the request fails” above) are not a 400: they are reported through the status endpoint or Webhook with status: "ERROR".

Error Responses

A 400 names every rejected parameter in violations:

{
  "error": "Invalid request parameters",
  "message": "'output_format' must be one of: \"mp3_22050_32\", \"mp3_24000_48\", \"mp3_44100_32\", \"mp3_44100_64\", \"mp3_44100_96\", \"mp3_44100_128\" (got \"mp3_44100_192\")",
  "violations": [
    "'output_format' must be one of: \"mp3_22050_32\", \"mp3_24000_48\", \"mp3_44100_32\", \"mp3_44100_64\", \"mp3_44100_96\", \"mp3_44100_128\" (got \"mp3_44100_192\")"
  ]
}

A request that fails after it was queued is reported via the status endpoint (or Webhook) with status: "ERROR" and an error message — for example when ElevenLabs declines the description.

Retrieving Results

Poll the status endpoint with the request_id from the submit response until status is COMPLETED or ERROR, then download the audio from output.media_url.

curl 'https://gateway.pixazo.ai/v2/requests/status/elevenlabs-sound-effects-v3_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response

Captured from a real Sound Effects v3 request at launch; the request id is masked.

{
  "request_id": "elevenlabs-sound-effects-v3_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-sound-effects-v3",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/elevenlabs-sound-effects-v3_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-11-03T13:49:47.285Z",
  "updated_at": "2026-11-03 13:50:33",
  "completed_at": "2026-11-03 13:50:32"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED or ERROR.
model_idstringThe model that handled the request.
errorstring or nullError message when status is ERROR; otherwise null.
output.media_urlarray of stringsURL of the generated audio (one file per request). Download it and keep your own copy.
output.media_typestringAudio MIME type (audio/mpeg for mp3).
created_atstringRequest creation timestamp.
updated_atstringLast status change timestamp.
completed_atstringCompletion timestamp.
polling_urlstringStatus URL for this request (in the submit response).

Status Values & Flow

QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure). Treat any status other than QUEUED, PROCESSING or COMPLETED as a failure.

  • Save the request_id from the 202 response.
  • Poll the status endpoint every few seconds, or use a Webhook instead.
  • When status is COMPLETED, download the audio from output.media_url.

ElevenLabs Sound Effects v3 API Pricing

Your request will cost $0.002 per second of audio generated.
A 5-second sound effect is billed as 5 seconds of audio; partial seconds are rounded up.
3. ElevenLabs Eleven v4 Turbo

ElevenLabs Eleven v4 Turbo API Documentation

Turn text into expressive speech with Eleven v4 Turbo, the faster variant of ElevenLabs Eleven v4, in 90+ languages. It keeps v4's audio tags such as [whispers] or [laughs] and trades a little audio quality for speed. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED. The speech is returned as an MP3 file.

POST https://gateway.pixazo.ai/elevenlabs-eleven-v4-turbo-tts/v1/text-to-speech

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Text to Speech - ElevenLabs Eleven v4 Turbo

Request Code

POST https://gateway.pixazo.ai/elevenlabs-eleven-v4-turbo-tts/v1/text-to-speech
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "text": "Thanks for calling Pixazo. [warmly] How can I help you today?",
  "stability": 0.5
}
import requests

url = "https://gateway.pixazo.ai/elevenlabs-eleven-v4-turbo-tts/v1/text-to-speech"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "text": "Thanks for calling Pixazo. [warmly] How can I help you today?",
  "stability": 0.5
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/elevenlabs-eleven-v4-turbo-tts/v1/text-to-speech", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "text": "Thanks for calling Pixazo. [warmly] How can I help you today?",
  "stability": 0.5
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/elevenlabs-eleven-v4-turbo-tts/v1/text-to-speech' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"text": "Thanks for calling Pixazo. [warmly] How can I help you today?", "stability": 0.5}'

Output

{
  "request_id": "elevenlabs-eleven-v4-turbo-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-eleven-v4-turbo-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Example: enable Webhook

curl -X POST 'https://gateway.pixazo.ai/elevenlabs-eleven-v4-turbo-tts/v1/text-to-speech' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  -H 'X-Webhook-URL: https://your-server.com/webhook' \
  --data-raw '{"text": "Thanks for calling Pixazo. [warmly] How can I help you today?", "stability": 0.5}'

Callback Payload (success)

{
  "request_id": "elevenlabs-eleven-v4-turbo-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-eleven-v4-turbo-tts",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-09-30T10:04:54.387Z",
  "completed_at": "2026-09-30 10:05:14"
}

Failure callback shape

{
  "request_id": "elevenlabs-eleven-v4-turbo-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "elevenlabs-eleven-v4-turbo-tts",
  "error": "Description of the failure"
}

Delivery semantics

  • terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
  • sync mode: a Webhook callback on every poll while the request is processing (status PROCESSING), plus the final COMPLETED/ERROR callback.
  • Callbacks are idempotent on request_id — de-duplicate on it.
  • Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / rangeDescription
textYesstring—1–5000 charactersThe text to speak. Direct the delivery with audio tags in square brackets, such as [whispers], [laughs] or [excited].
voiceNostring— (the provider's default voice)An ElevenLabs voice nameThe voice to speak with, by name — for example Roger, Sarah, Laura, Charlie, George.
stabilityNonumber0.50–1Lower values give a more expressive, varied delivery; higher values keep the delivery closer to a steady baseline.
similarity_boostNonumber0.750–1How closely the speech follows the chosen voice. Higher values sound more like the voice but can reduce naturalness.
language_codeNostring— (detected from the text)ISO 639-1 code, e.g. en, es, jaForces the language, including how numbers and dates are read. Omit it to let the model detect the language. A code the model does not support is ignored, and the language is detected from the text.
apply_text_normalizationNostringautoauto, on, offWhether numbers, dates and abbreviations are spelled out before they are spoken.
seedNointeger—0–4294967295Random seed for best-effort reproducibility. The same seed and text can still sound slightly different.
output_formatNostringmp3_44100_128mp3_22050_32, mp3_44100_32, mp3_44100_64, mp3_44100_96, mp3_44100_128, mp3_44100_192MP3 encoding of the speech, written as codec_sample-rate_bitrate.
  • text is the only required field, 1–5000 characters. Spaces, punctuation and audio tags count towards the length; an emoji counts as two characters.
  • Omit optional fields you do not use — do not send them as null.
  • Eleven v4 Turbo has two voice settings, stability and similarity_boost. There is no style, speed or speaker-boost setting, and SSML tags such as <break> are not supported — use audio tags such as [pause] instead.
  • timestamps (per-character timing) is not available on this endpoint. A request with timestamps: true is rejected.
  • ElevenLabs keeps improving Eleven v4 after launch, so the same text can sound slightly different over time.

Audio tags

Write a short instruction in square brackets where the delivery should change — an emotion such as [excited], a way of speaking such as [whispers], a reaction such as [laughs], or a pause such as [pause]. Tags are free-form: describe the voice you want in plain words. Because the model can also produce sound effects, a tag that names a sound may be read as one, so describe how the voice should sound.

{
  "text": "[excited] We did it! [pause] [whispers] Now keep it a secret.",
  "language_code": "en"
}

Example Request

{
  "text": "Thanks for calling Pixazo. [warmly] How can I help you today?",
  "stability": 0.5
}

Example Response

{
  "request_id": "elevenlabs-eleven-v4-turbo-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-eleven-v4-turbo-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Invalid parameters — a required field is missing, a value has the wrong type or is out of range, or the text is too long. Rejected before any hold is placed on your balance.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance for the hold this request needs.
429Too many requests.
500Internal server error.

Most parameter problems are caught when you submit and returned as a 400, before any hold is placed on your balance. A few are only known once the provider has the request; they are reported through the status endpoint as status: "ERROR", with a message in error saying what to fix. Failed requests are not billed — the hold is released in full.

ConditionHow it surfaces
Missing or invalid subscription keysynchronous 401
Balance too low for the holdsynchronous 402
Missing or empty textsynchronous 400
text longer than 5000 characterssynchronous 400
stability or similarity_boost not a number in 0–1, or seed not an integer in 0–4294967295synchronous 400
language_code longer than 3 characters (for example "auto"), or apply_text_normalization or output_format not one of the allowed valuessynchronous 400
timestamps: truesynchronous 400
A voice name the provider does not recognisestatus: "ERROR"
Text refused by the provider's content policystatus: "ERROR"

Retrieving Results

Poll the status endpoint with the request_id from the submit response until status is COMPLETED or ERROR, then download the speech from output.media_url. Treat any status other than QUEUED, PROCESSING or COMPLETED as a failure.

curl 'https://gateway.pixazo.ai/v2/requests/status/elevenlabs-eleven-v4-turbo-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response

{
  "request_id": "elevenlabs-eleven-v4-turbo-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-eleven-v4-turbo-tts",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-09-30T10:04:54.387Z",
  "completed_at": "2026-09-30 10:05:14"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED or ERROR.
model_idstringThe model that handled the request — elevenlabs-eleven-v4-turbo-tts for this endpoint.
output.media_urlarray of stringsURL of the speech, as an MP3 file.
output.media_typestringaudio/mpeg.
created_atstringRequest creation timestamp.
completed_atstringCompletion timestamp.
errorstringError message when status is ERROR.

Status Values & Flow

QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure).

How billing is measured

Billing is measured on the length of the text you submit: every started block of 1,000 characters — spaces, punctuation and audio tags included — is one billing unit, so a short request bills one block. The amount is placed as a hold when the request is submitted and released in full if the request fails.

The current rate is shown in the pricing panel on this page.

ElevenLabs Eleven v4 Turbo API Pricing

Your request will cost $0.04 per 1,000 characters of input text.
each started block of 1,000 characters is billed once
equivalent to $40 per 1M characters
4. ElevenLabs Music v2.5

ElevenLabs Music v2.5 API Documentation

Generate an original, studio-quality music track from a text prompt or a section-by-section composition plan, with or without vocals, up to 10 minutes long. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED. The track is returned as an MP3 file.

POST https://gateway.pixazo.ai/elevenlabs-music/v2.5/text-to-music

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Text to Music - ElevenLabs Music v2.5

Request Code

POST https://gateway.pixazo.ai/elevenlabs-music/v2.5/text-to-music
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "prompt": "Upbeat lofi hip hop with warm piano chords and a relaxed drum groove",
  "music_length_ms": 30000
}
import requests

url = "https://gateway.pixazo.ai/elevenlabs-music/v2.5/text-to-music"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "prompt": "Upbeat lofi hip hop with warm piano chords and a relaxed drum groove",
  "music_length_ms": 30000
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/elevenlabs-music/v2.5/text-to-music", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "prompt": "Upbeat lofi hip hop with warm piano chords and a relaxed drum groove",
  "music_length_ms": 30000
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/elevenlabs-music/v2.5/text-to-music' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"prompt": "Upbeat lofi hip hop with warm piano chords and a relaxed drum groove", "music_length_ms": 30000}'

Output

{
  "request_id": "elevenlabs-music-v2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-music-v2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Example: enable Webhook

curl -X POST 'https://gateway.pixazo.ai/elevenlabs-music/v2.5/text-to-music' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  -H 'X-Webhook-URL: https://your-server.com/webhook' \
  --data-raw '{"prompt": "Upbeat lofi hip hop with warm piano chords and a relaxed drum groove", "music_length_ms": 30000}'

Callback Payload (success)

{
  "request_id": "elevenlabs-music-v2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-music-v2-5",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-09-15T10:40:08.748Z",
  "completed_at": "2026-09-15 10:40:36"
}

Failure callback shape

{
  "request_id": "elevenlabs-music-v2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "elevenlabs-music-v2-5",
  "error": "Description of the failure"
}

Delivery semantics

  • terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
  • sync mode: a Webhook callback on each status change.
  • Callbacks are idempotent on request_id — de-duplicate on it.
  • Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / rangeDescription
promptYes, unless composition_plan is givenstring—1–4100 charactersA text description of the music to generate: genre, mood, instrumentation, tempo, and whether it has vocals. Cannot be combined with composition_plan.
music_length_msNointeger— (chosen by the model)3000–600000Length of the track in milliseconds, from 3 seconds to 10 minutes. Only valid with prompt. Set this. Without it the length is not known when the request is submitted, so the hold placed on your balance covers the 10-minute maximum until the real length is measured.
force_instrumentalNobooleanfalsetrue, falseWhen true, guarantees the track has no vocals. When false, the prompt decides. Only valid with prompt.
composition_planYes, unless prompt is givenobject—chunks: 1–30 entriesA section-by-section plan of the track, as an alternative to prompt. Uses the v2 chunks shape — the v1 sections shape is not accepted. See Composition plans below.
seedNointeger—0–2147483647Random seed. Repeating a request with the same seed and parameters gives more consistent results, but exact reproducibility is not guaranteed. ElevenLabs documents seed as not usable in conjunction with prompt — use it on composition_plan requests.

Prompt or composition plan

  • Send exactly one of prompt or composition_plan. Sending both, or neither, fails the request.
  • music_length_ms and force_instrumental apply to prompt only. With a composition plan, the length is the sum of the chunk durations.
  • The model is fixed by the URL. Do not send a model_id in the body — it is rejected. To use a different version, call its URL.
  • The track is at most 10 minutes long and is returned as an MP3.

Composition plans

A composition plan describes the track as an ordered list of chunks, each with its own lyrics, length and style. Use it when you need control over structure — an intro, verses, a chorus — rather than leaving the arrangement to the model.

Chunk fieldRequiredTypeDescription
textYesstringThe lyrics or content of this section. May start with a section name in square brackets, e.g. [Verse 1], followed by lyric lines.
duration_msYesintegerLength of this section, 3000–120000 ms. All chunks together must total 3000–600000 ms.
positive_stylesYesarray of stringsStyles and musical directions to include, e.g. ["synthwave", "analog drum machine"]. The first chunk's styles set the overall tone. Must not be empty.
negative_stylesNoarray of stringsStyles to keep out of this section. Leaving it empty is a good default.

Example

{
  "composition_plan": {
    "chunks": [
      {
        "text": "[Intro]",
        "duration_ms": 8000,
        "positive_styles": [
          "cinematic",
          "soft strings",
          "slow build"
        ]
      },
      {
        "text": "[Verse 1]\nNeon rain on empty streets\nI keep walking to the beat",
        "duration_ms": 20000,
        "positive_styles": [
          "synthwave",
          "analog drum machine",
          "male vocals"
        ],
        "negative_styles": [
          "distorted guitar"
        ]
      }
    ]
  }
}

Migrating from ElevenLabs Music v1

The v1 composition plan used a sections array. This version uses chunks, and the two shapes are not interchangeable: a plan written for v1 fails here, and a plan written for this version fails on v1. Prompt-only requests work the same way on both.

Example Request

{
  "prompt": "Upbeat lofi hip hop with warm piano chords and a relaxed drum groove",
  "music_length_ms": 30000
}

Example Response

{
  "request_id": "elevenlabs-music-v2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-music-v2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Invalid parameters — a required field is missing, or a value has the wrong type or is out of range. Rejected before any hold is placed on your balance.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance for the hold this request needs.
429Too many requests.
500Internal server error.

Most parameter problems are caught when you submit and returned as a 400, before any hold is placed on your balance. A few checks need the whole composition plan to be read, so they run after the request is accepted and are reported through the status endpoint as status: "ERROR", with a message in error saying what to fix. Failed requests are not billed — the hold is released in full.

ConditionHow it surfaces
Missing or invalid subscription keysynchronous 401
Balance too low for the holdsynchronous 402
Neither prompt nor composition_plan provided, or a blank promptsynchronous 400
prompt longer than 4100 characterssynchronous 400
music_length_ms not an integer, or outside 3000–600000synchronous 400
force_instrumental not a boolean, or seed not an integer in 0–4294967295synchronous 400
Both prompt and composition_plan, or music_length_ms / force_instrumental sent with a composition planstatus: "ERROR"
A composition plan using v1 sections instead of chunksstatus: "ERROR"
A chunk missing text, duration_ms or positive_styles, or chunks totalling more than 10 minutesstatus: "ERROR"
A model_id in the bodystatus: "ERROR"

Retrieving Results

Poll the status endpoint with the request_id from the submit response until status is COMPLETED (or FAILED/ERROR), then download the track from output.media_url.

curl 'https://gateway.pixazo.ai/v2/requests/status/elevenlabs-music-v2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response

{
  "request_id": "elevenlabs-music-v2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-music-v2-5",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-09-15T10:40:08.748Z",
  "completed_at": "2026-09-15 10:40:36"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR.
model_idstringThe model that handled the request — elevenlabs-music-v2-5 for this endpoint.
output.media_urlarray of stringsURL of the generated MP3 track.
output.media_typestringaudio/mpeg.
created_atstringRequest creation timestamp.
completed_atstringCompletion timestamp.
errorstringError message when status is FAILED/ERROR.

Status Values & Flow

QUEUED → PROCESSING → COMPLETED (success) or FAILED/ERROR (failure).

How billing is measured

Billing is measured on the length of the generated track, rounded up to the next whole minute — not on how long generation takes. A hold is placed when the request is submitted, sized from music_length_ms or from the chunk durations of a composition plan; if neither is given, the hold covers the 10-minute maximum. The hold is reduced to the real cost once the finished track has been measured, and released in full if the request fails.

The current rate is shown in the pricing panel on this page.

ElevenLabs Music v2.5 API Pricing

Your request will cost $0.30 per minute of generated music.
billed in 1-minute increments, rounded up
5. ElevenLabs Music v2

ElevenLabs Music v2 API Documentation

Generate an original, studio-quality music track from a text prompt or a section-by-section composition plan, with or without vocals, up to 10 minutes long. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED. The track is returned as an MP3 file.

POST https://gateway.pixazo.ai/elevenlabs-music/v2/text-to-music

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Text to Music - ElevenLabs Music v2

Request Code

POST https://gateway.pixazo.ai/elevenlabs-music/v2/text-to-music
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "prompt": "Upbeat lofi hip hop with warm piano chords and a relaxed drum groove",
  "music_length_ms": 30000
}
import requests

url = "https://gateway.pixazo.ai/elevenlabs-music/v2/text-to-music"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "prompt": "Upbeat lofi hip hop with warm piano chords and a relaxed drum groove",
  "music_length_ms": 30000
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/elevenlabs-music/v2/text-to-music", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "prompt": "Upbeat lofi hip hop with warm piano chords and a relaxed drum groove",
  "music_length_ms": 30000
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/elevenlabs-music/v2/text-to-music' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"prompt": "Upbeat lofi hip hop with warm piano chords and a relaxed drum groove", "music_length_ms": 30000}'

Output

{
  "request_id": "elevenlabs-music-v2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-music-v2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Example: enable Webhook

curl -X POST 'https://gateway.pixazo.ai/elevenlabs-music/v2/text-to-music' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  -H 'X-Webhook-URL: https://your-server.com/webhook' \
  --data-raw '{"prompt": "Upbeat lofi hip hop with warm piano chords and a relaxed drum groove", "music_length_ms": 30000}'

Callback Payload (success)

{
  "request_id": "elevenlabs-music-v2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-music-v2",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-09-15T10:40:08.748Z",
  "completed_at": "2026-09-15 10:40:36"
}

Failure callback shape

{
  "request_id": "elevenlabs-music-v2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "elevenlabs-music-v2",
  "error": "Description of the failure"
}

Delivery semantics

  • terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
  • sync mode: a Webhook callback on each status change.
  • Callbacks are idempotent on request_id — de-duplicate on it.
  • Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / rangeDescription
promptYes, unless composition_plan is givenstring—1–4100 charactersA text description of the music to generate: genre, mood, instrumentation, tempo, and whether it has vocals. Cannot be combined with composition_plan.
music_length_msNointeger— (chosen by the model)3000–600000Length of the track in milliseconds, from 3 seconds to 10 minutes. Only valid with prompt. Set this. Without it the length is not known when the request is submitted, so the hold placed on your balance covers the 10-minute maximum until the real length is measured.
force_instrumentalNobooleanfalsetrue, falseWhen true, guarantees the track has no vocals. When false, the prompt decides. Only valid with prompt.
composition_planYes, unless prompt is givenobject—chunks: 1–30 entriesA section-by-section plan of the track, as an alternative to prompt. Uses the v2 chunks shape — the v1 sections shape is not accepted. See Composition plans below.
seedNointeger—0–2147483647Random seed. Repeating a request with the same seed and parameters gives more consistent results, but exact reproducibility is not guaranteed. ElevenLabs documents seed as not usable in conjunction with prompt — use it on composition_plan requests.

Prompt or composition plan

  • Send exactly one of prompt or composition_plan. Sending both, or neither, fails the request.
  • music_length_ms and force_instrumental apply to prompt only. With a composition plan, the length is the sum of the chunk durations.
  • The model is fixed by the URL. Do not send a model_id in the body — it is rejected. To use a different version, call its URL.
  • The track is at most 10 minutes long and is returned as an MP3.

Composition plans

A composition plan describes the track as an ordered list of chunks, each with its own lyrics, length and style. Use it when you need control over structure — an intro, verses, a chorus — rather than leaving the arrangement to the model.

Chunk fieldRequiredTypeDescription
textYesstringThe lyrics or content of this section. May start with a section name in square brackets, e.g. [Verse 1], followed by lyric lines.
duration_msYesintegerLength of this section, 3000–120000 ms. All chunks together must total 3000–600000 ms.
positive_stylesYesarray of stringsStyles and musical directions to include, e.g. ["synthwave", "analog drum machine"]. The first chunk's styles set the overall tone. Must not be empty.
negative_stylesNoarray of stringsStyles to keep out of this section. Leaving it empty is a good default.

Example

{
  "composition_plan": {
    "chunks": [
      {
        "text": "[Intro]",
        "duration_ms": 8000,
        "positive_styles": [
          "cinematic",
          "soft strings",
          "slow build"
        ]
      },
      {
        "text": "[Verse 1]\nNeon rain on empty streets\nI keep walking to the beat",
        "duration_ms": 20000,
        "positive_styles": [
          "synthwave",
          "analog drum machine",
          "male vocals"
        ],
        "negative_styles": [
          "distorted guitar"
        ]
      }
    ]
  }
}

Migrating from ElevenLabs Music v1

The v1 composition plan used a sections array. This version uses chunks, and the two shapes are not interchangeable: a plan written for v1 fails here, and a plan written for this version fails on v1. Prompt-only requests work the same way on both.

Example Request

{
  "prompt": "Upbeat lofi hip hop with warm piano chords and a relaxed drum groove",
  "music_length_ms": 30000
}

Example Response

{
  "request_id": "elevenlabs-music-v2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-music-v2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Invalid parameters — a required field is missing, or a value has the wrong type or is out of range. Rejected before any hold is placed on your balance.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance for the hold this request needs.
429Too many requests.
500Internal server error.

Most parameter problems are caught when you submit and returned as a 400, before any hold is placed on your balance. A few checks need the whole composition plan to be read, so they run after the request is accepted and are reported through the status endpoint as status: "ERROR", with a message in error saying what to fix. Failed requests are not billed — the hold is released in full.

ConditionHow it surfaces
Missing or invalid subscription keysynchronous 401
Balance too low for the holdsynchronous 402
Neither prompt nor composition_plan provided, or a blank promptsynchronous 400
prompt longer than 4100 characterssynchronous 400
music_length_ms not an integer, or outside 3000–600000synchronous 400
force_instrumental not a boolean, or seed not an integer in 0–4294967295synchronous 400
Both prompt and composition_plan, or music_length_ms / force_instrumental sent with a composition planstatus: "ERROR"
A composition plan using v1 sections instead of chunksstatus: "ERROR"
A chunk missing text, duration_ms or positive_styles, or chunks totalling more than 10 minutesstatus: "ERROR"
A model_id in the bodystatus: "ERROR"

Retrieving Results

Poll the status endpoint with the request_id from the submit response until status is COMPLETED (or FAILED/ERROR), then download the track from output.media_url.

curl 'https://gateway.pixazo.ai/v2/requests/status/elevenlabs-music-v2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response

{
  "request_id": "elevenlabs-music-v2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-music-v2",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-09-15T10:40:08.748Z",
  "completed_at": "2026-09-15 10:40:36"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR.
model_idstringThe model that handled the request — elevenlabs-music-v2 for this endpoint.
output.media_urlarray of stringsURL of the generated MP3 track.
output.media_typestringaudio/mpeg.
created_atstringRequest creation timestamp.
completed_atstringCompletion timestamp.
errorstringError message when status is FAILED/ERROR.

Status Values & Flow

QUEUED → PROCESSING → COMPLETED (success) or FAILED/ERROR (failure).

How billing is measured

Billing is measured on the length of the generated track, rounded up to the next whole minute — not on how long generation takes. A hold is placed when the request is submitted, sized from music_length_ms or from the chunk durations of a composition plan; if neither is given, the hold covers the 10-minute maximum. The hold is reduced to the real cost once the finished track has been measured, and released in full if the request fails.

The current rate is shown in the pricing panel on this page.

ElevenLabs Music v2 API Pricing

Your request will cost $0.30 per minute of generated music.
billed in 1-minute increments, rounded up
6. ElevenLabs Sound Effects v2
⚠️ This API retires on 28 February 2027
ElevenLabs is removing eleven_text_to_sound_v2, the model behind this API, on 1 March 2027, so this API stops on 28 February 2027. Requests sent from that date will fail and are not charged. Migrate to ElevenLabs Sound Effects v3 (elevenlabs-sound-effects-v3) (pixazo.ai/models/elevenlabs).

ElevenLabs Sound Effects v2 API Documentation

Generate a sound effect from a text description — an impact, an ambience, foley, an interface sound — up to 30 seconds long, optionally looping smoothly. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED. The sound effect is returned as an MP3 file.

POST https://gateway.pixazo.ai/elevenlabs-sound-effects/v1/text-to-sound-effects

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Text to Sound Effects - ElevenLabs Sound Effects v2

Request Code

POST https://gateway.pixazo.ai/elevenlabs-sound-effects/v1/text-to-sound-effects
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "text": "Heavy wooden door creaking open slowly in a large empty hall",
  "duration_seconds": 5
}
import requests

url = "https://gateway.pixazo.ai/elevenlabs-sound-effects/v1/text-to-sound-effects"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "text": "Heavy wooden door creaking open slowly in a large empty hall",
  "duration_seconds": 5
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/elevenlabs-sound-effects/v1/text-to-sound-effects", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "text": "Heavy wooden door creaking open slowly in a large empty hall",
  "duration_seconds": 5
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/elevenlabs-sound-effects/v1/text-to-sound-effects' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"text": "Heavy wooden door creaking open slowly in a large empty hall", "duration_seconds": 5}'

Output

{
  "request_id": "elevenlabs-sound-effects_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-sound-effects_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Example: enable Webhook

curl -X POST 'https://gateway.pixazo.ai/elevenlabs-sound-effects/v1/text-to-sound-effects' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  -H 'X-Webhook-URL: https://your-server.com/webhook' \
  --data-raw '{"text": "Heavy wooden door creaking open slowly in a large empty hall", "duration_seconds": 5}'

Callback Payload (success)

{
  "request_id": "elevenlabs-sound-effects_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-sound-effects",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-09-15T10:40:08.748Z",
  "completed_at": "2026-09-15 10:40:36"
}

Failure callback shape

{
  "request_id": "elevenlabs-sound-effects_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "elevenlabs-sound-effects",
  "error": "Description of the failure"
}

Delivery semantics

  • terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
  • sync mode: a Webhook callback on each status change.
  • Callbacks are idempotent on request_id — de-duplicate on it.
  • Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / rangeDescription
textYesstring—1–1000 charactersA description of the sound effect to generate: what makes the sound, where it happens and how it changes over time.
duration_secondsNonumber— (chosen by the model)0.5–30Length of the sound effect in seconds. Omit it to let the model choose a length that suits the description.
loopNobooleanfalsetrue, falseWhen true, generates a sound effect that loops smoothly, for ambiences and backgrounds that repeat.
prompt_influenceNonumber0.30–1How closely the result follows the description. Higher values follow the text more closely and vary less between generations; lower values leave the model more room to interpret it.
  • text is the only required field. The sound effect is at most 30 seconds long.
  • The model is fixed by the URL. Do not send a model_id in the body — it is rejected.

Example Request

{
  "text": "Heavy wooden door creaking open slowly in a large empty hall",
  "duration_seconds": 5
}

Example Response

{
  "request_id": "elevenlabs-sound-effects_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-sound-effects_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Invalid parameters — a required field is missing, a value has the wrong type or is out of range, or an input is too long. Rejected before any hold is placed on your balance.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance for the hold this request needs.
429Too many requests.
500Internal server error.

Most parameter problems are caught when you submit and returned as a 400, before any hold is placed on your balance. A few checks run after the request is accepted and are reported through the status endpoint as status: "ERROR", with a message in error saying what to fix. Failed requests are not billed — the hold is released in full.

ConditionHow it surfaces
Missing or invalid subscription keysynchronous 401
Balance too low for the holdsynchronous 402
Missing or empty textsynchronous 400
text longer than 1000 characterssynchronous 400
duration_seconds not a number, or outside 0.5–30synchronous 400
loop not a boolean, or prompt_influence not a number in 0–1synchronous 400
A model_id in the bodystatus: "ERROR"

Retrieving Results

Poll the status endpoint with the request_id from the submit response until status is COMPLETED (or FAILED/ERROR), then download the sound effect from output.media_url.

curl 'https://gateway.pixazo.ai/v2/requests/status/elevenlabs-sound-effects_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response

{
  "request_id": "elevenlabs-sound-effects_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-sound-effects",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-09-15T10:40:08.748Z",
  "completed_at": "2026-09-15 10:40:36"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR.
model_idstringThe model that handled the request — elevenlabs-sound-effects for this endpoint.
output.media_urlarray of stringsURL of the sound effect, as an MP3 file.
output.media_typestringaudio/mpeg.
created_atstringRequest creation timestamp.
completed_atstringCompletion timestamp.
errorstringError message when status is FAILED/ERROR.

Status Values & Flow

QUEUED → PROCESSING → COMPLETED (success) or FAILED/ERROR (failure).

How billing is measured

Billing is measured on the length of the generated sound effect, in seconds — not on how long generation takes. A hold covering the 30-second maximum is placed when the request is submitted; it is reduced to the real cost once the sound effect has been measured, and released in full if the request fails.

The current rate is shown in the pricing panel on this page.

ElevenLabs Sound Effects v2 API Pricing

Your request will cost $0.002 per second of generated audio.
billed on the length of the sound effect produced
7. ElevenLabs Dubbing

ElevenLabs Dubbing API Documentation

Dub a video or audio file into another language while preserving each speaker's voice. Video sources come back as dubbed video with the picture intact; audio sources come back as audio. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED.

POST https://gateway.pixazo.ai/elevenlabs-dubbing/v1/dub

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Dubbing - ElevenLabs Dubbing

Request Code

POST https://gateway.pixazo.ai/elevenlabs-dubbing/v1/dub
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "source_url": "",
  "target_lang": "de",
  "source_lang": "en",
  "name": "q3-webinar-de",
  "num_speakers": 2,
  "start_time": 0,
  "end_time": 120,
  "drop_background_audio": true,
  "highest_resolution": true
}
import requests

url = "https://gateway.pixazo.ai/elevenlabs-dubbing/v1/dub"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "source_url": "",
  "target_lang": "de",
  "source_lang": "en",
  "name": "q3-webinar-de",
  "num_speakers": 2,
  "start_time": 0,
  "end_time": 120,
  "drop_background_audio": True,
  "highest_resolution": True
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/elevenlabs-dubbing/v1/dub", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "source_url": "",
  "target_lang": "de",
  "source_lang": "en",
  "name": "q3-webinar-de",
  "num_speakers": 2,
  "start_time": 0,
  "end_time": 120,
  "drop_background_audio": true,
  "highest_resolution": true
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/elevenlabs-dubbing/v1/dub' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"source_url": "", "target_lang": "de", "source_lang": "en", "name": "q3-webinar-de", "num_speakers": 2, "start_time": 0, "end_time": 120, "drop_background_audio": true, "highest_resolution": true}'

Output

{
  "request_id": "elevenlabs-dubbing_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-dubbing_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

Webhook Headers

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback. Must respond 2xx.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Example: enable Webhook

curl -X POST 'https://gateway.pixazo.ai/elevenlabs-dubbing/v1/dub' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  -H 'X-Webhook-URL: https://your-server.com/webhook' \
  -H 'X-Webhook-Mode: terminal' \
  --data-raw '{"source_url": "", "target_lang": "de"}'

Callback Payload (success)

{
  "request_id": "elevenlabs-dubbing_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-dubbing",
  "output": {
    "media_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/elevenlabs-dubbing/019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.mp4",
    "media_type": "video/mp4"
  },
  "duration": 15.86
}

Failure callback shape

{
  "request_id": "elevenlabs-dubbing_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "elevenlabs-dubbing",
  "error": "Couldn't extract audio from the downloaded file.",
  "output": null
}

Delivery semantics

  • terminal mode (default): one Webhook callback when the request is COMPLETED or ERROR.
  • sync mode: a Webhook callback on every poll.
  • Callbacks are idempotent on request_id — de-duplicate on it.
  • Respond 200 OK within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / rangeDescription
source_urlYesstring (uri)—public http(s); max 600 seconds of mediaPublic URL of the video or audio file to dub. Must be reachable without authentication and must contain an audible speech track. These aliases are also accepted: video_url, audio_url, media_url, url.
target_langYesstring—ISO-639-1 or ISO-639-3 code; 86 languagesLanguage to dub into, for example es, fr, de, hi, ja, pt. Use the base language tag — region-qualified tags such as pt-BR or es-MX are not supported. Alias: target_language.
source_langNostringautoISO-639-1 or ISO-639-3 code, or autoLanguage of the source media, as a base language tag. auto detects it. Alias: source_language.
nameNostring—truncated to 200 charactersOptional name for the dubbing job, useful for your own reconciliation. Longer values are truncated to the first 200 characters.
num_speakersNointeger00 – 32Number of distinct speakers in the source. 0 detects the count automatically.
start_timeNointeger—0 – 86400 (seconds)Dub only from this offset into the source media, in seconds.
end_timeNointeger—0 – 86400 (seconds), must exceed start_timeDub only up to this offset into the source media, in seconds.
target_accentNostring—free text; truncated to 200 charactersExperimental. Preferred accent for the dubbed voices; also informs the dialect chosen during translation.
highest_resolutionNobooleanfalsetrue, falseRender the dubbed video at the highest resolution available.
drop_background_audioNobooleanfalsetrue, falseRemove background audio. Improves quality for speeches and monologues.
use_profanity_filterNoboolean—true, falseBeta. Censors profanities in the transcript as [censored].
disable_voice_cloningNobooleanfalsetrue, falseUse a similar voice from the ElevenLabs Voice Library instead of cloning the speaker's own voice. Library voices count against the ElevenLabs workspace voice limit, and the dub fails if no slot is free.

Minimum request

Only source_url and target_lang are required. Everything else has a working default.

{
  "source_url": "https://storage.googleapis.com/eleven-public-cdn/audio/marketing/nicole.mp3",
  "target_lang": "es"
}

Source Media & Languages

Source requirements

  • source_url must be a public http(s) URL reachable without authentication — no signed-header or private-bucket URLs.
  • The file must contain an audible speech track. Silent video, music-only audio and files whose audio stream cannot be read are rejected.
  • A video source returns dubbed video with the original picture intact (video/mp4). An audio source returns audio (audio/mpeg).

Limits

LimitValueBehaviour when exceeded
Maximum source length600 seconds (10 minutes)Submit still returns 202. The source is measured after the request is queued and before anything is sent to ElevenLabs, so an over-length source ends the job there: the next status poll returns status: "ERROR" with Source media is <N>s long; this endpoint accepts up to 600s. Nothing is charged — the hold on your balance is released.
Concurrent dubbing jobs3Submit further jobs only after one finishes; keep no more than three in flight.

To dub media longer than 600 seconds, split it into segments and submit each segment separately — or use start_time and end_time to dub only the portion you need.

The length check is best-effort: it depends on reading the duration out of the file at source_url. If that duration cannot be read, the job is not blocked — it is dubbed and billed normally. Keep your sources within 600 seconds rather than relying on the check to stop them.

Processing time

Processing time scales with media length. Measured: about 12 seconds for 15 seconds of audio, and about 22 seconds for 16 seconds of video.

Supported languages

This endpoint runs ElevenLabs dubbing_v1, which supports the 86 languages below. Give the code in target_lang (and optionally in source_lang). Use the base language tag — region-qualified variants such as pt-BR, es-MX or en-GB are not supported:

CodeLanguageCodeLanguage
afAfrikaansarArabic
hyArmenianasAssamese
astAsturianazAzerbaijani
beBelarusianbnBengali
bsBosnianbgBulgarian
myBurmeseyueCantonese
caCatalancebCebuano
nyChichewazhChinese
hrCroatiancsCzech
daDanishnlDutch
enEnglishetEstonian
filFilipinofiFinnish
frFrenchglGalician
kaGeorgiandeGerman
elGreekguGujarati
haHausaheHebrew
hiHindihuHungarian
isIcelandicidIndonesian
gaIrishitItalian
jaJapanesejvJavanese
knKannadakkKazakh
koKoreankyKyrgyz
lvLatvianlnLingala
ltLithuanianlbLuxembourgish
mkMacedonianmsMalay
mlMalayalammtMaltese
miMaorimrMarathi
mnMongolianneNepali
noNorwegianocOccitan
orOdiapsPashto
faPersianplPolish
ptPortuguesepaPunjabi
roRomanianruRussian
srSerbiansdSindhi
skSlovakslSlovenian
soSomaliesSpanish
swSwahilisvSwedish
tlTagalogtgTajik
taTamilteTelugu
thThaitrTurkish
ukUkrainianurUrdu
uzUzbekviVietnamese
cyWelshyoYoruba

Example Request

{
  "source_url": "",
  "target_lang": "de",
  "source_lang": "en",
  "name": "q3-webinar-de",
  "num_speakers": 2,
  "start_time": 0,
  "end_time": 120,
  "drop_background_audio": true,
  "highest_resolution": true
}

Example Response

{
  "request_id": "elevenlabs-dubbing_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-dubbing_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).
X-Webhook-ModeNoterminal (default) or sync.

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Bad request — invalid or missing parameters: a missing or non-http(s) source_url, a missing or malformed target_lang, an end_time that is not greater than start_time, or a value outside its allowed range. Nothing is charged. Source media longer than 600 seconds is not a 400 — it is accepted here and fails on the status poll instead.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance.
403Forbidden.
429Too many requests.
500Internal server error.

Error Responses

{
  "request_id": "elevenlabs-dubbing_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "elevenlabs-dubbing",
  "error": "Couldn't extract audio from the downloaded file.",
  "output": null
}

A failed dub is reported via the status endpoint (or Webhook) with status: "ERROR", an error message and output: null. The messages you are most likely to see:

CauseMessage
Source URL unreachable, or its audio/video metadata cannot be readURL 'https://…/does-not-exist.mp4' is invalid or audio/video metadata cannot be extracted from it.
Source has no audible speech trackCouldn't extract audio from the downloaded file.
Source media longer than the 600-second limit. Submit returns 202; the job then fails on the first status poll, before anything is sent to ElevenLabs, and nothing is chargedSource media is 667s long; this endpoint accepts up to 600s.

Retrieving Results

Poll the status endpoint with the request_id from the submit response until status is COMPLETED (or FAILED/ERROR).

GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
curl 'https://gateway.pixazo.ai/v2/requests/status/elevenlabs-dubbing_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response (video source)

{
  "request_id": "elevenlabs-dubbing_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-dubbing",
  "output": {
    "media_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/elevenlabs-dubbing/019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.mp4",
    "media_type": "video/mp4"
  },
  "duration": 15.86
}

An audio source returns the same envelope with media_type of audio/mpeg and an audio media_url. output.media_url is a Pixazo-hosted URL. The top-level duration is the length of the source media in seconds — it is what the per-minute charge is computed from.

Response Fields

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR.
model_idstringThe model that handled the request.
output.media_urlstringPixazo-hosted URL of the dubbed media.
output.media_typestringMIME type of the output — video/mp4 for video sources, audio/mpeg for audio sources.
durationnumberLength of the source media in seconds. The per-minute charge is computed from this value.
polling_urlstringStatus URL for this request.
errorstringError message when status is FAILED/ERROR; output is null in that case.

Status Values & Flow

QUEUED → PROCESSING → COMPLETED (success) or FAILED/ERROR (failure).

Typical Workflow

  1. POST https://gateway.pixazo.ai/elevenlabs-dubbing/v1/dub with source_url and target_lang; read request_id from the 202 response.
  2. Poll GET https://gateway.pixazo.ai/v2/requests/status/{request_id} — or supply X-Webhook-URL on submit and skip polling.
  3. When status is COMPLETED, download output.media_url.
  4. Keep no more than 3 dubbing jobs in flight at once.

Pricing

Billed at $0.50 per minute of source media, rounded up to the next whole minute. Billing is measured on the source length, not on the length of the output, and a 15-second clip therefore bills one full minute.

Source mediaBillable minutesCost
15 seconds1$0.50
60 seconds1$0.50
90 seconds2$1.00
600 seconds (the maximum accepted)10$5.00

Media longer than 600 seconds is rejected before anything is sent to ElevenLabs — the job ends as ERROR on the first status poll and nothing is charged — so the most expensive possible single request is $5.00.

ElevenLabs Dubbing API Pricing

Your request will cost $0.50 per minute of source media.
a 90-second clip bills 2 minutes, $1.00
equivalent to $0.50 per minute, rounded up to the next full minute
8. ElevenLabs Multilingual v2

ElevenLabs Multilingual v2 API Documentation

ElevenLabs' quality-first model. The most natural delivery of the ElevenLabs line, at the cost of higher latency. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED, then download the audio.

POST https://gateway.pixazo.ai/elevenlabs-multilingual-v2/v1/text-to-speech

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Text to Speech - ElevenLabs Multilingual v2

Request Code

POST https://gateway.pixazo.ai/elevenlabs-multilingual-v2/v1/text-to-speech
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "text": "Hello from Pixazo. This is a text to speech demo.",
  "voice_id": "JBFqnCBsd6RMkjVDRZzb"
}
import requests

url = "https://gateway.pixazo.ai/elevenlabs-multilingual-v2/v1/text-to-speech"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "text": "Hello from Pixazo. This is a text to speech demo.",
  "voice_id": "JBFqnCBsd6RMkjVDRZzb"
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/elevenlabs-multilingual-v2/v1/text-to-speech", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "text": "Hello from Pixazo. This is a text to speech demo.",
  "voice_id": "JBFqnCBsd6RMkjVDRZzb"
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/elevenlabs-multilingual-v2/v1/text-to-speech' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"text": "Hello from Pixazo. This is a text to speech demo.", "voice_id": "JBFqnCBsd6RMkjVDRZzb"}'

Output

{
  "request_id": "elevenlabs-multilingual-v2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-multilingual-v2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Example: enable Webhook

curl -X POST 'https://gateway.pixazo.ai/elevenlabs-multilingual-v2/v1/text-to-speech' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  -H 'X-Webhook-URL: https://your-server.com/webhook' \
  --data-raw '{"text": "Hello from Pixazo. This is a text to speech demo.", "voice_id": "JBFqnCBsd6RMkjVDRZzb"}'

Callback Payload (success)

{
  "request_id": "elevenlabs-multilingual-v2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-multilingual-v2",
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-08-01T09:14:16.102Z",
  "completed_at": "2026-08-01T09:14:22.870Z"
}

Failure callback shape

{
  "request_id": "elevenlabs-multilingual-v2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "elevenlabs-multilingual-v2",
  "error": "Description of the failure"
}

Delivery semantics

  • terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
  • sync mode: a Webhook callback on each status change.
  • Callbacks are idempotent on request_id — de-duplicate on it.
  • Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / rangeDescription
textYesstring—1 – 10,000 charactersThe text that will be converted into speech. 10,000 characters is roughly 10 minutes of audio.
voice_idYesstring—an ElevenLabs voice idThe ElevenLabs voice ID used for the generation, e.g. JBFqnCBsd6RMkjVDRZzb. Browse voices in the ElevenLabs voice library.
output_formatNostringmp3_44100_128mp3_22050_32, mp3_24000_48, mp3_44100_32, mp3_44100_64, mp3_44100_96, mp3_44100_128, mp3_44100_192, opus_48000_32, opus_48000_64, opus_48000_96, opus_48000_128, opus_48000_192Codec, sample rate and bitrate in one value, formatted as codec_samplerate_bitrate. MP3 values return .mp3, Opus values return .ogg. Only the twelve values listed are accepted — the PCM, WAV, u-law and A-law formats of the ElevenLabs REST API are not available for this model.
language_codeNostring—ISO 639-1, e.g. enNot supported by this model. ElevenLabs states the parameter "is not supported for multilingual_v2 models" and that a language code the model does not support is ignored, so Multilingual v2 always infers the language from the text. The field is accepted for compatibility but changes nothing here.
voice_settingsNoobject—stability 0 – 1, similarity_boost 0 – 1, style 0 – 1, use_speaker_boost boolean, speed 0.7 – 1.2Per-request overrides of the voice's stored settings; anything you omit keeps the voice's own value. stability trades emotional range for consistency, similarity_boost controls how closely the output adheres to the original voice, style exaggerates the speaker's style, use_speaker_boost boosts similarity to the original speaker, and speed scales delivery speed around 1.0. No other keys are accepted.
seedNointeger—0 – 4294967295Best-effort determinism: repeated requests with the same seed and the same parameters should return the same result. ElevenLabs states that determinism is not guaranteed.
previous_textNostring—up to 10,000 charactersThe text that came before this request's text. Improves continuity of delivery when you concatenate several generations.
next_textNostring—up to 10,000 charactersThe text that comes after this request's text. Improves continuity of delivery when you concatenate several generations.
apply_text_normalizationNostringautoauto, on, offControls text normalization, for example spelling out numbers and dates. auto lets ElevenLabs decide, on always normalizes, off skips it.

Voices

29 languages. Use an ElevenLabs voice id in voice_id.

Example Request

{
  "text": "Hello from Pixazo. This is a text to speech demo.",
  "voice_id": "JBFqnCBsd6RMkjVDRZzb"
}

Example Response

{
  "request_id": "elevenlabs-multilingual-v2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-multilingual-v2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Bad request — a missing or out-of-range parameter. The message names the field.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance.
429Too many requests.
500Internal server error.

Retrieving Results

Poll the status endpoint with the request_id from the submit response until status is COMPLETED (or ERROR), then download output.media_url.

curl 'https://gateway.pixazo.ai/v2/requests/status/elevenlabs-multilingual-v2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response

{
  "request_id": "elevenlabs-multilingual-v2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-multilingual-v2",
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-08-01T09:14:16.102Z",
  "completed_at": "2026-08-01T09:14:22.870Z"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED or ERROR.
model_idstringThe model that handled the request.
output.media_urlarrayURL of the generated audio file.
output.media_typestringMIME type of the audio.
created_atstringRequest creation timestamp.
completed_atstringCompletion timestamp.
errorstringError message when status is ERROR.

Status Values & Flow

QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure).

How billing is measured

Billing is measured on the input text you submit, in blocks of 1,000 characters rounded up to the next whole block — not on the length of the audio produced. The current rate is shown in the pricing panel on this page.

Input textBilled blocks
A short sentence (~50 characters)1
A paragraph (~800 characters)1
A 3,000-character article3
10,000 characters (the maximum)10

Failed requests are not billed.

ElevenLabs Multilingual v2 API Pricing

Your request will cost $0.10 per 1,000 characters of input text.
the highest-fidelity ElevenLabs voice, $0.10 per 1,000 characters
equivalent to $100 per 1M characters
9. ElevenLabs Voice Clone

ElevenLabs Voice Clone API Documentation

Create an ElevenLabs voice from your own recordings of one speaker, and get back a voice_id to use with ElevenLabs Text to Dialogue. Each request creates one voice. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED.

POST https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/voice-clone

Each API key can hold up to 3 voices at a time. See them with List Voices (POST https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/list) and remove one with Delete Voice (POST https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/delete).

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Voice Clone - ElevenLabs

Request Code

POST https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/voice-clone
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "name": "Clara",
  "audio_urls": [
    "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3"
  ],
  "consent": true,
  "description": "Warm, friendly voice for a podcast host"
}
import requests

url = "https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/voice-clone"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "name": "Clara",
  "audio_urls": [
    "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3"
  ],
  "consent": true,
  "description": "Warm, friendly voice for a podcast host"
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/voice-clone", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "name": "Clara",
  "audio_urls": [
    "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3"
  ],
  "consent": true,
  "description": "Warm, friendly voice for a podcast host"
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/voice-clone' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"name": "Clara", "audio_urls": ["https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3"], "consent": true, "description": "Warm, friendly voice for a podcast host"}'

Output

{
  "request_id": "elevenlabs-voice-clone_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-voice-clone_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Example: enable Webhook

curl -X POST 'https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/voice-clone' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  -H 'X-Webhook-URL: https://your-server.com/webhook' \
  --data-raw '{"name": "Clara", "audio_urls": ["https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3"], "consent": true, "description": "Warm, friendly voice for a podcast host"}'

Callback Payload (success)

{
  "request_id": "elevenlabs-voice-clone_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-voice-clone",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/elevenlabs-voice-clone_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.json"
    ],
    "media_type": "application/json",
    "voice_id": "AbCdEfGhIjKlMnOpQrSt",
    "state": "active",
    "requires_verification": false
  },
  "created_at": "2026-10-30T16:01:25.330Z",
  "updated_at": "2026-10-30 16:02:20",
  "completed_at": "2026-10-30 16:02:19"
}

Failure callback shape

{
  "request_id": "elevenlabs-voice-clone_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "elevenlabs-voice-clone",
  "error": "Description of the failure",
  "output": null,
  "created_at": "2026-10-30T16:01:25.330Z",
  "updated_at": "2026-10-30 16:02:20",
  "completed_at": "2026-10-30 16:02:19"
}

Delivery semantics

  • terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
  • sync mode: a Webhook callback on each status change.
  • Callbacks are idempotent on request_id — de-duplicate on it.
  • Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / rangeDescription
nameYesstring—1 – 100 charactersA name for the new voice, for your own reference: List Voices shows it. It does not need to be unique.
audio_urlsYesarray of strings—1 to 25 public http(s) URLs, up to 32 MB in totalRecordings of one speaker, in any common audio format. What counts is the total length: about 1 to 2 minutes of clear speech without reverb or background noise works best, and more than 3 minutes adds little.
consentYesboolean—trueConfirms that you have the right to clone this voice and the speaker's permission to do so. Any other value is rejected.
descriptionNostring—up to 500 charactersA short description of the voice, for your own reference: List Voices shows it.
remove_background_noiseNoboolean—true, falseClean the recordings with ElevenLabs audio isolation before cloning. Only use it on noisy recordings: on clean ones it can make the clone worse.

How usage is measured

Billed per voice created: every successful request creates one voice. The rate is in the pricing panel on this page.

Parameters not supported

Worth reading if you are porting existing ElevenLabs code — some parameters are rejected outright, some fail once the request is processed, and others are accepted and then ignored.

Rejected with 400

Checked when you submit: the request is rejected before it is queued.

ParameterWhyUse instead
model_id, modelVoice Clone always uses ElevenLabs Instant Voice Cloning; there is nothing to choose.—
audio_urlThe recordings are a list, even for one file.audio_urls with one or more URLs
voice_idThis endpoint creates a new voice and returns its voice_id.—
n, batch_size, count, num_images, number_of_imagesThis API creates one voice per request.One request per voice

Accepted, then the request fails

These values pass the submit check, so the submit returns 202, but they are validated while the request is processed: the request fails, and the status endpoint (or Webhook) reports status: "ERROR" with an error message that names the problem.

ParameterWhen the request fails
audio_urlsA recording that cannot be downloaded; recordings that do not all download within 5 minutes; more than 32 MB of recordings in total; a file that cannot be used as a voice sample. The error contains Input audio:.
CapacityThe voice library is full, or the monthly voice allowance is used up; the error says so. Contact support.

Accepted but ignored

These are silently dropped — the request still returns 202, but the value has no effect on the generated voice file. Only the parameters listed in the table above are forwarded.

labels, files, and any parameter not listed above

The Voice File & Using It

The voice file

When status is COMPLETED, output carries the new voice's voice_id, state and requires_verification (see Retrieving Results below), and output.media_url is a small JSON file with the same fields:

{
  "voice_id": "YOUR_VOICE_ID",
  "state": "active",
  "requires_verification": false
}
  • voice_id is the new voice. Ids are case-sensitive: always send it exactly as returned. It works only with the API key that created it.
  • state is active: the voice is ready to use.
  • requires_verification is ElevenLabs' own flag for whether the voice needs verification before use.
  • The name and description you send stay with Pixazo: List Voices shows them, and they are not part of the result.

Using the voice

Pass the voice_id as the voice of a speaker in ElevenLabs Text to Dialogue. A cloned voice and the preset voices can be mixed in one script:

{
  "text": "Clara: Kumusta ka, Paolo?\nPaolo: Mabuti naman, salamat!",
  "voices": {
    "Clara": "YOUR_VOICE_ID",
    "Paolo": "Roger"
  },
  "language_code": "fil"
}

Voice limits

  • Each API key can hold up to 3 voices at a time. A voice counts from its create request until its delete is COMPLETED (a create that ends in ERROR stops counting at once); remove one with Delete Voice to make room.
  • Each API key can create at most 10 voices in any 31 days. Every accepted create request counts, including one that ended in ERROR and voices deleted since.
  • A create is refused at submit, before it is queued, when either limit is reached, or when voice registration is full for the moment (see Error Responses below).

Recording tips

  • One speaker per voice: every recording in audio_urls must be the same person.
  • Aim for about 1 to 2 minutes in total, recorded close to the microphone in a quiet room. How the audio was recorded matters more than how long it is; the number of files does not matter.
  • Keep the tone and delivery consistent across the recordings: the clone copies what it hears.
  • Only clone a voice you have the right to use, with the speaker's permission (consent).

Example Request

{
  "name": "Clara",
  "audio_urls": [
    "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3"
  ],
  "consent": true,
  "description": "Warm, friendly voice for a podcast host"
}

Example Response

{
  "request_id": "elevenlabs-voice-clone_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-voice-clone_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Bad request — the body failed the submit check and was not queued: name missing, not a string or over 100 characters; audio_urls missing, empty, not an array, longer than 25 entries or holding an entry that is not an http(s) URL; consent missing or not true; description not a string or over 500 characters; remove_background_noise not a boolean; or any of model_id, model, audio_url, voice_id, n, batch_size, count, num_images, number_of_images (see “Parameters not supported” above); or this API key is at one of its voice limits (see “Voice limits” above).
401Unauthorized — missing or invalid subscription key.
402Insufficient balance.
403Forbidden.
429Too many requests.
500Internal server error.
503Voice registration is full or paused, or the request could not be checked right now; retry later.

Problems that can only be detected while the request is processed (“Accepted, then the request fails” above) are not a 400: they are reported through the status endpoint or Webhook with status: "ERROR".

Error Responses

A 400 names every rejected parameter in violations:

{
  "error": "Invalid request parameters",
  "message": "'consent' must be one of: true (got false)",
  "violations": [
    "'consent' must be one of: true (got false)"
  ]
}

A request that fails after it was queued is reported via the status endpoint (or Webhook) with status: "ERROR" and an error message — for example when a recording in audio_urls cannot be downloaded.

The voice limits answer with these messages:

HTTPMessage
400This API key already has 3 voices. Delete one with POST https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/delete, then retry. Nothing was charged.
400This API key has created 10 voices in the last 31 days, which is the limit. Nothing was charged.
503Voice registration is full right now. Nothing was charged.
503Voice creation is paused. List and delete still work. Nothing was charged.

A request that fails because of a recording has an error that contains Input audio:, for example Generation failed: Input audio: ....

Retrieving Results

Poll the status endpoint with the request_id from the submit response, using the same API key, until status is COMPLETED or ERROR; output.voice_id is then the new voice. Only the API key that created a voice can read the status of its requests: another key gets 404.

curl 'https://gateway.pixazo.ai/v2/requests/status/elevenlabs-voice-clone_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response

Based on a real Voice Clone request; the request id is masked and the voice id is made up.

{
  "request_id": "elevenlabs-voice-clone_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-voice-clone",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/elevenlabs-voice-clone_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.json"
    ],
    "media_type": "application/json",
    "voice_id": "AbCdEfGhIjKlMnOpQrSt",
    "state": "active",
    "requires_verification": false
  },
  "created_at": "2026-10-30T16:01:25.330Z",
  "updated_at": "2026-10-30 16:02:20",
  "completed_at": "2026-10-30 16:02:19"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED or ERROR.
model_idstringThe model that handled the request.
errorstring or nullError message when status is ERROR; otherwise null.
output.media_urlarray of stringsURL of the generated voice file (one file per request). Download it and keep your own copy.
output.media_typestringVoice file MIME type (application/json for json).
output.voice_idstringThe new voice, case-sensitive.
output.statestringactive: the voice is ready to use.
output.requires_verificationbooleanElevenLabs' own flag for whether the voice needs verification before use.
created_atstringRequest creation timestamp.
updated_atstringLast status change timestamp.
completed_atstringCompletion timestamp.
polling_urlstringStatus URL for this request (in the submit response).

Status Values & Flow

QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure). Treat any status other than QUEUED, PROCESSING or COMPLETED as a failure.

  • Save the request_id from the 202 response.
  • Poll the status endpoint every few seconds, or use a Webhook instead.
  • When status is COMPLETED, download the voice file from output.media_url.

ElevenLabs Voice Clone API Pricing

Your request will cost $0.10 per voice created.
Each successful request creates one voice and is billed once, however many recordings it uses.
List Voices

ElevenLabs Voice Clone API Documentation

List the voices created with your API key through ElevenLabs Voice Clone: voices still being created, voices ready to use and voices being deleted. Synchronous: the answer comes back at once with HTTP 200. The request body must be {}.

POST https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/list

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

List Voices - ElevenLabs Voice Clone

Request Code

POST https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/list
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{}
import requests

url = "https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/list"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/list", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/list' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{}'

Output

{
  "voices": [
    {
      "voice_id": "AbCdEfGhIjKlMnOpQrSt",
      "name": "Studio narrator",
      "description": "Calm, low voice for audiobooks",
      "state": "active",
      "requires_verification": false,
      "created_at": "2026-11-02T10:02:11.481Z",
      "request_id": "elevenlabs-voice-clone_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    },
    {
      "voice_id": null,
      "name": "Podcast host",
      "description": null,
      "state": "pending",
      "requires_verification": null,
      "created_at": "2026-11-02T10:05:40.007Z",
      "request_id": "elevenlabs-voice-clone_019dyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"
    }
  ],
  "count": 2,
  "limit": 3
}

Request Parameters

No parameters. Send an empty JSON object {} as the body: a POST with no body at all is refused.

The answer lists the voices of this API key only, newest first, with count and the per-key limit (up to 3 voices at a time). Every listed voice counts toward that limit: remove one with Delete Voice to make room for a new one. The answer is private to your API key and is never cached (Cache-Control: private, no-store).

Response Fields

FieldTypeDescription
voicesarrayThe voices of this API key, newest first.
voices[].voice_idstring or nullThe voice to use in Text to Dialogue. Ids are case-sensitive: send it exactly as listed. null while the voice is being created.
voices[].namestringThe name you sent when you created the voice.
voices[].descriptionstring or nullThe description you sent, or null.
voices[].statestringpending, active or deleting (below).
voices[].requires_verificationboolean or nullElevenLabs' own flag for whether the voice needs verification before use; null while the voice is being created.
voices[].created_atstringWhen the create request was accepted (ISO 8601, UTC).
voices[].request_idstringThe request_id of the voice's create request.
countintegerHow many voices are listed.
limitintegerThe most voices this API key can hold at a time.

Voice states

StateMeaning
pendingThe create request is still running; voice_id is null until it is COMPLETED. A create that ends in ERROR is not listed.
activeReady: use the voice_id in ElevenLabs Text to Dialogue with this API key.
deletingA delete request for this voice was accepted, and Text to Dialogue already refuses the voice. It leaves the list when the delete is COMPLETED. If that delete ends in ERROR, the voice stays listed as deleting: send the delete again.

Response Handling

HTTPMeaning
200The list (above).
400The body is not a JSON object, or it holds a field this API does not accept.
401Missing or invalid subscription key.
500The request had no body; send {}.
503The voices could not be read right now: retry after the number of seconds in the Retry-After header.

ElevenLabs Voice Clone API Pricing

Your request is Free
Delete Voice

ElevenLabs Voice Clone API Documentation

Delete a voice created with your API key through ElevenLabs Voice Clone. The voice is deleted from our provider account and can no longer be used: Text to Dialogue refuses its voice_id as soon as the delete is accepted. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED.

POST https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/delete

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Delete Voice - ElevenLabs Voice Clone

Request Code

POST https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/delete
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "voice_id": "AbCdEfGhIjKlMnOpQrSt"
}
import requests

url = "https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/delete"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "voice_id": "AbCdEfGhIjKlMnOpQrSt"
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/delete", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "voice_id": "AbCdEfGhIjKlMnOpQrSt"
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/delete' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"voice_id": "AbCdEfGhIjKlMnOpQrSt"}'

Output

{
  "request_id": "elevenlabs-voice-clone_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-voice-clone_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Example: enable Webhook

curl -X POST 'https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/delete' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  -H 'X-Webhook-URL: https://your-server.com/webhook' \
  --data-raw '{"voice_id": "AbCdEfGhIjKlMnOpQrSt"}'

The callback carries the same body as the completed response below.

Request Parameters

ParameterRequiredTypeDescription
voice_idYesstringThe voice_id of a voice created with this API key, exactly as Voice Clone returned it: 16 to 40 letters and digits. Ids are case-sensitive.

What a delete does

  • The voice is deleted from our provider account and can no longer be used. It cannot be restored.
  • Text to Dialogue refuses the voice_id from the moment the delete is accepted, also while the delete request is still running.
  • The voice keeps counting toward this API key's voice limit until the delete is COMPLETED; until then List Voices shows it as deleting.
  • An unknown voice_id, a voice of another API key and a voice that is already deleted all get the same 404 answer.
  • A delete sent while an earlier delete of the same voice is still running gets 202 with that earlier delete's request_id, and nothing new is queued.
  • If a delete ends in ERROR, the voice stays blocked: Text to Dialogue keeps refusing it and List Voices shows it as deleting. Send the delete again later.

Retrieving Results

Poll the status endpoint with the request_id from the submit response, using the same API key, until status is COMPLETED or ERROR. Only the API key that sent the delete can read its status: another key gets 404.

curl 'https://gateway.pixazo.ai/v2/requests/status/elevenlabs-voice-clone_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response

{
  "request_id": "elevenlabs-voice-clone_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-voice-clone",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/elevenlabs-voice-clone_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.json"
    ],
    "media_type": "application/json",
    "voice_id": "AbCdEfGhIjKlMnOpQrSt",
    "state": "deleted"
  },
  "created_at": "2026-11-02T10:15:04.112Z",
  "updated_at": "2026-11-02 10:15:31",
  "completed_at": "2026-11-02 10:15:31"
}

output.voice_id is the voice that was deleted, and output.state is deleted. The voice no longer counts toward this API key's voice limit.

Error Responses

HTTP / statusMeaning
202Accepted: the delete is queued, or an earlier delete of the same voice is still running (its request_id is returned).
400voice_id is missing or is not 16 to 40 letters and digits, the body is not a JSON object, or it holds a field this API does not accept.
401Missing or invalid subscription key.
404No voice with this voice_id is registered with this API key (below).
503The request could not be checked right now: retry after the number of seconds in the Retry-After header.
ERROR (after queueing)The voice could not be deleted yet. It stays blocked: send the delete again later.
{
  "error": "Voice not found",
  "message": "voice_id AbCdEfGhIjKlMnOpQrSt does not match a voice registered with this API key."
}

Status Values & Flow

StatusMeaning
QUEUEDAccepted, waiting to start.
PROCESSINGRunning.
COMPLETEDDone; read output.
ERRORFailed; read error, then send the delete again later.

QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure).

ElevenLabs Voice Clone API Pricing

Your request is Free
10. ElevenLabs Text to Dialogue

ElevenLabs Text to Dialogue API Documentation

Turn a script into one multi-speaker conversation: write each turn as a line that starts with the speaker's name, give every speaker a voice, and get one audio file back. Use ElevenLabs preset voices or voices made with ElevenLabs Voice Clone, in 70+ languages including Filipino. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED.

POST https://gateway.pixazo.ai/elevenlabs-text-to-dialogue/v1/text-to-dialogue

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Text to Dialogue - ElevenLabs Eleven v3

Request Code

POST https://gateway.pixazo.ai/elevenlabs-text-to-dialogue/v1/text-to-dialogue
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "text": "Clara: Kumusta ka, Paolo? Matagal na tayong hindi nagkita!\nPaolo: [laughs] Oo nga, Clara. Mabuti naman ako, salamat.",
  "voices": {
    "Clara": "Sarah",
    "Paolo": "Roger"
  },
  "language_code": "fil"
}
import requests

url = "https://gateway.pixazo.ai/elevenlabs-text-to-dialogue/v1/text-to-dialogue"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "text": "Clara: Kumusta ka, Paolo? Matagal na tayong hindi nagkita!\nPaolo: [laughs] Oo nga, Clara. Mabuti naman ako, salamat.",
  "voices": {
    "Clara": "Sarah",
    "Paolo": "Roger"
  },
  "language_code": "fil"
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/elevenlabs-text-to-dialogue/v1/text-to-dialogue", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "text": "Clara: Kumusta ka, Paolo? Matagal na tayong hindi nagkita!\nPaolo: [laughs] Oo nga, Clara. Mabuti naman ako, salamat.",
  "voices": {
    "Clara": "Sarah",
    "Paolo": "Roger"
  },
  "language_code": "fil"
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/elevenlabs-text-to-dialogue/v1/text-to-dialogue' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"text": "Clara: Kumusta ka, Paolo? Matagal na tayong hindi nagkita!\nPaolo: [laughs] Oo nga, Clara. Mabuti naman ako, salamat.", "voices": {"Clara": "Sarah", "Paolo": "Roger"}, "language_code": "fil"}'

Output

{
  "request_id": "elevenlabs-text-to-dialogue_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-text-to-dialogue_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Example: enable Webhook

curl -X POST 'https://gateway.pixazo.ai/elevenlabs-text-to-dialogue/v1/text-to-dialogue' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  -H 'X-Webhook-URL: https://your-server.com/webhook' \
  --data-raw '{"text": "Clara: Kumusta ka, Paolo? Matagal na tayong hindi nagkita!\nPaolo: [laughs] Oo nga, Clara. Mabuti naman ako, salamat.", "voices": {"Clara": "Sarah", "Paolo": "Roger"}, "language_code": "fil"}'

Callback Payload (success)

{
  "request_id": "elevenlabs-text-to-dialogue_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-text-to-dialogue",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/elevenlabs-text-to-dialogue_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-10-30T08:03:51.650Z",
  "updated_at": "2026-10-30 08:04:10",
  "completed_at": "2026-10-30 08:04:09"
}

Failure callback shape

{
  "request_id": "elevenlabs-text-to-dialogue_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "elevenlabs-text-to-dialogue",
  "error": "Description of the failure",
  "output": null,
  "created_at": "2026-10-30T08:03:51.650Z",
  "updated_at": "2026-10-30 08:04:10",
  "completed_at": "2026-10-30 08:04:09"
}

Delivery semantics

  • terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
  • sync mode: a Webhook callback on each status change.
  • Callbacks are idempotent on request_id — de-duplicate on it.
  • Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / rangeDescription
textYesstring—1 – 5000 charactersThe script: one turn per line, each line written as Speaker: what they say. Blank lines are skipped, and the first colon on a line ends the speaker's name. Audio tags such as [laughs] or [whispering] go inline. At most 200 lines, 10 speakers and 2,000 spoken characters per request (see Script, Voices & Languages below).
voicesYesobject—one entry per speaker, up to 10 usedGives every speaker in text a voice: the key is the speaker's name as written in the script (matched without regard to case), the value is an ElevenLabs preset voice by name (for example Sarah) or a voice_id returned by ElevenLabs Voice Clone. A cloned voice works here only with the API key that created it. Entries the script does not use are ignored.
language_codeNostring—2 or 3 letters, such as en or filForces the language of the dialogue. Use the ISO 639-1 code, or the ISO 639-3 code for a language without one (Filipino is fil). Omit it to let the model detect the language; a code the model does not support is ignored.
seedNointeger—0 to 4294967295Best-effort repeatability: the same seed and parameters should give a very similar result, but identical audio is not guaranteed.
output_formatNostringmp3_44100_128mp3_22050_32, mp3_24000_48, mp3_44100_32, mp3_44100_64, mp3_44100_96, mp3_44100_128MP3 sample rate and bitrate, written as mp3_<sample rate>_<kbps>. Every format returns audio/mpeg.

How text is measured

Billed on the characters of text, the whole script including speaker names, colons and line breaks, rounded up to whole 1,000-character blocks (minimum one). The rate is in the pricing panel on this page.

Every character of text counts, not only the spoken words: Clara: at the start of a line adds 7 characters, and each line break adds 1. Audio tags such as [laughs] count too.

ScriptCharacters of textBilled blocks
Two short lines (the example request)1161
A scene of about 30 lines1,8002
Longest single request5,0005

Parameters not supported

Worth reading if you are porting existing ElevenLabs code — some parameters are rejected outright, some fail once the request is processed, and others are accepted and then ignored.

Rejected with 400

Checked when you submit: the request is rejected before it is queued.

ParameterWhyUse instead
model_id, modelThe model is fixed for this endpoint (Eleven v3) and is not caller-selectable.—
inputsThis API takes the whole script as one text field instead of a list of turns.text with one Speaker: line per line, plus voices
promptThe script field is text.text
output_format mp3_44100_192, PCM, Opus or other codecsNot offered; the listed MP3 formats play everywhere.One of the six mp3_* formats
n, batch_size, count, num_images, number_of_imagesThis API returns one dialogue audio file per request.One request per dialogue

Accepted, then the request fails

These values pass the submit check, so the submit returns 202, but they are validated while the request is processed: the request fails, and the status endpoint (or Webhook) reports status: "ERROR" with an error message that names the problem.

ParameterWhen the request fails
textA line that does not start with Speaker:; a speaker that is not in voices; a line with nothing after the colon; more than 200 lines, 10 speakers or 2,000 spoken characters.
voicesA value that is neither an ElevenLabs preset voice nor a voice made with ElevenLabs Voice Clone; a speaker name that is empty, over 50 characters or contains a colon; the same speaker twice.
language_codeNot 2 or 3 letters.

Accepted but ignored

These are silently dropped — the request still returns 202, but the value has no effect on the generated audio. Only the parameters listed in the table above are forwarded.

settings, previous_text, next_text, previous_request_ids, next_request_ids, apply_text_normalization, pronunciation_dictionary_locators, audio_effects, enable_logging, and any parameter not listed above

Script, Voices & Languages

Writing the script

Put the whole conversation in text, one turn per line. Each line starts with the speaker's name and a colon; everything after the first colon is spoken, so Clara: Oras na: 3:00 says Oras na: 3:00. Blank lines are skipped, and a speaker can talk as many times as the scene needs.

  • Audio tags in square brackets set the delivery of the turn they are in: emotions such as [elated] or [sad], sounds such as [laughs] or [sigh], and ways of speaking such as [whispering]. Tags are not spoken.
  • One request takes at most 200 lines, 10 different speakers and 2,000 spoken characters (the words after the colons). Longer conversations sound best split into several requests, joined in your application.
  • The result is one audio file with the turns in script order.

Choosing voices

Every speaker the script uses needs an entry in voices. A value can be:

ValueExampleWhere it comes from
An ElevenLabs preset voice name"Sarah", "Roger", "Laura", "George"The ElevenLabs preset voice library; the short name before any description is enough
A cloned voicethe voice_id stringReturned by ElevenLabs Voice Clone when you clone a voice from your own recordings, with the same API key; List Voices shows your voices

A value that is neither fails the request, and the error lists the preset voices you can use. Two speakers may share one voice.

Cloned voices and API keys. A cloned voice works here only with the API key that created it. A cloned voice of another API key, or one you deleted, is refused at submit with 400, before the request is queued: the message names the speaker and says the voice “cannot be used with this API key”, or, for a voice you deleted, that it “was deleted”. Create voices with ElevenLabs Voice Clone (POST https://gateway.pixazo.ai/elevenlabs-voice-clone/v1/voice-clone), see them with List Voices and remove one with Delete Voice.

A longer scene

Four speakers with audio tags, in English:

{
  "text": "Narrator: [cautiously] Late at night, the shop was finally quiet.\nClara: [whispering] Paolo, did you hear that?\nPaolo: [indecisive] Hear what?\nBianca: [cheerfully] Surprise! Happy birthday, Clara!",
  "voices": {
    "Narrator": "George",
    "Clara": "Sarah",
    "Paolo": "Roger",
    "Bianca": "Laura"
  },
  "language_code": "en"
}

Languages

Eleven v3 speaks 70+ languages, and a script can be written in any of them. Set language_code to force one; Filipino is fil, Spanish es, Hindi hi.

Example Request

{
  "text": "Clara: Kumusta ka, Paolo? Matagal na tayong hindi nagkita!\nPaolo: [laughs] Oo nga, Clara. Mabuti naman ako, salamat.",
  "voices": {
    "Clara": "Sarah",
    "Paolo": "Roger"
  },
  "language_code": "fil"
}

Example Response

{
  "request_id": "elevenlabs-text-to-dialogue_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-text-to-dialogue_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Bad request — the body failed the submit check and was not queued: text missing, not a string or over 5000 characters; voices missing or not an object; language_code not a string or over 3 characters; seed not an integer from 0 to 4294967295; an output_format outside its allowed values; or any of model_id, model, inputs, prompt, n, batch_size, count, num_images, number_of_images (see “Parameters not supported” above); or a voices value that is a cloned voice of another API key, or one you deleted (see “Choosing voices” above).
401Unauthorized — missing or invalid subscription key.
402Insufficient balance.
403Forbidden.
429Too many requests.
500Internal server error.
503The cloned voices in voices could not be checked right now: retry after the number of seconds in the Retry-After header.

Problems that can only be detected while the request is processed (“Accepted, then the request fails” above) are not a 400: they are reported through the status endpoint or Webhook with status: "ERROR".

Error Responses

A 400 names every rejected parameter in violations:

{
  "error": "Invalid request parameters",
  "message": "'output_format' must be one of: \"mp3_22050_32\", \"mp3_24000_48\", \"mp3_44100_32\", \"mp3_44100_64\", \"mp3_44100_96\", \"mp3_44100_128\" (got \"mp3_44100_192\")",
  "violations": [
    "'output_format' must be one of: \"mp3_22050_32\", \"mp3_24000_48\", \"mp3_44100_32\", \"mp3_44100_64\", \"mp3_44100_96\", \"mp3_44100_128\" (got \"mp3_44100_192\")"
  ]
}

A request that fails after it was queued is reported via the status endpoint (or Webhook) with status: "ERROR" and an error message — for example when a speaker in text has no voice in voices.

Retrieving Results

Poll the status endpoint with the request_id from the submit response until status is COMPLETED or ERROR, then download the audio from output.media_url.

curl 'https://gateway.pixazo.ai/v2/requests/status/elevenlabs-text-to-dialogue_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response

Captured from a real Text to Dialogue request at launch; the request id is masked.

{
  "request_id": "elevenlabs-text-to-dialogue_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-text-to-dialogue",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/elevenlabs-text-to-dialogue_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-10-30T08:03:51.650Z",
  "updated_at": "2026-10-30 08:04:10",
  "completed_at": "2026-10-30 08:04:09"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED or ERROR.
model_idstringThe model that handled the request.
errorstring or nullError message when status is ERROR; otherwise null.
output.media_urlarray of stringsURL of the generated audio (one file per request). Download it and keep your own copy.
output.media_typestringAudio MIME type (audio/mpeg for mp3).
created_atstringRequest creation timestamp.
updated_atstringLast status change timestamp.
completed_atstringCompletion timestamp.
polling_urlstringStatus URL for this request (in the submit response).

Status Values & Flow

QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure). Treat any status other than QUEUED, PROCESSING or COMPLETED as a failure.

  • Save the request_id from the 202 response.
  • Poll the status endpoint every few seconds, or use a Webhook instead.
  • When status is COMPLETED, download the audio from output.media_url.

ElevenLabs Text to Dialogue API Pricing

Your request will cost $0.10 per 1,000 characters of script text.
A two-line exchange of about 120 characters is billed as one 1,000-character block; a 1,800-character scene is billed as two.
11. ElevenLabs Video to Music

ElevenLabs Video to Music API Documentation

Generate an original music track to accompany a video, guided by an optional description and style tags. Uses ElevenLabs Music v2.5. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED. The track is returned as an MP3 file.

POST https://gateway.pixazo.ai/elevenlabs-video-to-music/v1/video-to-music

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Video to Music - ElevenLabs Video to Music

Request Code

POST https://gateway.pixazo.ai/elevenlabs-video-to-music/v1/video-to-music
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "video_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4",
  "description": "Warm, hopeful acoustic score that builds gently",
  "tags": [
    "cinematic",
    "acoustic"
  ]
}
import requests

url = "https://gateway.pixazo.ai/elevenlabs-video-to-music/v1/video-to-music"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "video_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4",
  "description": "Warm, hopeful acoustic score that builds gently",
  "tags": [
    "cinematic",
    "acoustic"
  ]
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/elevenlabs-video-to-music/v1/video-to-music", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "video_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4",
  "description": "Warm, hopeful acoustic score that builds gently",
  "tags": [
    "cinematic",
    "acoustic"
  ]
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/elevenlabs-video-to-music/v1/video-to-music' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"video_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4", "description": "Warm, hopeful acoustic score that builds gently", "tags": ["cinematic", "acoustic"]}'

Output

{
  "request_id": "elevenlabs-video-to-music_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-video-to-music_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Example: enable Webhook

curl -X POST 'https://gateway.pixazo.ai/elevenlabs-video-to-music/v1/video-to-music' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  -H 'X-Webhook-URL: https://your-server.com/webhook' \
  --data-raw '{"video_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4", "description": "Warm, hopeful acoustic score that builds gently", "tags": ["cinematic", "acoustic"]}'

Callback Payload (success)

{
  "request_id": "elevenlabs-video-to-music_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-video-to-music",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-09-15T10:40:08.748Z",
  "completed_at": "2026-09-15 10:40:36"
}

Failure callback shape

{
  "request_id": "elevenlabs-video-to-music_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "elevenlabs-video-to-music",
  "error": "Description of the failure"
}

Delivery semantics

  • terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
  • sync mode: a Webhook callback on each status change.
  • Callbacks are idempotent on request_id — de-duplicate on it.
  • Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / rangeDescription
video_urlYes, unless video_urls is givenstring—Public http(s) URL to an MP4 or MOV videoThe video to write music for. Cannot be combined with video_urls.
video_urlsYes, unless video_url is givenarray of strings—1–10 URLs to MP4 or MOV videosSeveral videos, combined in the order given and scored as one track. Cannot be combined with video_url.
descriptionNostring—Up to 1000 charactersA description of the music you want: mood, genre, instruments, how it develops.
tagsNoarray of strings—Up to 10 tags, each up to 100 charactersStyle tags, for example ["upbeat", "cinematic"].
  • Send exactly one of video_url or video_urls.
  • Videos must be MP4 or MOV, at most 600 seconds (10 minutes) and 32 MB in total, at public http(s) URLs that stay reachable until the request has been processed.
  • This endpoint always uses ElevenLabs Music v2.5. Do not send a model_id in the body — it is rejected.

Input videos

  • The videos are downloaded when the request is processed, so the URLs must stay reachable until then.
  • Several videos in video_urls are combined in the order given, and one track is generated for the combined video.
  • The length of MP4 and MOV videos is read when you submit, so videos over 600 seconds in total are rejected straight away and the hold placed on your balance matches the videos. If the length of a single video_url cannot be read, the hold covers the 10-minute maximum until the track has been measured.

Example Request

{
  "video_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/video/input-17s.mp4",
  "description": "Warm, hopeful acoustic score that builds gently",
  "tags": [
    "cinematic",
    "acoustic"
  ]
}

Example Response

{
  "request_id": "elevenlabs-video-to-music_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-video-to-music_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Invalid parameters — a required field is missing, a value has the wrong type or is out of range, or an input is too long. Rejected before any hold is placed on your balance.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance for the hold this request needs.
429Too many requests.
500Internal server error.

Most parameter problems are caught when you submit and returned as a 400, before any hold is placed on your balance. A few checks run after the request is accepted and are reported through the status endpoint as status: "ERROR", with a message in error saying what to fix. Failed requests are not billed — the hold is released in full.

ConditionHow it surfaces
Missing or invalid subscription keysynchronous 401
Balance too low for the holdsynchronous 402
Neither video_url nor video_urls providedsynchronous 400
video_urls not an array of 1–10 entriessynchronous 400
A video_urls entry that cannot be read as an MP4 or MOV video, including one that cannot be downloadedsynchronous 400
Videos longer than 600 seconds in total, when their length can be read on submitsynchronous 400 (Input too long)
description longer than 1000 characters, or tags not an array of at most 10synchronous 400
Both video_url and video_urlsstatus: "ERROR"
video_url not a public http(s) URL, not downloadable or empty; or videos larger than 32 MB in totalstatus: "ERROR"
A tags entry that is empty or longer than 100 charactersstatus: "ERROR"
A model_id in the bodystatus: "ERROR"

Retrieving Results

Poll the status endpoint with the request_id from the submit response until status is COMPLETED (or FAILED/ERROR), then download the track from output.media_url.

curl 'https://gateway.pixazo.ai/v2/requests/status/elevenlabs-video-to-music_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response

{
  "request_id": "elevenlabs-video-to-music_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-video-to-music",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-09-15T10:40:08.748Z",
  "completed_at": "2026-09-15 10:40:36"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR.
model_idstringThe model that handled the request — elevenlabs-video-to-music for this endpoint.
output.media_urlarray of stringsURL of the track, as an MP3 file.
output.media_typestringaudio/mpeg.
created_atstringRequest creation timestamp.
completed_atstringCompletion timestamp.
errorstringError message when status is FAILED/ERROR.

Status Values & Flow

QUEUED → PROCESSING → COMPLETED (success) or FAILED/ERROR (failure).

How billing is measured

Billing is measured on the length of the generated track, rounded up to the next whole minute — not on how long generation takes. A hold sized from the combined length of the videos is placed when the request is submitted; if the length of a single video_url cannot be read, the hold covers the 10-minute maximum. The hold is reduced to the real cost once the track has been measured, and released in full if the request fails.

The current rate is shown in the pricing panel on this page.

ElevenLabs Video to Music API Pricing

Your request will cost $0.15 per minute of generated music.
billed in 1-minute increments, rounded up
12. ElevenLabs Music
⚠️ This API retires on 30 January 2027
ElevenLabs is removing music_v1, the model behind this API, on 31 January 2027, so this API stops on 30 January 2027. Requests sent from that date will fail and are not charged. Migrate to ElevenLabs Music v2.5 (elevenlabs-music-v2-5) (pixazo.ai/models/elevenlabs).

ElevenLabs Music API Documentation

https://gateway.pixazo.ai/elevenlabs-music/v1/elevenlabs-music-request

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

ElevenLabs Music generate request

Request Code

POST https://gateway.pixazo.ai/elevenlabs-music/v1/elevenlabs-music-request
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_API_KEY

{
  "prompt": "Uplifting indie folk track with acoustic guitar, soft piano, and warm harmonies",
  "music_length_ms": 30000,
  "force_instrumental": false,
  "respect_sections_durations": true,
  "output_format": "mp3_44100_128"
}
import requests

url = "https://gateway.pixazo.ai/elevenlabs-music/v1/elevenlabs-music-request"
headers = {
    "Content-Type": "application/json",
    "Cache-Control": "no-cache",
    "Ocp-Apim-Subscription-Key": "YOUR_API_KEY"
}
data = {
    "prompt": "Uplifting indie folk track with acoustic guitar, soft piano, and warm harmonies",
    "music_length_ms": 30000,
    "force_instrumental": false,
    "respect_sections_durations": true,
    "output_format": "mp3_44100_128"
}

response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = "https://gateway.pixazo.ai/elevenlabs-music/v1/elevenlabs-music-request";
const headers = {
  "Content-Type": "application/json",
  "Cache-Control": "no-cache",
  "Ocp-Apim-Subscription-Key": "YOUR_API_KEY"
};
const data = {
  "prompt": "Uplifting indie folk track with acoustic guitar, soft piano, and warm harmonies",
  "music_length_ms": 30000,
  "force_instrumental": false,
  "respect_sections_durations": true,
  "output_format": "mp3_44100_128"
};

fetch(url, {
  method: "POST",
  headers: headers,
  body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data));
curl -X POST "https://gateway.pixazo.ai/elevenlabs-music/v1/elevenlabs-music-request" \
  -H "Content-Type: application/json" \
  -H "Cache-Control: no-cache" \
  -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
  --data-raw '{
    "prompt": "Uplifting indie folk track with acoustic guitar, soft piano, and warm harmonies",
    "music_length_ms": 30000,
    "force_instrumental": false,
    "respect_sections_durations": true,
    "output_format": "mp3_44100_128"
  }'

Output

{
  "request_id": "elevenlabs-music_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-music_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Add the X-Webhook-URL header to your generate request to receive a POST callback instead of polling.

X-Webhook-URL: https://your-server.com/webhook/callback

Request Parameters - ElevenLabs Music generate request

Parameter Required Type Default Allowed values / range Description
promptYes, unless composition_plan is givenstring—1–4100 charactersA text description of the music to generate: genre, mood, instrumentation, tempo, and whether it has vocals. Example: “Uplifting indie folk track with acoustic guitar, soft piano, and warm harmonies.” Cannot be combined with composition_plan.
music_length_msNointeger— (chosen by the model)3000–600000Length of the track in milliseconds, from 3 seconds to 10 minutes. Only valid with prompt; it is not accepted alongside composition_plan, where the length comes from the section durations. Set this. Without it the length is not known when the request is submitted, so the hold placed on your balance covers the 10-minute maximum until the real length is measured.
force_instrumentalNobooleanfalsetrue, falseWhen true, guarantees the track has no vocals. When false, the prompt decides. Only valid with prompt; it is not accepted alongside composition_plan.
composition_planYes, unless prompt is givenobject—sections: 1–30 entriesA section-by-section plan of the track, as an alternative to prompt. Uses the v1 sections shape — the v2 chunks shape is not accepted. Requires positive_global_styles and negative_global_styles (arrays of up to 50 style strings each) plus sections. Every section requires section_name (1–100 characters), positive_local_styles and negative_local_styles (arrays of up to 50 strings each), duration_ms (3000–120000) and lines (up to 30 lyric lines, each at most 200 characters). The section durations must total between 3000 and 600000 ms, and that total is the length of the track.
respect_sections_durationsNobooleantruetrue, falseControls how strictly the duration_ms of each section in composition_plan is enforced. When false, the model may adjust individual section durations for better quality and latency while preserving the total length of the plan. Only applies with composition_plan; it has no effect on a prompt-only request.
seedNointeger—0–2147483647Random seed used to initialize generation. Repeating a request with the same seed and the same parameters gives more consistent results, but exact reproducibility is not guaranteed and outputs may change across model updates. ElevenLabs accepts a seed only with composition_plan, not alongside prompt.

Example Request

{
  "prompt": "Uplifting indie folk track with acoustic guitar, soft piano, and warm harmonies",
  "music_length_ms": 30000,
  "force_instrumental": false
}

Response

{
  "request_id": "elevenlabs-music_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-music_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

Header Value
Content-Typeapplication/json
Cache-Controlno-cache
Ocp-Apim-Subscription-KeyYOUR_API_KEY

Response Handling

Common status codes.

CodeMeaning
202Accepted — Request queued
Bad Request
401Unauthorized
402Insufficient Balance
403Forbidden
Too Many Requests
500Internal Server Error

Error Responses

Queue system errors and model validation errors.

Queue System Errors

// 402 — Insufficient balance
{
  "error": "Insufficient Balance",
  "message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
  "error": "Model not found",
  "message": "Model 'elevenlabs-music' not found or is disabled"
}

Error via Status/Webhook

{
  "request_id": "elevenlabs-music_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "elevenlabs-music",
  "error": "Description of the error",
  "output": null
}

Retrieving Results

Poll the universal status endpoint to check progress and retrieve results.

Endpoint

GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY

cURL Example

curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
  "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-music_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

Response (Completed)

{
  "request_id": "elevenlabs-music_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-music",
  "error": null,
  "output": {
    "media_url": ["https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/elevenlabs-music_019dxxxx/output.mp3"],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-03-31T10:00:00.000Z",
  "updated_at": "2026-03-31T10:00:15.000Z",
  "completed_at": "2026-03-31T10:00:15.000Z"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR
model_idstringModel that processed the request
errorstring|nullError message if failed
output.media_urlarrayURLs to generated media (R2 CDN)
output.media_typestringMIME type of the output
created_atstringWhen request was created
completed_atstringWhen request completed
polling_urlstringStatus URL (initial response only)

Status Values

StatusDescription
QUEUEDRequest accepted, waiting to be processed
PROCESSINGBeing processed by the model
COMPLETEDDone — output contains the result
FAILEDFailed — check error field
ERRORSystem error — not charged

Status Flow

QUEUED → PROCESSING → COMPLETED
                    → FAILED
                    → ERROR

Typical Workflow

  1. Send a generate request to the API endpoint
  2. Save the request_id from the response
  3. Poll every 5-10 seconds: GET /v2/requests/status/{request_id}
  4. When status is "COMPLETED", download from output.media_url

Tip: Use X-Webhook-URL header to get a callback instead of polling.

ElevenLabs Music API Pricing

Your request will cost $0.30 per minute of generated music.
billed in 1-minute increments, rounded up
13. ElevenLabs Eleven v3 TTS

ElevenLabs Eleven v3 TTS API Documentation

https://gateway.pixazo.ai/elevenlabs-eleven-v3-tts/v1/elevenlabs-eleven-v3-tts-request

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

ElevenLabs Eleven v3 TTS generate request

Request Code

POST https://gateway.pixazo.ai/elevenlabs-eleven-v3-tts/v1/elevenlabs-eleven-v3-tts-request
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_API_KEY

{
  "text": "[excited] Welcome to the future of voice. [whispers] Listen closely. [laughs] This is amazing.",
  "voice": "Rachel",
  "stability": 0.5,
  "timestamps": false,
  "apply_text_normalization": "auto"
}
import requests

url = "https://gateway.pixazo.ai/elevenlabs-eleven-v3-tts/v1/elevenlabs-eleven-v3-tts-request"
headers = {
    "Content-Type": "application/json",
    "Cache-Control": "no-cache",
    "Ocp-Apim-Subscription-Key": "YOUR_API_KEY"
}
data = {
    "text": "[excited] Welcome to the future of voice. [whispers] Listen closely. [laughs] This is amazing.",
    "voice": "Rachel",
    "stability": 0.5,
    "timestamps": false,
    "apply_text_normalization": "auto"
}

response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = "https://gateway.pixazo.ai/elevenlabs-eleven-v3-tts/v1/elevenlabs-eleven-v3-tts-request";
const headers = {
  "Content-Type": "application/json",
  "Cache-Control": "no-cache",
  "Ocp-Apim-Subscription-Key": "YOUR_API_KEY"
};
const data = {
  "text": "[excited] Welcome to the future of voice. [whispers] Listen closely. [laughs] This is amazing.",
  "voice": "Rachel",
  "stability": 0.5,
  "timestamps": false,
  "apply_text_normalization": "auto"
};

fetch(url, {
  method: "POST",
  headers: headers,
  body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data));
curl -X POST "https://gateway.pixazo.ai/elevenlabs-eleven-v3-tts/v1/elevenlabs-eleven-v3-tts-request" \
  -H "Content-Type: application/json" \
  -H "Cache-Control: no-cache" \
  -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
  --data-raw '{
    "text": "[excited] Welcome to the future of voice. [whispers] Listen closely. [laughs] This is amazing.",
    "voice": "Rachel",
    "stability": 0.5,
    "timestamps": false,
    "apply_text_normalization": "auto"
  }'

Output

{
  "request_id": "elevenlabs-eleven-v3-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-eleven-v3-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Add the X-Webhook-URL header to your generate request to receive a POST callback instead of polling.

X-Webhook-URL: https://your-server.com/webhook/callback

Request Parameters - ElevenLabs Eleven v3 TTS generate request

Parameter Required Type Default Allowed values / range Description
textYesstring—1–5000 charactersText to convert to speech (1–5000 characters). Supports inline emotion tags such as [whispers], [laughs], [excited].
voiceNostring"Rachel"ElevenLabs voice nameThe voice to use for speech generation. Named voices include: Rachel (the default), Aria, Roger, Sarah, Laura, Charlie, George, Callum, River, Liam, Charlotte, Alice, Matilda, Will, Jessica, Eric, Chris, Brian, Daniel, Lily and Bill.
stabilityNofloat0.50.0–1.0Voice stability. Lower values give more expressive, varied speech; higher values keep the voice more consistent across generations.
timestampsNobooleanfalse—If true, returns an array of per-word timestamps alongside the audio output.
language_codeNostring—ISO 639-1 code (e.g. "en", "es", "ja")Language code (ISO 639-1) used to enforce a language for the model. If the model does not support the provided language code, it is ignored.
apply_text_normalizationNoenum"auto""auto", "on", "off"Controls text normalization, such as spelling out numbers. "auto" lets the model decide whether to apply it, "on" always applies it and "off" skips it.

Content Item Types & Limits

TypeMaxFormat / SizeDescription
audio1MP3, WAVReference voice.

Example Request

{
  "text": "[excited] Welcome to the future of voice. [whispers] Listen closely. [laughs] This is amazing.",
  "voice": "Rachel",
  "stability": 0.5,
  "timestamps": false,
  "apply_text_normalization": "auto"
}

Response

{
  "request_id": "elevenlabs-eleven-v3-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-eleven-v3-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

Header Value
Content-Typeapplication/json
Cache-Controlno-cache
Ocp-Apim-Subscription-KeyYOUR_API_KEY

Response Handling

Common status codes.

CodeMeaning
202Accepted — Request queued
Bad Request
401Unauthorized
402Insufficient Balance
403Forbidden
Too Many Requests
500Internal Server Error

Error Responses

Queue system errors and model validation errors.

Queue System Errors

// 402 — Insufficient balance
{
  "error": "Insufficient Balance",
  "message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
  "error": "Model not found",
  "message": "Model 'elevenlabs-eleven-v3-tts' not found or is disabled"
}

Error via Status/Webhook

{
  "request_id": "elevenlabs-eleven-v3-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "elevenlabs-eleven-v3-tts",
  "error": "Description of the error",
  "output": null
}

Retrieving Results

Poll the universal status endpoint to check progress and retrieve results.

Endpoint

GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY

cURL Example

curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
  "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-eleven-v3-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

Response (Completed)

{
  "request_id": "elevenlabs-eleven-v3-tts_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-eleven-v3-tts",
  "error": null,
  "output": {
    "media_url": ["https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/elevenlabs-eleven-v3-tts_019dxxxx/output.mp3"],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-03-31T10:00:00.000Z",
  "updated_at": "2026-03-31T10:00:15.000Z",
  "completed_at": "2026-03-31T10:00:15.000Z"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR
model_idstringModel that processed the request
errorstring|nullError message if failed
output.media_urlarrayURLs to generated media (R2 CDN)
output.media_typestringMIME type of the output
created_atstringWhen request was created
completed_atstringWhen request completed
polling_urlstringStatus URL (initial response only)

Status Values

StatusDescription
QUEUEDRequest accepted, waiting to be processed
PROCESSINGBeing processed by the model
COMPLETEDDone — output contains the result
FAILEDFailed — check error field
ERRORSystem error — not charged

Status Flow

QUEUED → PROCESSING → COMPLETED
                    → FAILED
                    → ERROR

Typical Workflow

  1. Send a generate request to the API endpoint
  2. Save the request_id from the response
  3. Poll every 5-10 seconds: GET /v2/requests/status/{request_id}
  4. When status is "COMPLETED", download from output.media_url

Tip: Use X-Webhook-URL header to get a callback instead of polling.

ElevenLabs Eleven v3 TTS API Pricing

Your request will cost $0.10 per 1,000 characters.
about $0.120 for a typical 200-word paragraph
equivalent to $100 per 1M characters
14. ElevenLabs Turbo v2.5

ElevenLabs Turbo v2.5 API Documentation

Low-latency ElevenLabs generation across 32 languages, at half the price of Multilingual v2 — the better default unless you need maximum fidelity. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED, then download the audio.

POST https://gateway.pixazo.ai/elevenlabs-turbo-v2-5/v1/text-to-speech

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Text to Speech - ElevenLabs Turbo v2.5

Request Code

POST https://gateway.pixazo.ai/elevenlabs-turbo-v2-5/v1/text-to-speech
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "text": "Hello from Pixazo. This is a text to speech demo.",
  "voice_id": "JBFqnCBsd6RMkjVDRZzb"
}
import requests

url = "https://gateway.pixazo.ai/elevenlabs-turbo-v2-5/v1/text-to-speech"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "text": "Hello from Pixazo. This is a text to speech demo.",
  "voice_id": "JBFqnCBsd6RMkjVDRZzb"
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/elevenlabs-turbo-v2-5/v1/text-to-speech", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "text": "Hello from Pixazo. This is a text to speech demo.",
  "voice_id": "JBFqnCBsd6RMkjVDRZzb"
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/elevenlabs-turbo-v2-5/v1/text-to-speech' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"text": "Hello from Pixazo. This is a text to speech demo.", "voice_id": "JBFqnCBsd6RMkjVDRZzb"}'

Output

{
  "request_id": "elevenlabs-turbo-v2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-turbo-v2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Example: enable Webhook

curl -X POST 'https://gateway.pixazo.ai/elevenlabs-turbo-v2-5/v1/text-to-speech' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  -H 'X-Webhook-URL: https://your-server.com/webhook' \
  --data-raw '{"text": "Hello from Pixazo. This is a text to speech demo.", "voice_id": "JBFqnCBsd6RMkjVDRZzb"}'

Callback Payload (success)

{
  "request_id": "elevenlabs-turbo-v2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-turbo-v2-5",
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-08-01T09:14:16.102Z",
  "completed_at": "2026-08-01T09:14:22.870Z"
}

Failure callback shape

{
  "request_id": "elevenlabs-turbo-v2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "elevenlabs-turbo-v2-5",
  "error": "Description of the failure"
}

Delivery semantics

  • terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
  • sync mode: a Webhook callback on each status change.
  • Callbacks are idempotent on request_id — de-duplicate on it.
  • Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / rangeDescription
textYesstring—1 – 10,000 charactersThe text to convert into speech. Billed per 1,000 characters of input text.
voice_idYesstring—an ElevenLabs voice ID, up to 128 charactersThe ElevenLabs voice to speak with, e.g. JBFqnCBsd6RMkjVDRZzb. Browse voices in the ElevenLabs voice library.
output_formatNostringmp3_44100_128mp3_22050_32, mp3_24000_48, mp3_44100_32, mp3_44100_64, mp3_44100_96, mp3_44100_128, mp3_44100_192, opus_48000_32, opus_48000_64, opus_48000_96, opus_48000_128, opus_48000_192Codec, sample rate and bitrate in one value, written codec_samplerate_bitrate. Only the twelve values listed are accepted. MP3 formats are returned as .mp3, Opus formats as .ogg.
language_codeNostring—an ISO 639-1 code, e.g. en, es, jaEnforces a language for the model and for text normalization. Omit the field to let the model detect the language from the text — there is no auto-detect sentinel value. A code the model does not support is ignored.
voice_settingsNoobject—stability, similarity_boost, style, use_speaker_boost, speedPer-request overrides for the voice's stored settings. stability 0 – 1 (default 0.5) — lower widens emotional range, higher is more monotone; similarity_boost 0 – 1 (default 0.75) — how closely to adhere to the original voice; style (default 0) exaggerates the speaker's style; use_speaker_boost boolean (default true) raises similarity to the original speaker; speed (default 1.0) — below 1.0 is slower, above 1.0 is faster.
seedNointeger—0 – 4294967295Best-effort deterministic sampling: repeating a request with the same seed and the same parameters should return the same result. Determinism is not guaranteed.
previous_textNostring—up to 10,000 charactersThe text that comes before this request's text. Improves continuity when you stitch several generations together.
next_textNostring—up to 10,000 charactersThe text that comes after this request's text. Improves continuity when you stitch several generations together.
apply_text_normalizationNostringautoauto, on, offControls text normalization, such as spelling out numbers and dates. auto lets the model decide, on always normalizes, off skips it.

Voices

32 languages. Use any voice id from your ElevenLabs voice library.

Example Request

{
  "text": "Hello from Pixazo. This is a text to speech demo.",
  "voice_id": "JBFqnCBsd6RMkjVDRZzb"
}

Example Response

{
  "request_id": "elevenlabs-turbo-v2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-turbo-v2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Bad request — a missing or out-of-range parameter. The message names the field.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance.
429Too many requests.
500Internal server error.

Retrieving Results

Poll the status endpoint with the request_id from the submit response until status is COMPLETED (or ERROR), then download output.media_url.

curl 'https://gateway.pixazo.ai/v2/requests/status/elevenlabs-turbo-v2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response

{
  "request_id": "elevenlabs-turbo-v2-5_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-turbo-v2-5",
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-08-01T09:14:16.102Z",
  "completed_at": "2026-08-01T09:14:22.870Z"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED or ERROR.
model_idstringThe model that handled the request.
output.media_urlarrayURL of the generated audio file.
output.media_typestringMIME type of the audio.
created_atstringRequest creation timestamp.
completed_atstringCompletion timestamp.
errorstringError message when status is ERROR.

Status Values & Flow

QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure).

Pricing

Billed at $0.05 per 1,000 characters of input text, rounded up to the next whole 1,000. You are charged for the text you submit, not the length of the audio produced.

Input textBilled blocksCost
A short sentence (~50 characters)1$0.05
A paragraph (~800 characters)1$0.05
A 3,000-character article3$0.15
10,000 characters10$0.5

Failed requests are not billed.

ElevenLabs Turbo v2.5 API Pricing

Your request will cost $0.05 per 1,000 characters of input text.
half the price of Multilingual v2 at $0.05 per 1,000 characters
equivalent to $50 per 1M characters
15. ElevenLabs Voice Changer

ElevenLabs Voice Changer API Documentation

Convert the voice in a recording into one of ElevenLabs' preset voices, keeping the content and emotional delivery of the original. Works across languages. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED. The converted audio is returned as an MP3 file.

POST https://gateway.pixazo.ai/elevenlabs-voice-changer/v1/speech-to-speech

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Speech to Speech - ElevenLabs Voice Changer

Request Code

POST https://gateway.pixazo.ai/elevenlabs-voice-changer/v1/speech-to-speech
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
  "voice": "Adam"
}
import requests

url = "https://gateway.pixazo.ai/elevenlabs-voice-changer/v1/speech-to-speech"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
  "voice": "Adam"
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/elevenlabs-voice-changer/v1/speech-to-speech", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
  "voice": "Adam"
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/elevenlabs-voice-changer/v1/speech-to-speech' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3", "voice": "Adam"}'

Output

{
  "request_id": "elevenlabs-voice-changer_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-voice-changer_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Example: enable Webhook

curl -X POST 'https://gateway.pixazo.ai/elevenlabs-voice-changer/v1/speech-to-speech' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  -H 'X-Webhook-URL: https://your-server.com/webhook' \
  --data-raw '{"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3", "voice": "Adam"}'

Callback Payload (success)

{
  "request_id": "elevenlabs-voice-changer_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-voice-changer",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-09-15T10:40:08.748Z",
  "completed_at": "2026-09-15 10:40:36"
}

Failure callback shape

{
  "request_id": "elevenlabs-voice-changer_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "elevenlabs-voice-changer",
  "error": "Description of the failure"
}

Delivery semantics

  • terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
  • sync mode: a Webhook callback on each status change.
  • Callbacks are idempotent on request_id — de-duplicate on it.
  • Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / rangeDescription
audio_urlYesstring—Public http(s) URL; up to 5 minutes and 32 MBThe recording whose voice is converted. MP3, WAV or M4A is recommended — see Input recording below.
voiceYesstring—A preset voice name from Voices belowThe voice the recording is converted into, by name — for example Adam. Names are case-sensitive: send them exactly as listed.
remove_background_noiseNobooleanfalsetrue, falseWhen true, removes background noise from the recording before its voice is converted.
seedNointeger—0–4294967295Random seed. Repeating a request with the same seed and parameters gives more consistent results, but exact reproducibility is not guaranteed.
voice_settingsNoobject— (the voice's own settings)See Voice settings belowOverrides the chosen voice's settings for this request only.
  • audio_url must be a public http(s) URL that stays reachable until the request has been processed. The recording is at most 5 minutes long and 32 MB.
  • The model is fixed by the URL. Do not send a model_id or a voice_id — both are rejected. Choose the voice by name with voice.

Voices

Choose one of ElevenLabs' preset voices by sending its name, exactly as written in the Voice column, as voice. Custom, cloned and Voice Library voices are not available.

VoiceCharacter
AdamDominant, Firm
AliceClear, Engaging Educator
BellaProfessional, Bright, Warm
BillWise, Mature, Balanced
BrianDeep, Resonant and Comforting
CallumHusky Trickster
CharlieDeep, Confident, Energetic
ChrisCharming, Down-to-Earth
DanielSteady Broadcaster
EricSmooth, Trustworthy
GeorgeWarm, Captivating Storyteller
HarryFierce Warrior
JessicaPlayful, Bright, Warm
LauraEnthusiast, Quirky Attitude
LiamEnergetic, Social Media Creator
LilyVelvety Actress
MatildaKnowledgable, Professional
RiverRelaxed, Neutral, Informative
RogerLaid-Back, Casual, Resonant
SarahMature, Reassuring, Confident
WillRelaxed Optimist

Voice settings

Every field is optional. Send only the ones you want to change for this request.

FieldTypeRangeDescription
stabilitynumber0–1How stable the voice is between generations. Lower values give a broader emotional range; higher values sound steadier but can become monotonous.
similarity_boostnumber0–1How closely the output adheres to the chosen voice.
stylenumber0–1Style exaggeration: amplifies the voice's speaking style. Any value above 0 can make processing slower.
use_speaker_boostbooleantrue, falseBoosts similarity to the chosen voice, at a slightly higher processing time.
{
  "audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
  "voice": "Adam",
  "voice_settings": {
    "stability": 0.4,
    "similarity_boost": 0.8
  }
}

Input recording

  • The recording is downloaded when the request is processed, so the URL must stay reachable until then.
  • It can be at most 5 minutes long and 32 MB.
  • MP3, WAV or M4A is recommended. The length of these formats is read when you submit, so a recording over 5 minutes is rejected straight away and the hold placed on your balance matches the recording. For other formats the hold covers the 5-minute maximum until the converted audio has been measured.

Example Request

{
  "audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
  "voice": "Adam"
}

Example Response

{
  "request_id": "elevenlabs-voice-changer_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/elevenlabs-voice-changer_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Invalid parameters — a required field is missing, a value has the wrong type or is out of range, or an input is too long. Rejected before any hold is placed on your balance.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance for the hold this request needs.
429Too many requests.
500Internal server error.

Most parameter problems are caught when you submit and returned as a 400, before any hold is placed on your balance. A few checks run after the request is accepted and are reported through the status endpoint as status: "ERROR", with a message in error saying what to fix. Failed requests are not billed — the hold is released in full.

ConditionHow it surfaces
Missing or invalid subscription keysynchronous 401
Balance too low for the holdsynchronous 402
Missing audio_url or voicesynchronous 400
A voice that is not one of the preset voices listed under Voicessynchronous 400
remove_background_noise not a boolean, seed not an integer in 0–4294967295, or voice_settings not an objectsynchronous 400
A recording longer than 5 minutes whose length can be read on submit (MP3, WAV, M4A)synchronous 400 (Input too long)
audio_url not a public http(s) URL, not downloadable, empty, or larger than 32 MBstatus: "ERROR"
A voice_settings field not listed under Voice settings, or a value out of rangestatus: "ERROR"
A recording longer than 5 minutes whose length cannot be read on submitstatus: "ERROR"
A model_id or voice_id in the bodystatus: "ERROR"

Retrieving Results

Poll the status endpoint with the request_id from the submit response until status is COMPLETED (or FAILED/ERROR), then download the converted audio from output.media_url.

curl 'https://gateway.pixazo.ai/v2/requests/status/elevenlabs-voice-changer_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response

{
  "request_id": "elevenlabs-voice-changer_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "elevenlabs-voice-changer",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-09-15T10:40:08.748Z",
  "completed_at": "2026-09-15 10:40:36"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR.
model_idstringThe model that handled the request — elevenlabs-voice-changer for this endpoint.
output.media_urlarray of stringsURL of the converted audio, as an MP3 file.
output.media_typestringaudio/mpeg.
created_atstringRequest creation timestamp.
completed_atstringCompletion timestamp.
errorstringError message when status is FAILED/ERROR.

Status Values & Flow

QUEUED → PROCESSING → COMPLETED (success) or FAILED/ERROR (failure).

How billing is measured

Billing is measured on the length of the converted audio, rounded up to the next whole minute — not on how long processing takes. A hold sized from the length of audio_url is placed when the request is submitted; if that length cannot be read, the hold covers the 5-minute maximum. The hold is reduced to the real cost once the converted audio has been measured, and released in full if the request fails.

The current rate is shown in the pricing panel on this page.

ElevenLabs Voice Changer API Pricing

Your request will cost $0.12 per minute of converted audio.
billed in 1-minute increments, rounded up

⚡ Performance

Live usage measured on Pixazo's gateway, split by model version. Generation time is how long a generation takes end-to-end (lower is better). Success rate is the percent of generations that complete (higher is better).

Show data for the last
Generations
93,400last 30d
~3,113 per day
Success rate
99.0%
of completed generations
Generation time
47.9savg
p95 74.1s
Requests
Oct 10max 9,700Nov 8
ElevenLabs Eleven v4Avg 1,307/day
ElevenLabs Turbo v2.5Avg 967/day
ElevenLabs Sound Effects v2Avg 440/day
ElevenLabs Sound Effects v3Avg 3/day
OtherAvg 397/day
Generation Time
Oct 10max 106.8sNov 8
ElevenLabs Eleven v4Avg 21.9s
ElevenLabs Turbo v2.5Avg 90.0s
ElevenLabs Sound Effects v2Avg 39.0s
ElevenLabs Sound Effects v3Avg 44.7s
OtherAvg 39.9s
Error Rate
Oct 10max 38.5%Nov 8
ElevenLabs Eleven v4Avg 0.5%
ElevenLabs Turbo v2.5Avg 0.0%
ElevenLabs Sound Effects v2Avg 0.0%
ElevenLabs Sound Effects v3Avg 0.0%
OtherAvg 5.9%

〰 Uptime

Percent of generations that succeeded over the selected period, per model version.

Avg. Success Rate (30d)
99.04%
across all generations of this model family
Uptime
Oct 10max 100%Nov 8
ElevenLabs Eleven v4Avg 99.49%
ElevenLabs Turbo v2.5Avg 100.00%
ElevenLabs Sound Effects v2Avg 100.00%
ElevenLabs Sound Effects v3Avg 100.00%
OtherAvg 94.12%