Peke ki ngā ihirangi

Maya · Batch

Whakauru

id tauira maya/batch
# 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/maya/batch?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "texts": [
      "Hello from Doitong. This is a short test sentence."
    ],
    "prompts": [
      "Hello from Doitong. This is a short test sentence."
    ]
  }'

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

Tēnei tono: ≈$ 0.049 49 whiwhinga API Whakahaerehia ki tēnei whārangi

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

He putanga puranga o te kōrero Maya, e whakaputa ana i ngā kuputuhi tae atu ki te 100 me ngā whakaahuatanga reo e hāngai ana

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

Rārangi kuputuhi whakahiato kōrero me te tautoko mō ngā tohu <emotion_name> kua whakaurua ki roto i ia tūemi.

•e hiahiatia ana

Ngā āhuatanga reo, kiripuaki hoki mō ia kuputuhi, ka tukuna hei rārangi whakaahuatanga. Me ōrite te maha o ngā whakaahuatanga ki te maha o ngā kuputuhi.

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

Tautuhinga auau tauira ororongo mō ia whakaputanga, me te kōwhiringa tukatuka tere ake i te 24 kHz, kounga pai ake rānei i te 48 kHz.

output_format taunoa wav

Hōputu kōnae mō ia rekoata kōrero kua whakaputaina.

taunoa 0.4

Te pāmahana tīpako ka whakamahia ki ia whakaputanga.

taunoa 0.9

Tautuhinga tīpako karihi ka whakamahia ki ia whakaputanga.

taunoa 2000

Te tepe runga o ngā tohu SNAC mō ia whakaputanga.

taunoa 1.1

Whiunga tāruarua ka whakamahia ki ia whakaputanga.

POST /run/maya/batch?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.com/v1/run/maya/batch?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "texts": [
      "Hello from Doitong. This is a short test sentence."
    ],
    "prompts": [
      "Hello from Doitong. This is a short test sentence."
    ]
  }'

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

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 · Batch

Ka waihanga i ngā topenga maha i roto i te tono kotahi. Ka whakaae a `texts` me `prompts` ki ngā tāurunga 1 ki te 100, ā, me ōrite te roa, kia hono ai ia kuputuhi ki tētahi whakaahuatanga reo. Ka mahi ngā tūtohu kare ā-roto i ia kuputuhi. Ka pā ngā tautuhinga pērā i te auau tauira, te hōputu putanga me te pāmahana ki te katoa, ā, kei ngā hua he rārangi kōnae ororongo me ngā roanga.

Ngā tawhā

IngoaMomo TaunoaE whakaaetia ana Whakamārama
textse hiahiatia ana
Momostring[]
≤ 100 tūemi
Rārangi kuputuhi whakahiato kōrero me te tautoko mō ngā tohu <emotion_name> kua whakaurua ki roto i ia tūemi.
promptse hiahiatia ana
Momostring[]
≤ 100 tūemi
Ngā āhuatanga reo, kiripuaki hoki mō ia kuputuhi, ka tukuna hei rārangi whakaahuatanga. Me ōrite te maha o ngā whakaahuatanga ki te maha o ngā kuputuhi.
temperaturekōwhiringa
Momonumber
Taunoa0.4
0 – 2
Te pāmahana tīpako ka whakamahia ki ia whakaputanga.
top_pkōwhiringa
Momonumber
Taunoa0.9
0 – 1
Tautuhinga tīpako karihi ka whakamahia ki ia whakaputanga.
max_tokenskōwhiringa
Momointeger
Taunoa2000
28 – 4,000
Te tepe runga o ngā tohu SNAC mō ia whakaputanga.
repetition_penaltykōwhiringa
Momonumber
Taunoa1.1
1 – 2
Whiunga tāruarua ka whakamahia ki ia whakaputanga.
sample_ratekōwhiringa
Momoenum
Taunoa48 kHz
48 kHz24 kHz
Tautuhinga auau tauira ororongo mō ia whakaputanga, me te kōwhiringa tukatuka tere ake i te 24 kHz, kounga pai ake rānei i te 48 kHz.
output_formatkōwhiringa
Momoenum
Taunoawav
wavmp3
Hōputu kōnae mō ia rekoata kōrero kua whakaputaina.
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/batch",
  "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": {
    "texts": [
      "Hello from Doitong. This is a short test sentence."
    ],
    "prompts": [
      "Hello from Doitong. This is a short test sentence."
    ]
  },
  "output": {
    "audios": [
      {
        "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
      }
    ],
    "durations": [
      5
    ],
    "sample_rate": "48 kHz",
    "total_generation_time": 5.7,
    "average_rtf": 0.15
  },
  "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"
  }
}
Ō 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
audios
array of object {url, content_type, file_name, file_size}Ngā kōnae ororongo kua whakaputaina, ka whakahokia hei rārangi.
durations
array of numberTe roa ki te hēkona o ia rekoata ororongo kua whakaputaina.
sample_rate
stringAuau tauira e whakamahia ngātahitia ana e ngā kōnae ororongo katoa kua whakaputaina.
total_generation_time
numberTe wā whakaputa huinga ki te hēkona mō ngā kōnae ororongo katoa.
average_rtf
numberTauwehe wā-tūturu toharite mō ngā whakaputanga katoa.

Ē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/batch.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt