> Documentation index: https://firebase.google.com/docs/reference/js/llms.txt

Options for initializing the AI service using [getAI()](https://firebase.google.com/docs/reference/js/ai.md.txt#getai_a94a413). This allows specifying which backend to use (Gemini Developer API or Agent Platform Gemini API) and configuring its specific options (like location for Agent Platform).

**Signature:**

```typescript
export interface AIOptions 
```

## Properties

| Property | Type | Description |
|---|---|---|
| [backend](https://firebase.google.com/docs/reference/js/ai.aioptions.md.txt#aioptionsbackend) | [Backend](https://firebase.google.com/docs/reference/js/ai.backend.md.txt#backend_class) | The backend configuration to use for the AI service instance. Defaults to the Gemini Developer API backend ([GoogleAIBackend](https://firebase.google.com/docs/reference/js/ai.googleaibackend.md.txt#googleaibackend_class)). |
| [useLimitedUseAppCheckTokens](https://firebase.google.com/docs/reference/js/ai.aioptions.md.txt#aioptionsuselimiteduseappchecktokens) | boolean | Whether to use App Check limited use tokens. Defaults to false. This option is applied when the [AI](https://firebase.google.com/docs/reference/js/ai.ai.md.txt#ai_interface) instance for the given app and backend is first created by [getAI()](https://firebase.google.com/docs/reference/js/ai.md.txt#getai_a94a413), and cannot be changed by later `getAI()` calls. |

## AIOptions.backend

The backend configuration to use for the AI service instance. Defaults to the Gemini Developer API backend ([GoogleAIBackend](https://firebase.google.com/docs/reference/js/ai.googleaibackend.md.txt#googleaibackend_class)).

**Signature:**

```typescript
backend?: Backend;
```

## AIOptions.useLimitedUseAppCheckTokens

Whether to use App Check limited use tokens. Defaults to false. This option is applied when the [AI](https://firebase.google.com/docs/reference/js/ai.ai.md.txt#ai_interface) instance for the given app and backend is first created by [getAI()](https://firebase.google.com/docs/reference/js/ai.md.txt#getai_a94a413), and cannot be changed by later `getAI()` calls.

**Signature:**

```typescript
useLimitedUseAppCheckTokens?: boolean;
```