openapi: 3.0.0 info: title: OpenAI Assistants Realtime API description: The Assistants API allows you to build AI assistants within your own applications. An Assistant has instructions and can leverage models, tools, and knowledge to respond to user queries. The Assistants API currently supports three types of tools - Code Interpreter, Retrieval, and Function calling. In the future, we plan to release more OpenAI-built tools, and allow you to provide your own tools on our platform. version: 2.0.0 termsOfService: https://openai.com/policies/terms-of-use contact: name: OpenAI Support url: https://help.openai.com/ license: name: MIT url: https://github.com/openai/openai-openapi/blob/master/LICENSE servers: - url: https://api.openai.com/v1 security: - ApiKeyAuth: [] tags: - name: Realtime paths: /realtime/calls: post: summary: 'Create a new Realtime API call over WebRTC and receive the SDP answer needed to complete the peer connection.' operationId: create-realtime-call tags: - Realtime requestBody: required: true content: multipart/form-data: schema: $ref: '#/components/schemas/RealtimeCallCreateRequest' encoding: sdp: contentType: application/sdp session: contentType: application/json application/sdp: schema: type: string description: 'WebRTC SDP offer. Use this variant when you have previously created an ephemeral **session token** and are authenticating the request with it. Realtime session parameters will be retrieved from the session token.' responses: '201': description: Realtime call created successfully. headers: Location: description: Relative URL containing the call ID for subsequent control requests. schema: type: string content: application/sdp: schema: type: string description: SDP answer produced by OpenAI for the peer connection. x-oaiMeta: name: Create call group: realtime returns: 'Returns `201 Created` with the SDP answer in the response body. The `Location` response header includes the call ID for follow-up requests, e.g., establishing a monitoring WebSocket or hanging up the call.' examples: request: curl: "curl -X POST https://api.openai.com/v1/realtime/calls \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -F \"sdp=