Skip to main content
Send these JSON events as text frames on the Realtime WebSocket. Field names and shapes follow the OpenAI Realtime GA protocol. Each event has a type field and may include an optional event_id.

Session

Input audio buffer

Conversation items

Add a user text message:
Return a function result:

Responses

Out-of-band responses (response.create with conversation: "none") are not supported yet.

Ordering

  • Send session.update before the first input_audio_buffer.append.
  • Send response.create after you add a function result. With server_vad, the server also starts replies on its own when the user stops speaking.
  • In manual turn mode, send input_audio_buffer.commit and then response.create for each turn.