GPT-Live 1
Our premier model for natural, expressive voice conversations with smooth interruption handling. Your use is subject to OpenAI's Terms & Privacy Policies.
- Price
- $3.00, Per session hour
import { createOpenAI } from '@ai-sdk/openai';import WebSocket from 'ws';
// Server-side setup using @ai-sdk/openai 4.0.67 or later.const apiKey = process.env.AI_GATEWAY_API_KEY;if (!apiKey) throw new Error('Set AI_GATEWAY_API_KEY');
const live = createOpenAI({ apiKey, baseURL: 'https://ai-gateway.vercel.sh/v1',}).experimental_realtime('openai/gpt-live-1', { api: 'live' });
const { url, headers } = live.getServerWebSocketConfig();const ws = new WebSocket(url, { headers });
ws.on('open', () => { ws.send(JSON.stringify(live.serializeClientEvent({ type: 'session-start', config: { providerOptions: { openai: { store: false, delegation: { type: 'client' } }, }, }, })));});
// Wait for session.started before streaming paced PCM audio.// Complete audio/close example: vercel.com/docs/ai-gateway/modalities/realtime/gpt-liveCopy link to headingPlayground
Try out GPT-Live 1 by OpenAI. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.
Live Conversation
Talk to GPT-Live 1 with your microphone and hear its replies while transcripts stream.
Live sessions use AI Gateway credits while connected, including silence and time spent muted. Stop the session to end usage.
Disconnected
Conversation Transcript
Copy link to headingProviders
Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.
| Provider |
|---|