## OpenAiModel(name, apiKey) {#string_string} Initializes a new instance of [OpenAiModel](../) class. ```js OpenAiModel(name: string, apiKey: string) ``` | Parameter | Type | Description | | --- | ......| string | The name of the model. For example, gpt-5.2-chat-latest...| string | The name of the model. For example, gpt-5.2-chat-latest...