Skip to content

RealtimeSessionConnectOptions

type RealtimeSessionConnectOptions = object;
apiKey: string | (() => string | Promise<string>);

The API key to use for the connection. Pass a function to lazily load the API key. Overrides default client options.


optional callId?: string;

The call ID to attach to when connecting to a SIP-initiated session.


optional model?:
| OpenAIRealtimeModels
| string & object;

The model to use for the connection.


optional url?: string;

The URL to use for the connection.