← All models
Build real-time voice applications powered by Grok. Send recorded audio and get a voice and text response.
Details
- Accepts
- text
Pricing
- Price
- 0.104 cr / second
Prices in credits (1 credit = $0.01).
Data schema
Input
| Field | Type | Description |
|---|---|---|
| tools | — | Server-side tools available to the agent. Web, X, and remote MCP tools are supported; every tool is disabled by default. file_search/collections are unsupported by the typed configuration due to ZDR. |
| voice | — | Built-in xAI voice for the agent's reply. Uses Grok's default voice when omitted. |
| prompt | — | Optional system instructions describing the agent's persona and conversation context. Uses Grok's default persona when omitted. |
| audio_urlrequired | string | URL of the audio containing the user's speech. The Grok agent listens to it and replies with speech. Most common audio formats are supported; the audio is converted to 16-bit 24 kHz mono PCM before being sent to Grok. Maximum duration 10 minutes, maximum file size 50 MB. |
Output
| Field | Type | Description |
|---|---|---|
| text | string | Transcript of the agent's spoken response, when Grok provides one (empty string otherwise). |
| audio | — | The Grok agent's spoken response (WAV, 24 kHz mono). |
| duration | number | Duration of the generated audio in seconds. |