Vercel AI SDK 7.0.179 Adds WebSocket Support for OpenAI Live Models
The latest Vercel AI SDK enables direct WebSocket connections for OpenAI's gpt-live-1 and gpt-live-1.1 models, simplifying real-time streaming and reducing infrastructure requirements.
What changed?
Vercel's AI SDK version 7.0.179 introduces native WebSocket support for the openai/gpt-live-1 and openai/gpt-live-1.1 models using the gateway.experimental_realtime() function. This enables a continuous connection to the provider's Live API route, following a normalized Live protocol including session-start, PCM16 audio streaming, context-append, and session-close with usage reporting. The update also allows gateway.experimental_realtime.getToken() to mint client secrets for Live models, enabling direct connections with short-lived tokens when models support client-secret-websocket. Previously, these models were incorrectly routed to the realtime API and rejected. Application relay infrastructure is no longer required for continuous WebSocket sessions with supported models.
Why does it matter to an everyday developer?
This change streamlines real-time interactions with OpenAI Live models for developers working on voice, streaming, or interactive AI applications. It removes the need to maintain an application relay for persistent model sessions, reducing both operational complexity and resource usage. Developers can now make use of official Live protocols and features—such as PCM16 audio streaming—directly over WebSocket, simplifying backend implementations and potentially improving latency and reliability.
What can the developer do now?
Developers integrating Vercel AI SDK can connect to openai/gpt-live-1 and openai/gpt-live-1.1 via WebSocket through gateway.experimental_realtime(). They can use the new token minting capabilities to authenticate sessions directly with the provider for models that support client-secret-websocket connections. It is now possible to configure connections for other Live models by passing { api: 'live' } or fall back to { api: 'realtime' } as needed. This enables easier and more efficient implementation of applications that rely on real-time AI interactions, such as live transcription or conversational agents.

