megachangelog
Feature

xAI Grok audio models now available on Vercel AI Gateway

xAI's Grok audio models are now live on AI Gateway, including realtime voice, text-to-speech, and speech-to-text capabilities. These models are available through the AI SDK with the same routing, observability, and spend controls as other models, and can be used directly in the AI Gateway playground.

are now live on AI Gateway. Realtime voice, text to speech, and speech to text are all available through the with the same routing, observability, and spend controls as your other models.xAI's audio modelsAI SDK

These capabilities are available on the AI SDK 7 release.

A voice agent has two pieces: a server route that mints a short-lived token, so your API key never reaches the client, and a browser component that connects with it.

Add the token route: this example sets to :modelxai/grok-voice-think-fast-1.0

Then connect from the browser. The hook from fetches that route and manages the WebSocket connection, microphone capture, and audio playback:useRealtime@ai-sdk/react

Generate from text with . Pass a voice and an output format, then write the result to a file with :spoken audiogenerateSpeechxai/grok-tts

recordings into text with . This example uses :Transcribetranscribexai/grok-stt

You can also try the xAI audio models directly in the AI Gateway playground. Open the and click into any of the models to use them directly in the browser. The playground allows you to talk to the agent and see responses instantly:models listherexai/grok-voice-think-fast-1.0

Read more

Available models

Realtime

Text to speech

Speech to text

Playground

Capability

Models

Realtime voice

xai/grok-voice-think-fast-1.0

Text to speech

xai/grok-tts

Speech to text

xai/grok-stt

More information

ai-gatewayaudiovoicemodelsapi

Source: original entry ↗

More from Vercel

Follow Vercel to get its new changes in your feed and email digest.

Feature

OpenAI Decisions API now available on AI Gateway

OpenAI's Decisions API is now accessible through Vercel's AI Gateway with an OpenAI-compatible endpoint, enabling decision models to answer typed questions and return probabilities, choices, and scores for routing, triage, and guardrails use cases. Support is available across the OpenAI SDK, AI SDK, HTTP API, and CLI with the latest versions.

ai-gatewayopenaiapidecisionssdks
Feature

Timestamp attributes now supported in Vercel Flags

Vercel Flags now supports timestamp attributes for entities, allowing you to create time-based targeting rules. Use this feature to run limited-time campaigns, show content between specific dates, or target users based on registration date.

flagstargetingfeaturetimestampscampaigns
Feature

Glyph Cluster now available in stealth on AI Gateway

Glyph Cluster, a reasoning model for coding and long-context analysis, is now available as a stealth model on Vercel's AI Gateway for Pro and Enterprise plan teams with purchased AI Gateway credits at no cost during the stealth period. The model supports function calling, streams responses, and can be accessed via AI SDK, OpenAI-compatible APIs, and coding agents.

ai-gatewaymodelscodingstealth
See all Vercel changes →