> ## Documentation Index
> Fetch the complete documentation index at: https://hyperlocalise.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Gemini

> Cấu hình Gemini làm nhà cung cấp LLM để tạo bản dịch.

## Giá trị của nhà cung cấp

Sử dụng `gemini` trong `llm.profiles.<name>.provider`.

## Ví dụ hồ sơ

```json theme={null}
{
  "llm": {
    "profiles": {
      "default": {
        "provider": "gemini",
        "model": "gemini-2.5-flash",
        "prompt": "Translate from {{source}} to {{target}}:\n\n{{input}}"
      }
    }
  }
}
```

## Biến môi trường bắt buộc

<CodeGroup>
  ```bash Export theme={null}
  export GEMINI_API_KEY="your-gemini-api-key"
  ```

  ```bash .env.local theme={null}
  GEMINI_API_KEY="your-gemini-api-key"
  ```
</CodeGroup>

## Biến môi trường tùy chọn

`GEMINI_BASE_URL` mặc định là `https://generativelanguage.googleapis.com/v1beta/openai`.
