Realtime voice, TTS, and STT from xAI route through Vercel's gateway with token-based client auth and unified observability—integrate via AI SDK 7.
Summary
Eliminates API key exposure on client and consolidates audio infrastructure into existing gateway spend controls. Realtime voice agents now require only server token endpoint and browser hook.
Why it matters
Eliminates API key exposure on client and consolidates audio infrastructure into existing gateway spend controls. Realtime voice agents now require only server token endpoint and browser hook.
Implementation verdict
Replaces direct xAI audio integration with routed, metered access. Requires AI SDK 7, a token endpoint, and `useRealtime` hook. Ready now—playground test available before committing.
Sources
Dev Signal
Get briefs like this in your inbox — free, every weekday.
100+ sources compressed into one 4-minute read. Ranked, cited, implementation-ready.