Skip to content

Zonos2 Text to Speech

Integrate

Model id zonos2
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/zonos2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reference_audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  }'

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

Up to $0.02 per run charged by actual usage, the rest is refunded Run it on this page

Get API key
Zyphra Text to Speech Reference inputs #text-to-speech#tts#voice-cloning

Multilingual voice-cloning TTS with sampling controls and a choice between close match or expressive delivery

Zyphra · Audio

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

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

•required
Drop a file, or

Audio providing the source voice for cloning.

Advanced language · temperature · top_p · min_p · top_k · max_tokens · seed · accurate_mode · clean_speaker_background · enable_safety_checker
default en_us

Language selection for text normalization, which is skipped unless the code is one of: en_us, en_gb, fr_fr, de, es, it, pt_br, ja, cmn, ko.

default 1.15

Temperature used for sampling.

default 0

Probability for nucleus sampling; set to 0 to disable it.

default 0.18

Probability threshold for minimum-probability sampling.

default 106

Cutoff for top-k sampling; set to 0 to disable it.

Audio-frame generation cap, using the model's context limit unless a maximum is supplied.

Seed that enables reproducible results; chosen randomly if omitted.

POST /run/zonos2?wait=20 quote → $0.02
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/zonos2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reference_audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/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 Zonos2 Text to Speech

Clones a voice from `reference_audio_url` and speaks text, returning WAV audio at 44.1kHz mono along with the seed used. `language` sets text normalization for en_us, en_gb, fr_fr, de, es, it, pt_br, ja, cmn and ko. `accurate_mode` trades voice closeness for expressiveness, and sampling is tunable via `temperature`, `top_p`, `min_p`, `top_k` and `max_tokens` (up to 6144).

Parameters

NameType DefaultAllowed Description
reference_audio_urlrequired
Typeurl · audio
Audio providing the source voice for cloning.
languageoptional
Typestring
Defaulten_us
Language selection for text normalization, which is skipped unless the code is one of: en_us, en_gb, fr_fr, de, es, it, pt_br, ja, cmn, ko.
seedoptional
Typeinteger | null
0 – 2,147,483,647
Seed that enables reproducible results; chosen randomly if omitted.
accurate_modeoptional
Typeboolean
Defaulttrue
Voice matching versus expressiveness: True favors a closer match, while False favors more expressive speech.
clean_speaker_backgroundoptional
Typeboolean
Defaultfalse
Indicates that the reference audio has a clean background.
temperatureoptional
Typenumber
Default1.15
0 – 2
Temperature used for sampling.
top_poptional
Typenumber
Default0
0 – 1
Probability for nucleus sampling; set to 0 to disable it.
min_poptional
Typenumber
Default0.18
0 – 1
Probability threshold for minimum-probability sampling.
top_koptional
Typeinteger
Default106
0 – 2,048
Cutoff for top-k sampling; set to 0 to disable it.
max_tokensoptional
Typeinteger | null
1 – 6,144
Audio-frame generation cap, using the model's context limit unless a maximum is supplied.
enable_safety_checkeroptional
Typeboolean
Defaulttrue
Screening can be relaxed by setting false, provided the caller is authorized.
required

File parameters take a public https:// URL, a data: URI up to 10 MB, or the file_url of an upload. Files

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "zonos2",
  "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": 20,
    "usd": "0.02",
    "charged": 20,
    "refunded": 0
  },
  "input": {
    "reference_audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  },
  "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
    },
    "seed": 42
  },
  "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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}Output audio in WAV format, with a 44.1kHz sample rate and mono channel.
seed
integerSeed value applied during generation.

For AI agents: this page as Markdown is at https://doitong.com/en-GB/developers/models/zonos2.md. All models and guides: https://doitong.com/developers/llms.txt