gpt-realtime-2
gpt-realtime-2 is OpenAI's most capable realtime voice model, bringing configurable reasoning effort, stronger instruction following, and more reliable tool use to speech-to-speech voice agents.
import { gateway } from '@ai-sdk/gateway';
export async function POST() { const { token, url } = await gateway.experimental_realtime.getToken({ model: 'openai/gpt-realtime-2', });
return Response.json({ token, url, tools: [] });}Frequently Asked Questions
What reasoning effort levels does gpt-realtime-2 support?
Levels range from minimal to xhigh, with low as the default. Higher effort improves reasoning quality on complex turns and increases latency and output token usage, so start low for most production voice agents.
How do I access gpt-realtime-2 through AI Gateway?
Realtime support is in beta through AI SDK 7. Mint a short-lived token on your server with the AI SDK's gateway provider, then connect from the browser with the AI SDK's realtime hook over WebSocket. Your AI Gateway API key never reaches the client.
What happens when a caller interrupts gpt-realtime-2 mid-response?
gpt-realtime-2 discards the current chain of thought and starts a new turn. Interruption handling is part of the conversation mechanics, alongside preambles and recovery from failed tool calls.
How does gpt-realtime-2 differ from gpt-realtime-1.5?
gpt-realtime-2 is the more capable successor, adding configurable reasoning effort, stronger instruction following, and more reliable tool use. GPT-Realtime-1.5 remains a strong flagship option for standard voice agents where latency is the priority.
How is gpt-realtime-2 priced?
Pricing is listed on this page. Rates reflect the providers routing through AI Gateway and update when providers change list prices.
Does gpt-realtime-2 support zero data retention through AI Gateway?
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.
What are typical latency characteristics?
This page shows live performance metrics measured across real AI Gateway traffic. Higher reasoning effort settings add thinking time before responses.