Peke ki ngā ihirangi

Maya · Stream

Whakauru

id tauira maya/stream
# 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/maya/stream?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello from Doitong. This is a short test sentence.",
    "prompt": "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.049 49 whiwhinga API · ≈ ₽ 5.17 Whakahaerehia ki tēnei whārangi

Tikina he kī API
Maya Research Kuputuhi ki te Kōrero #text-to-speech#tts

He momo roma o te kupu-ki-te-kōrero Maya mō te kuputuhi kotahi me te whakaahuatanga reo

Maya Research · 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 / 5000

Kuputuhi whakahiato kōrero e āhei ana ki ngā tohu kare ā-roto kei te āhua <emotion_name> i ngā wāhi katoa, pēnei i te 'Hello world! <excited> This is amazing!' rānei 'I can't believe this <sigh> happened again.'. Ko ngā kare ā-roto e tautokona ana ko curious, sarcastic, giggle, gulp, exhale, snort, sing, scream, cry, whisper, excited, angry, gasp, chuckle, sigh, laugh_harder, me laugh.

•e hiahiatia ana 50 / 500

Ngā āhuatanga o te reo, o te kiripuaki rānei hei whakaahua, pēnei i te kaha, te oro, te tere, te timbre, te pitch, te nako, me te pakeke.

Arā atu sample_rate · output_format · temperature · top_p · max_tokens · repetition_penalty · enable_safety_checker
sample_rate taunoa 48 kHz

Kōwhiringa auau tauira ororongo i waenga i te tukatuka tere ake i te 24 kHz me te putanga kounga teitei ake i te 48 kHz.

output_format taunoa wav

Hōputu kōnae ororongo mō te kōrero kua whakahiatohia.

taunoa 0.4

Te pāmahana tīpako e whakahaere ana i te rerekētanga o te ororongo: mā te whakapiki ka nui ake te momo rerekē, ko te awhe raro 0.2–0.5 e pai ana mō te pūmautanga me te ōritetanga.

taunoa 0.9

Tautuhinga tīpako karihi hei whakatika i te kanorau o te tīpako tohu.

taunoa 2000

Pūtea tohu SNAC hei whakawhāiti i te roanga o te ororongo, ka tatau ki te 7 tohu mō ia anga.

taunoa 1.1

Whiunga mō te tāruarua tohu. Mā te whakapiki ka pehi i ngā hapa tāruarua.

POST /run/maya/stream?wait=20 utu → $ 0.049
# 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/maya/stream?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello from Doitong. This is a short test sentence.",
    "prompt": "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ō Maya · Stream

Ka huri i tētahi kuputuhi kotahi tae atu ki te 5000 pūāhua hei kōrero, me te `prompt` whakaahuatanga reo e hiahiatia ana tae atu ki te 500 pūāhua me ngā tūtohu kare ā-roto ka taea te tāmau. Ko ngā kōwhiringa ko `temperature`, `top_p`, `repetition_penalty`, te auau tauira 48, 24 rānei kHz, me te putanga wav, mp3 rānei. Ka whakahoki i te ororongo me tōna roanga me te tauwehe wā-tūturu.

Ngā tawhā

IngoaMomo TaunoaE whakaaetia ana Whakamārama
texte hiahiatia ana
Momostring
≤ 5,000 pūāhua
Kuputuhi whakahiato kōrero e āhei ana ki ngā tohu kare ā-roto kei te āhua <emotion_name> i ngā wāhi katoa, pēnei i te 'Hello world! <excited> This is amazing!' rānei 'I can't believe this <sigh> happened again.'. Ko ngā kare ā-roto e tautokona ana ko curious, sarcastic, giggle, gulp, exhale, snort, sing, scream, cry, whisper, excited, angry, gasp, chuckle, sigh, laugh_harder, me laugh.
prompte hiahiatia ana
Momostring
≤ 500 pūāhua
Ngā āhuatanga o te reo, o te kiripuaki rānei hei whakaahua, pēnei i te kaha, te oro, te tere, te timbre, te pitch, te nako, me te pakeke.
temperaturekōwhiringa
Momonumber
Taunoa0.4
0 – 2
Te pāmahana tīpako e whakahaere ana i te rerekētanga o te ororongo: mā te whakapiki ka nui ake te momo rerekē, ko te awhe raro 0.2–0.5 e pai ana mō te pūmautanga me te ōritetanga.
top_pkōwhiringa
Momonumber
Taunoa0.9
0 – 1
Tautuhinga tīpako karihi hei whakatika i te kanorau o te tīpako tohu.
max_tokenskōwhiringa
Momointeger
Taunoa2000
28 – 4,000
Pūtea tohu SNAC hei whakawhāiti i te roanga o te ororongo, ka tatau ki te 7 tohu mō ia anga.
repetition_penaltykōwhiringa
Momonumber
Taunoa1.1
1 – 2
Whiunga mō te tāruarua tohu. Mā te whakapiki ka pehi i ngā hapa tāruarua.
sample_ratekōwhiringa
Momoenum
Taunoa48 kHz
48 kHz24 kHz
Kōwhiringa auau tauira ororongo i waenga i te tukatuka tere ake i te 24 kHz me te putanga kounga teitei ake i te 48 kHz.
output_formatkōwhiringa
Momoenum
Taunoawav
wavmp3
Hōputu kōnae ororongo mō te kōrero kua whakahiatohia.
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": "maya/stream",
  "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": 49,
    "usd": "0.049",
    "charged": 49,
    "refunded": 0
  },
  "input": {
    "text": "Hello from Doitong. This is a short test sentence.",
    "prompt": "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
    },
    "duration": 5,
    "sample_rate": "48 kHz",
    "generation_time": 2.3,
    "rtf": 0.51
  },
  "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}Kōnae kōrero kua whakaputaina i te WAV, i te MP3 rānei, he ororongo mono i te 24 kHz, i te 48 kHz rānei, e whakatauhia ana e te upsampler.
duration
numberTe roa o te putanga ororongo, ka inehia ki te hēkona.
sample_rate
stringAuau tauira o te putanga ororongo.
generation_time
numberTe wā whakaputa ororongo, ka inehia ki te hēkona.
rtf
numberTauwehe wā-tūturu ka tātaihia hei generation_time kua whakawehea ki te audio_duration; ko ngā uara iti ake he pai ake te mahi.

Ētahi atu tauira: Kuputuhi ki te Kōrero

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