Skip to content

Eleven v4 Text to Speech

Integrate

Model id elevenlabs/tts/eleven-v4
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/elevenlabs/tts/eleven-v4?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "[whispers] Okay, everyone, gather close. [excited] The bread is finally out of the oven. [laughs] Fine, fine, one slice each, but only if you promise to save one for me."
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: $0.014 14 API credits Run it on this page

Get API key
ElevenLabs Text to Speech #voiceover#expressive#timestamps

ElevenLabs' most expressive voice model, with inline emotion tags and word timestamps.

Examples

Output · ~14 s
[whispers] Okay, everyone, gather close. [excited] The bread is finally out of the oven. [laughs] Fine, fine, one slice each, but only if you promise to save one for me.$0.014 · 14 API credits

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required 169 / 5000

Provide speech content as text, optionally marking delivery with audio tags such as [whispering] or specifying IPA pronunciations between forward slashes.

default Rachel

Voice selected for synthesizing speech.

Advanced apply_text_normalization · language_code · output_format · stability · similarity_boost · seed · timestamps
apply_text_normalization default auto

Controls text normalization before generation, including the handling of numbers and dates.

ISO 639-1 language code used when generating speech and normalizing text.

default mp3_44100_128

Generated audio format, specified using the codec_sample_rate_bitrate pattern.

default 0.5

Voice stability balances expressive delivery at lower settings against consistent delivery at higher settings.

default 0.75

Reference-voice similarity control, with a potential naturalness tradeoff: raising it strengthens the match but may make the output sound less natural.

Seed used to attempt reproducible results; exact output repetition is not guaranteed.

POST /run/elevenlabs/tts/eleven-v4?wait=20 quote → $0.014
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/elevenlabs/tts/eleven-v4?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "[whispers] Okay, everyone, gather close. [excited] The bread is finally out of the oven. [laughs] Fine, fine, one slice each, but only if you promise to save one for me."
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Eleven v4 Text to Speech

Eleven v4 reads text aloud in natural, emotional voices and understands inline audio tags such as [excited] or [whispering] as well as IPA pronunciations. Pick a voice, tune stability and similarity, set the language, and optionally get word-level timestamps. MP3, PCM, Opus and telephony formats.

Parameters

NameType DefaultAllowed Description
textrequired
Typestring
≤ 5,000 characters
Provide speech content as text, optionally marking delivery with audio tags such as [whispering] or specifying IPA pronunciations between forward slashes.
voiceoptional
Typestring
DefaultRachel
Voice selected for synthesizing speech.
stabilityoptional
Typenumber
Default0.5
0 – 1
Voice stability balances expressive delivery at lower settings against consistent delivery at higher settings.
similarity_boostoptional
Typenumber
Default0.75
0 – 1
Reference-voice similarity control, with a potential naturalness tradeoff: raising it strengthens the match but may make the output sound less natural.
seedoptional
Typeinteger | null
0 – 4,294,967,295
Seed used to attempt reproducible results; exact output repetition is not guaranteed.
language_codeoptional
Typestring | null
ISO 639-1 language code used when generating speech and normalizing text.
output_formatoptional
Typeenum
Defaultmp3_44100_128
mp3_22050_32mp3_44100_32mp3_44100_64mp3_44100_96mp3_44100_128mp3_44100_192pcm_8000pcm_16000pcm_22050pcm_24000pcm_44100pcm_48000ulaw_8000alaw_8000opus_48000_32opus_48000_64
+3 moreopus_48000_96opus_48000_128opus_48000_192
Generated audio format, specified using the codec_sample_rate_bitrate pattern.
apply_text_normalizationoptional
Typeenum
Defaultauto
autoonoff
Controls text normalization before generation, including the handling of numbers and dates.
timestampsoptional
Typeboolean
Defaultfalse
Controls whether generated audio is accompanied by timing data for individual characters.
required

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "elevenlabs/tts/eleven-v4",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 14,
    "usd": "0.014",
    "charged": 14,
    "refunded": 0
  },
  "input": {
    "text": "[excited] Hello! Welcome to the future of voice.",
    "voice": "Aria"
  },
  "output": {
    "audio": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_name": "0-output.mp3",
      "file_size": 1843200
    },
    "timestamps": []
  },
  "outputs": [
    {
      "type": "audio",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_size": 1843200,
      "duration": 12,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
audio
object {url, content_type, file_name, file_size}Audio file produced by generation.
timestamps
array of any | nullGenerated-speech timing data, included only for requests with `timestamps` set to True, with a timestamp for every word.

More models: Text to Speech

For AI agents: this page as Markdown is at https://doitong.com/developers/models/elevenlabs/tts/eleven-v4.md. All models and guides: https://doitong.com/developers/llms.txt