Skip to content

OpenAI format

GET
/v1/realtime
curl --request GET \
--url 'https://api.mirapi.ai/v1/realtime?model=gpt-4o-realtime-preview' \
--header 'Authorization: Bearer <token>'

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

model
string
Example
gpt-4o-realtime-preview

Model to use

WebSocket protocol switch

Bad request

Media typeapplication/json
object
error
object
message

Error message

string
type

Error type

string
param

Related parameter

string
nullable
code

Error code

string
nullable
Examplegenerated
{
"error": {
"message": "example",
"type": "example",
"param": "example",
"code": "example"
}
}