Lumaktaw sa nilalaman

F5 TTS

I-integrate

ID ng modelo f5-tts
# 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/f5-tts?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "gen_text": "Hello from Doitong. This is a short test sentence.",
    "ref_audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
    "model_type": "F5-TTS"
  }'

# 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"

Kahilingang ito: $0.003 3 kredito ng API · ≈ ₽0.32 Patakbuhin ito sa page na ito

Kumuha ng API key
Open model Text patungong Speech Mga reference input #speech

Voice-cloning speech synthesis mula sa reference audio clip gamit ang F5-TTS o E2-TTS

Open model · audio

Dito mapupunta ang iyong unang resulta

Bumuo ng kahilingan sa ibaba at patakbuhin ito gamit ang iyong API key. Kinokopya ang mga output sa aming storage, na pinananatili nang walang hanggan o 7 araw nang libre.

Bumuo ng kahilingan

Ang mga control ay binubuo mula sa schema ng modelo. Nagbabago ang code at presyo habang ina-adjust mo ang mga ito.

•kinakailangan

Text para sa speech synthesis, na hanggang 5000 character lamang.

•kinakailangan
Mag-drop ng file, o

URL ng reference audio file.

model_type •kinakailangan

Pangalan ng modelo para sa TTS synthesis.

advanced ref_text · remove_silence
default na

TTS reference text; kapag iniwan itong wala, awtomatikong bubuo ang speech-recognition modelo (ASR, Automatic Speech Recognition).

POST /run/f5-tts?wait=20 presyo → $0.003
# 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/f5-tts?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "gen_text": "Hello from Doitong. This is a short test sentence.",
    "ref_audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
    "model_type": "F5-TTS"
  }'

# 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"

Patakbuhin ang kahilingang ito

Nananatili ang iyong key sa browser na ito: ipinapadala lamang ito sa Doitong API at sine-save (localStorage) lamang kung pipiliin mo ang Tandaan. Kumuha ng API key

Tungkol sa F5 TTS

Binibigkas ang `gen_text` (hanggang 5000 character) gamit ang boses ng reference clip na ibinigay ng `ref_audio_url`. Pinipili ng `model_type` ang F5-TTS o E2-TTS. Kung walang laman ang `ref_text`, speech recognition ang bubuo nito. Default na naka-on ang `remove_silence`.

Mga parameter

PangalanUri defaultPinapayagan Paglalarawan
gen_textkinakailangan
Uristring
Text para sa speech synthesis, na hanggang 5000 character lamang.
ref_audio_urlkinakailangan
Uriurl · audio
URL ng reference audio file.
ref_textopsyonal
Uristring
default
TTS reference text; kapag iniwan itong wala, awtomatikong bubuo ang speech-recognition modelo (ASR, Automatic Speech Recognition).
model_typekinakailangan
Urienum
F5-TTSE2-TTS
Pangalan ng modelo para sa TTS synthesis.
remove_silenceopsyonal
Uriboolean
defaulttrue
Kinokontrol kung aalisin ang katahimikan mula sa audio file.
kinakailangan

Tumatanggap ang mga parameter ng file ng pampublikong https:// URL, data: URI na hanggang 10 MB, o file_url ng isang upload. Mga file

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "f5-tts",
  "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": 3,
    "usd": "0.003",
    "charged": 3,
    "refunded": 0
  },
  "input": {
    "gen_text": "Hello from Doitong. This is a short test sentence.",
    "ref_audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
    "model_type": "F5-TTS"
  },
  "output": {
    "audio_url": {
      "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
    }
  },
  "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"
  }
}
Ikaw ang pumipili para sa iyong mga fileAng bawat outputs[].url ay kopya sa aming storage: pinananatili nang walang hanggan (sinisingil bawat GB-month) o 7 araw nang libre, ayon sa setting ng iyong account o ?storage=.
Parehong shape sa bawat modelotype, url, content_type, width, height at duration, para sa mga larawan, video at audio. Ang output ay sariling result object ng modelo.
Mga field ng output
audio_url
object {url, content_type, file_name, file_size}Audio file na may synthesized speech.

Para sa mga AI agent: nasa Markdown ang pahinang ito sa https://doitong.com/fil/developers/models/f5-tts.md. Lahat ng modelo at gabay: https://doitong.com/developers/llms.txt