Peke ki ngā ihirangi

xAI Text to Speech

Whakauru

id tauira xai/tts/v1
# 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/xai/tts/v1?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello from Doitong. This is a short test sentence."
  }'

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

Tēnei tono: $ 0.001 1 whiwhinga API · ≈ ₽ 0.10 Whakahaerehia ki tēnei whārangi

Tikina he kī API

Kuputuhi-ki-te-reo me ngā reo hanga-roto, te kōwhiringa reo me ngā tūtohu reo whakapuaki ā-raina

xAI · Ororongo

Kei konei tō hua tuatahi

Hangaia he tono ki raro nei, ka whakahaere mā tō kī API. Ka tāruatia ngā putanga ki tō mātou rokiroki, ka puritia mō ake tonu atu, mō rānei 7 rā mō te kore utu.

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

•e hiahiatia ana 50 / 15000

Kuputuhi whakahiato-kōrero, ā, ka whakahaerehia te tuku whai-āhua mā ngā tūtohu ā-raina ([laugh], [pause], [sigh]) me ngā tūtohu awhi (<whisper>text</whisper>, <slow>text</slow>). Kāore e taea te tāuru te neke atu i te 15,000 pūāhua.

Arā atu voice · language · enable_safety_checker · output_format
taunoa eve

Te reo hanga-roto kua tīpakohia mō te whakahiato-kōrero.

taunoa auto

Te kōwhiringa reo mai i ēnei waehere BCP-47: en, zh, fr, de, hi, id, it, ja, ko, pt-BR, pt-PT, ru, es-MX, es-ES, tr, vi, bn, ar-EG, ar-SA, ar-AE. Mō te kimi aunoa, tukuna kē 'auto'.

Whirihoranga mō te hōputu ororongo kua whakaputaina; ko te taunoa he MP3 me te auau tauira 24 kHz me te tere moka 128 kbps.

POST /run/xai/tts/v1?wait=20 utu → $ 0.001
# 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/xai/tts/v1?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello from Doitong. This is a short test sentence."
  }'

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

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō xAI Text to Speech

Ka huri i te kuputuhi tae atu ki te 15,000 pūāhua hei reo. Kōwhiria mai i ngā reo hanga-roto 28 me tētahi waehere reo, te kimi aunoa rānei. Ka taea e te kuputuhi ngā tūtohu pērā i [laugh], [pause], [sigh], ngā tūtohu takai pērā i <whisper>, <slow> hoki, mō te whakapuaki kare ā-roto. Mā `output_format` e whakarite te kōnae oro.

Ngā tawhā

IngoaMomo TaunoaE whakaaetia ana Whakamārama
texte hiahiatia ana
Momostring
≤ 15,000 pūāhua
Kuputuhi whakahiato-kōrero, ā, ka whakahaerehia te tuku whai-āhua mā ngā tūtohu ā-raina ([laugh], [pause], [sigh]) me ngā tūtohu awhi (<whisper>text</whisper>, <slow>text</slow>). Kāore e taea te tāuru te neke atu i te 15,000 pūāhua.
voicekōwhiringa
Momoenum
Taunoaeve
carinazaganhelixorionlunairisaltairzenithperseusheliosluxkeplerrigelcosmocelesteursa
+12 anōsiriuslumencastornakshatlasauroralioraaraeveleorexsal
Te reo hanga-roto kua tīpakohia mō te whakahiato-kōrero.
languagekōwhiringa
Momoenum
Taunoaauto
autoenar-EGar-SAar-AEbnzhfrdehiiditjakopt-BRpt-PT
+5 anōrues-MXes-EStrvi
Te kōwhiringa reo mai i ēnei waehere BCP-47: en, zh, fr, de, hi, id, it, ja, ko, pt-BR, pt-PT, ru, es-MX, es-ES, tr, vi, bn, ar-EG, ar-SA, ar-AE. Mō te kimi aunoa, tukuna kē 'auto'.
output_formatkōwhiringa
Momoobject
Whirihoranga mō te hōputu ororongo kua whakaputaina; ko te taunoa he MP3 me te auau tauira 24 kHz me te tere moka 128 kbps.
output_format.codeckōwhiringa
Momoenum
Taunoamp3
mp3wavpcmmulawalaw
Kotēkē mō te whakawaehere ororongo; ko ngā kōwhiringa e wātea ana ko mp3, wav, pcm, mulaw, alaw.
output_format.sample_ratekōwhiringa
Momoenum
Taunoa24000
80001600022050240004410048000
Auautanga tauira ororongo, ka inehia ki te Hz.
output_format.bit_ratekōwhiringa
Momoenum
320006400096000128000192000
Te tere moka mō te putanga MP3, ko te taunoa 128000, ka inehia ki te bps; kāore e pā ki ētahi atu kotēkē.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Ka taea te whakangāwari i te tātari mā te tautuhi false, mēnā he mana tō te kaiwhakatuwhera.
e hiahiatia ana

Putanga

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "xai/tts/v1",
  "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": 1,
    "usd": "0.001",
    "charged": 1,
    "refunded": 0
  },
  "input": {
    "text": "Hello from Doitong. This is a short test sentence."
  },
  "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
    }
  },
  "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"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
audio
object {url, content_type, file_name, file_size}Te kōnae ororongo i whakaputaina.

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/xai/tts/v1.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt