AI SDK 7.0.179 lets browsers connect to Gateway Live WebSockets with short-lived tokens while tools remain client-delegated
Vercel released AI SDK 7.0.179 on November 20. Gateway now routes openai/gpt-live-1 and gpt-live-1.1 to continuous Live sessions instead of the turn-based realtime route that returned invalid_model. An application server can mint a Live-bound short-lived client secret, after which the browser opens the PCM16 WebSocket session directly without requiring an application-hosted audio relay.
Why it matters
Transport architecture directly shapes latency, cost, and failure modes in realtime voice generative UI. A short-lived token keeps the long-lived Gateway key on the server while removing the application audio relay. The browser now owns a continuous session connection, so the interface must expose session state, final usage, microphone permission, token expiry, and the boundary of client-delegated actions.
A closer look
gateway.experimental_realtime() returns a continuous model for known Live IDs using session-start, bidirectional PCM16 audio, context-append, and session-close with final usage. Other IDs can select api:'live', while api:'realtime' forces the older route. getToken() mints a short-lived secret with routeKind:'live'. experimental_useRealtime can use api.token when a model declares client-secret-websocket and implements WebSocket configuration. The browser primes playback inside the user gesture, fetches setup, then opens the connection. Tools, turn detection, provider or context options, and client events that the Live route cannot accept fail early with explicit argument or unsupported-function errors.
Who this is for
Frontend and agent-platform teams building realtime voice generative UI, browser audio sessions, Gateway short-lived credentials, client tool delegation, or session-usage displays.
Original sources
- Vercel AI SDK 7.0.179 release and implementation commit ↗github.com
- Gateway Live WebSocket implementation, tests, and limits ↗github.com
Revisions & corrections (1)
— A new immutable release adds a distinct continuous-session transport and credential boundary for realtime generative UI; the official implementation documents supported routes, rejected options, measured bundle cost, end-to-end checks, and untested paths.