Peke ki ngā ihirangi

Grok Voice

Whakauru

id tauira xai/grok-voice
# 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/xai/grok-voice?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "audio": "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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Tae atu ki te $ 1.494 mō ia whakahaerenga ka utua mō te whakamahinga tūturu, ka whakahokia te toenga Whakahaerehia ki tēnei whārangi

Tikina he kī API
xAI Ororongo #xai#grok#voice#agent

He kaiāwhina reo ka whakarongo ki tētahi topenga oro kua hopukina, ka whakautu mā te kōrero me te tuhinga

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.

0 / 20000

Ngā tohutohu pūnaha kōwhiringa e tuku ana i te horopaki kōrerorero, e tautuhi ana hoki i tētahi tangata kē hei whakakapi i te taunoa a Grok; ki te waiho, ka mau tonu taua tangata taunoa.

•e hiahiatia ana audio_url
Whakataka he kōnae,

URL ororongo mō te kōrero a te kaiwhakamahi, kaua e neke ake i te 10 meneti me te 50 MB. Ka taea te tuku i te nuinga o ngā hōputu ororongo; i mua i te whiwhinga a Grok i te ororongo, ka hurihia ki te mono PCM me ngā tauira 16-bit i te 24 kHz. Ka whakautu te āpiha ki te hopukanga mā te kōrero.

Arā atu voice · enable_safety_checker · tools

Kōwhiria he reo xAI hanga-roto hei whakakapi i te taunoa a Grok mō te whakautu a te āpiha; ki te kore e whakaritea, ka mau tonu taua reo taunoa.

taunoa {"mcp_servers":[],"we...

Whirihoranga taputapu āpiha mō te whakamahi taha-tūmau; ka waiho ngā file_search/collections i waho i te whirihoranga pato nā ZDR. Ka tīmata ngā taputapu katoa kua mono; ko ngā kōwhiringa tautokona ko ngā taputapu MCP mamao, ngā taputapu tukutuku me ngā taputapu X.

POST /run/xai/grok-voice?wait=20 utu → $ 1.494
# 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/xai/grok-voice?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "audio": "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.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ō Grok Voice

Tukuna he hopukanga mā `audio_url`, ā, ka whakautu te kaiāwhina mā te oro kōrero, ka whakahokia hei WAV mono 24 kHz me tōna roanga me tētahi tuhinga ina wātea. Mā te `prompt` kōwhiringa (tae atu ki te 20000 pūāhua) e whakarite te tuakiri me te horopaki, ā, mā `voice` e kōwhiri te reo hanga-i roto. Mā te ahanoa `tools` e taea ai te rapu tukutuku, te rapu X, ngā tūmau MCP mamao rānei; kua whakawetohia katoa i te taunoa.

Ngā tawhā

Tukuna te ingoa tōmua, te ingoa taketake rānei, kaua e rua. Ngā ingoa tōmua

IngoaMomo TaunoaE whakaaetia ana Whakamārama
audio_urle hiahiatia ana audio
Momourl · audio
URL ororongo mō te kōrero a te kaiwhakamahi, kaua e neke ake i te 10 meneti me te 50 MB. Ka taea te tuku i te nuinga o ngā hōputu ororongo; i mua i te whiwhinga a Grok i te ororongo, ka hurihia ki te mono PCM me ngā tauira 16-bit i te 24 kHz. Ka whakautu te āpiha ki te hopukanga mā te kōrero.
promptkōwhiringa
Momostring | null
≤ 20,000 pūāhua
Ngā tohutohu pūnaha kōwhiringa e tuku ana i te horopaki kōrerorero, e tautuhi ana hoki i tētahi tangata kē hei whakakapi i te taunoa a Grok; ki te waiho, ka mau tonu taua tangata taunoa.
voicekōwhiringa
Momoenum
carinazaganhelixorionlunairisaltairzenithperseusheliosluxkeplerrigelcosmocelesteursa
+12 anōsiriuslumencastornakshatlasauroralioraaraeveleorexsal
Kōwhiria he reo xAI hanga-roto hei whakakapi i te taunoa a Grok mō te whakautu a te āpiha; ki te kore e whakaritea, ka mau tonu taua reo taunoa.
toolskōwhiringa
Momoobject
Taunoa{"mcp_servers":[],"web_search":{"enabled":false},"x_search":{"enabled":false}}
Whirihoranga taputapu āpiha mō te whakamahi taha-tūmau; ka waiho ngā file_search/collections i waho i te whirihoranga pato nā ZDR. Ka tīmata ngā taputapu katoa kua mono; ko ngā kōwhiringa tautokona ko ngā taputapu MCP mamao, ngā taputapu tukutuku me ngā taputapu X.
tools.mcp_serverskōwhiringa
Momoobject[]
Ngā tūmau MCP mamao e tūhono atu ai te kaiwhakarato tauira mō te whakahaere taputapu.
tools.mcp_servers[].allowed_toolskōwhiringa
Momostring[]
≥ 1 items
Rārangi kōwhiringa e tohu ana ko ēhea ingoa taputapu ka whakaatu mai tēnei tūmau.
tools.mcp_servers[].authorizationkōwhiringa
Momostring | null
Uara whakamana tairongo ka tukuna ki te kaiwhakarato tauira anake.
tools.mcp_servers[].enabledkōwhiringa
Momoboolean
Taunoatrue
Tohu whakauru tūmau; mā false ka waiho te tūmau ki waho.
tools.mcp_servers[].headerskōwhiringa
Momoobject | null
Ngā pane tairongo mō ngā tono MCP, ka tukuna ki te kaiwhakarato tauira anake.
tools.mcp_servers[].server_descriptionkōwhiringa
Momostring | null
≤ 2000 characters
Whakaahuatanga o ngā āheinga e wātea ana mā tēnei tūmau.
tools.mcp_servers[].server_labele hiahiatia ana
Momostring
1 – 128 characters
Tapanga tūmau e whakamahia ana e te kaiwhakarato tauira hei tautuhi i ana taputapu, hei kuhimua hoki i ō rātou ingoa.
tools.mcp_servers[].server_urle hiahiatia ana
Momostring
≥ 1 characters
Wāhitau HTTP(S) i tukuna e te kaiwaea mō tētahi tūmau MCP e tūhono mamao atu ai a Grok mā ngā waka Streaming HTTP/SSE.
tools.web_search.allowed_domainskōwhiringa
Momostring[]
1 – 5 items
Here rohe mō ngā hua rapu: tohua kia rima rawa ngā rohe, kaua e whakauru i ngā kawa me ngā ara.
tools.web_search.enable_image_understandingkōwhiringa
Momoboolean | null
Whakaaetanga mā te āpiha e tirotiro ngā atahanga i kitea mā ngā rapunga tukutuku.
tools.web_search.enabledkōwhiringa
Momoboolean
Taunoafalse
Urunga rapu tukutuku mō te āpiha: mā true ka tāpiri i web_search ki session.tools, ā, ka whakaae ki ngā rapunga tukutuku; mā te taunoa ka noho mono.
tools.web_search.excluded_domainskōwhiringa
Momostring[]
1 – 5 items
Ngā rohe hei aukati i ngā hua rapu, kaua e neke ake i te rima, me te waiho i ngā kawa me ngā ara.
tools.web_search.locationkōwhiringa
Momoobject
Wāhi kōwhiringa hei whakarite i ngā hua rapu ā-rohe.
tools.x_search.allowed_x_handleskōwhiringa
Momostring[]
1 – 20 items
Ngā pūāhua X ka puta pea ā rātou whakairinga ki ngā hua, kaua e neke ake i te 20.
tools.x_search.enable_image_understandingkōwhiringa
Momoboolean | null
Whakaaetanga mā te āpiha e tirotiro ngā atahanga i kitea i X.
tools.x_search.enable_video_understandingkōwhiringa
Momoboolean | null
Whakaaetanga mā te āpiha e tirotiro ngā ataata i kitea i X.
tools.x_search.enabledkōwhiringa
Momoboolean
Taunoafalse
Urunga ki ngā whakairinga X mā te rapu: mā true ka tāpiri i x_search ki session.tools kia taea ai e te āpiha te rapu i aua whakairinga; mā te taunoa ka noho mono.
tools.x_search.excluded_x_handleskōwhiringa
Momostring[]
1 – 20 items
Ngā pūāhua X kāore e whakaurua ō rātou whakairinga, kaua e neke ake i te 20.
tools.x_search.from_datekōwhiringa
Momostring | null
Te rā tōmua mō ngā whakairinga, ka whakaaturia ki te hōputu ISO YYYY-MM-DD.
tools.x_search.to_datekōwhiringa
Momostring | null
Te rā hou rawa mō ngā whakairinga, ka whakaaturia ki te hōputu ISO YYYY-MM-DD.
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 Ingoa tōmua, e whakaaetia ana hoki

Mō ngā tawhā kōnae, whakamahia he URL tūmatanui https://, he URI data: tae atu ki te 10 MB, he file_url rānei o tētahi tukuake. Ngā kōnae

Putanga

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "xai/grok-voice",
  "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": 1494,
    "usd": "1.494",
    "charged": 1494,
    "refunded": 0
  },
  "input": {
    "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
    },
    "text": "",
    "duration": 5
  },
  "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
audio
object {url, content_type, file_name, file_size}He whakautu kōrero mai i te āpiha Grok, ka tukuna hei WAV mono i te 24 kHz.
text
stringHe kuputuhi e haere tahi ana me te kōrero a te āpiha: ko te aho putua e tohu ana kāore a Grok i tuku tuhinga ā-waha; ki te kore, kei roto te tuhinga ā-waha.
duration
numberTe roa o te ororongo kua whakaputaina, kua inehia ki te hēkona.

Ētahi atu tauira: Ororongo

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