infery
← All models

Grok Voice

grok-voice

Text to Speechby xAI

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

FieldTypeDescription
toolsServer-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.
voiceBuilt-in xAI voice for the agent's reply. Uses Grok's default voice when omitted.
promptOptional system instructions describing the agent's persona and conversation context. Uses Grok's default persona when omitted.
audio_urlrequiredstringURL 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

FieldTypeDescription
textstringTranscript of the agent's spoken response, when Grok provides one (empty string otherwise).
audioThe Grok agent's spoken response (WAV, 24 kHz mono).
durationnumberDuration of the generated audio in seconds.