# GoogleAI

Type: `conversation.googleai`

Status: alpha

Reference: https://docs.dapr.io/reference/components-reference/supported-conversation/googleai/

## Example

```
apiVersion: cra.diagrid.io/v1beta1
kind: Component
metadata:
  name: <name>
spec:
  type: conversation.googleai
  version: v1
  metadata:
    # API key for GoogleAI.
    - name: key
      value: | 
        **********
    # A time-to-live value for a prompt cache to expire. Uses Golang durations (Optional)
    #- name: cacheTTL
    #  value: "10m"
    # The GoogleAI LLM to use. Configurable via GOOGLEAI_MODEL environment variable. (Optional)
    #- name: model
    #  value: "gemini-2.5-flash-lite"

```

## Authentication profiles

Available authentication profiles:

- API Key

### API Key

Authenticate using an API key

#### `key` (string)

**Required** - API key for GoogleAI.

Example value:

```
**********
```

## Metadata

### `cacheTTL` (string)

A time-to-live value for a prompt cache to expire. Uses Golang durations

Example value: `10m`

### `model` (string)

The GoogleAI LLM to use. Configurable via GOOGLEAI\_MODEL environment variable.

Default value: `gemini-2.5-flash-lite`

Example value: `gemini-2.5-flash-lite`
