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 model:
| OpenAIRealtimeModels
| string & object;

The model to use for the connection.


optional url: string;

The URL to use for the connection.