# OpenAI format

`GET /v1/realtime`

Opens a WebSocket connection for realtime conversation.

**Note**: this is a WebSocket endpoint — connect with the WebSocket protocol.

Example connection URL: `wss://api.example.com/v1/realtime?model=gpt-4o-realtime`

## Authorizations

Bearer authentication — send `Authorization: Bearer <token>`.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `model` | query | string | no | Model to use |

## Responses

### 101 — WebSocket protocol switch

### 400 — Bad request

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "message": {
          "type": "string",
          "description": "Error message"
        },
        "type": {
          "type": "string",
          "description": "Error type"
        },
        "param": {
          "type": "string",
          "description": "Related parameter",
          "nullable": true
        },
        "code": {
          "type": "string",
          "description": "Error code",
          "nullable": true
        }
      }
    }
  }
}
```
