Grok Voice Think Fast 2.0
import { gateway } from '@ai-sdk/gateway';
export async function POST() { const { token, url } = await gateway.experimental_realtime.getToken({ model: 'xai/grok-voice-think-fast-2.0', });
return Response.json({ token, url, tools: [] });}Frequently Asked Questions
How do I connect to Grok Voice Think Fast 2.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.How does Grok Voice Think Fast 2.0 improve on Grok Voice Think Fast 1.0?
xAI reports gains in reasoning, transcription accuracy, and conversation. Grok Voice Think Fast 2.0 also spends fewer reasoning tokens, so tool calls fire sooner in a reply.
What does it mean that Grok Voice Think Fast 2.0 reasons in parallel with speech?
Grok Voice Think Fast 2.0 works through a query while it keeps talking, rather than pausing to think and then answering. Replies stay responsive on complex, multi-step requests.
Can Grok Voice Think Fast 2.0 transcribe or translate recorded audio?
No. Grok Voice Think Fast 2.0 supports speech-to-speech only. Use
grok-sttto transcribe recorded files andgrok-ttsto generate narration from text.Does Grok Voice Think Fast 2.0 accept image input?
No. Realtime sessions on AI Gateway don't support image input. Send visual context to a separate vision model and pass the result into the session as text.
What session limits apply to Grok Voice Think Fast 2.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.
How do I authenticate with Grok Voice Think Fast 2.0 through Vercel AI Gateway?
Use your Vercel AI Gateway API key on the server with
xai/grok-voice-think-fast-2.0as the model identifier.getTokenexchanges the key for a single-use, short-lived client secret, so the key never reaches the browser.What does Grok Voice Think Fast 2.0 cost?
See the pricing section on this page for today's rates. AI Gateway reflects each provider's pricing for Grok Voice Think Fast 2.0 with no markup.
Does Vercel AI Gateway support Zero Data Retention for Grok Voice Think Fast 2.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.