- Symptom
- Voice agent built on the Realtime beta fails to open a sessionModel gpt-4o-realtime-preview no longer accepted
- Cause
- The Realtime API beta interface, selected with the OpenAI-Beta: realtime=v1 header, shut down on 2026-05-12, and the gpt-4o realtime and audio preview models were retired on 2026-05-07.
- Fix
- Remove the beta header, move to a GA realtime model, and retest every client event your code sends and handles against the GA reference.
- Apply
const ws = new WebSocket('wss://api.openai.com/v1/realtime?model=gpt-realtime-2.1', { headers: { Authorization: `Bearer ${process.env.OPENAI_API_KEY}` }, // no OpenAI-Beta header });- Affected
- OpenAI Realtime API beta, shut down 2026-05-12; preview realtime and audio models retired 2026-05-07
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders