Prompt Buddy logoPrompt Buddy

openai · OpenAI Platform Docs

Realtime API with WebSocket | OpenAI API

Implementation guide for establishing and managing low-latency, bidirectional audio and text communication using the OpenAI Realtime API via WebSockets.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Realtime API with WebSocket | OpenAI API

Implementation guide for establishing and managing low-latency, bidirectional audio and text communication using the OpenAI Realtime API via WebSockets.

When To Use

Use when implementing real-time, low-latency voice or text interactions that require a persistent bidirectional connection between a client and the OpenAI Realtime API.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/realtime-api-with-websocket-openai-workflow-guide.mdA guide explaining how to connect to the OpenAI Realtime API using WebSockets for server-to-server applications.Questions about a guide explaining how to connect to the OpenAI Realtime API using WebSockets for server-to-server applications.
examples/realtime-api-with-websocket-openai-openai-realtime-api-websocket-javascr.textA JavaScript code snippet demonstrating how to establish a WebSocket connection to the OpenAI Realtime API using a specific model and authorization headers.Exact payloads, commands, or snippets shown in A JavaScript code snippet demonstrating how to establish a WebSocket connection to the OpenAI Realtime API using a sp...
examples/realtime-api-with-websocket-openai-openai-realtime-api-websocket-python-.textA Python script using the websocket-client library to establish a connection to the OpenAI Realtime API via WebSocket.Exact payloads, commands, or snippets shown in A Python script using the websocket-client library to establish a connection to the OpenAI Realtime API via WebSocket.
examples/realtime-api-with-websocket-openai-openai-realtime-api-websocket-deno-cl.textA JavaScript code example demonstrating how to establish a WebSocket connection to the OpenAI Realtime API in browser-like environments such as Deno or Cloudflare Workers.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to establish a WebSocket connection to the OpenAI Realtime API in browser...
examples/realtime-api-with-websocket-openai-openai-realtime-api-websocket-javascr-2.textA JavaScript code snippet demonstrating how to establish a WebSocket connection to the OpenAI Realtime API using a specific model and authorization headers.Exact payloads, commands, or snippets shown in A JavaScript code snippet demonstrating how to establish a WebSocket connection to the OpenAI Realtime API using a sp...

What This Skill Covers

  • WebSockets are a broadly supported API for realtime data transfer, and a great choice for connecting to the OpenAI Realtime API in server-to-server applicati...
  • Main sections: Connect via WebSocket, Sending and receiving events.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.openai.com/api/docs/guides/realtime-websockets