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

# Mistral

> Configure hyperlocalise to use Mistral's OpenAI-compatible API.

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

## Config example

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

## Required environment variable

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

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

## Optional environment variable

`MISTRAL_BASE_URL` defaults to `https://api.mistral.ai/v1`.
