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

# Vercel AI Gateway

> Configure Vercel AI Gateway as an LLM provider for translation generation.

## Provider value

Use `ai_gateway` in `llm.profiles.<name>.provider`.

## Model IDs

`model` is passed through to Vercel AI Gateway unchanged, for example
`openai/gpt-5.6-luna`, `anthropic/claude-opus-5`, or
`google/gemini-2.5-flash`. Hyperlocalise does not maintain its own catalogue of
Gateway models; any model ID your Gateway account can access will work.

## Example profile

```json theme={null}
{
  "llm": {
    "profiles": {
      "default": {
        "provider": "ai_gateway",
        "model": "openai/gpt-5.6-luna",
        "prompt": "Translate from {{source}} to {{target}}:\n\n{{input}}"
      }
    }
  }
}
```

## Required environment variable

<CodeGroup>
  ```bash Export theme={null}
  export AI_GATEWAY_API_KEY="your-ai-gateway-api-key"
  ```

  ```bash .env.local theme={null}
  AI_GATEWAY_API_KEY="your-ai-gateway-api-key"
  ```
</CodeGroup>

Create a key in the [AI Gateway API Keys](https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai-gateway%2Fapi-keys\&title=AI+Gateway+API+Keys) page.

## Optional environment variable

`AI_GATEWAY_BASE_URL` defaults to `https://ai-gateway.vercel.sh/v1`.

## Authentication

The CLI sends `Authorization: Bearer $AI_GATEWAY_API_KEY`. It does not use
Vercel OIDC tokens.
