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.
index.ts
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: [] });}More models by OpenAI
| Model |
|---|