
## GoogleAiModel(name) {#string}

Initializes a new instance of [GoogleAiModel](../) class.



```js
GoogleAiModel(name: string)
```

| Parameter | Type | Description |
| --- | --- | --- |
| name | string | The name of the model. For example, gemini-2.5-flash. |

## GoogleAiModel(name, apiKey) {#string_string}

Initializes a new instance of [GoogleAiModel](../) class.



```js
GoogleAiModel(name: string, apiKey: string)
```

| Parameter | Type | Description |
| --- | --- | --- |
| name | string | The name of the model. For example, gemini-2.5-flash. |
| apiKey | string | The API key to use the Gemini API. Please refer to https://ai.google.dev/gemini-api/docs/api-key for details. |

## See Also

* module [Aspose.Words.AI](../../)
* class [GoogleAiModel](../)

