Grok Voice Think Fast 1.0
Grok Voice Think Fast 1.0 is xAI's realtime voice model for speech-to-speech agents, streaming audio bidirectionally over WebSocket through Vercel AI Gateway.
import { gateway } from '@ai-sdk/gateway';
export async function POST() { const { token, url } = await gateway.experimental_realtime.getToken({ model: 'xai/grok-voice-think-fast-1.0', });
return Response.json({ token, url, tools: [] });}Frequently Asked Questions
How do I connect to Grok Voice Think Fast 1.0 through AI Gateway?
Add a server route that mints a short-lived token with
gateway.experimental_realtime.getToken. In the browser, theuseRealtimehook from@ai-sdk/reacthandles the WebSocket connection, microphone capture, and playback. In Node.js, drive a WebSocket yourself using the realtime model as a codec.Can Grok Voice Think Fast 1.0 transcribe or translate audio?
No. Grok Voice Think Fast 1.0 supports speech-to-speech only. Use
grok-sttto transcribe recorded audio.What session limits apply to Grok Voice Think Fast 1.0?
AI Gateway caps sessions at 25 minutes, closes idle sessions after five minutes, expects a first client message within 30 seconds, and rejects messages over 256 KB. Teams also have a concurrent session limit.
What is background reasoning in Grok Voice Think Fast 1.0?
Background reasoning lets Grok Voice Think Fast 1.0 work through hard queries while the conversation continues, so spoken replies stay responsive during complex, multi-step requests.
What languages does Grok Voice Think Fast 1.0 support?
xAI reports support for conversations in more than 25 languages, with robustness under telephony conditions like noise, accents, and interruptions.
What does Grok Voice Think Fast 1.0 cost?
See the pricing section on this page for today's rates. AI Gateway exposes current pricing for Grok Voice Think Fast 1.0.
How do I authenticate with Grok Voice Think Fast 1.0 through Vercel AI Gateway?
Use your Vercel AI Gateway API key on the server with
xai/grok-voice-think-fast-1.0as the model identifier.getTokenexchanges the key for a single-use, short-lived client secret, so the key never reaches the browser.Does Vercel AI Gateway support Zero Data Retention for Grok Voice Think Fast 1.0?
Zero Data Retention is not currently available for this model. Zero Data Retention is offered on a per-provider basis. See https://vercel.com/docs/ai-gateway/capabilities/zdr for details.