# Mistral AI

The `mistral` provider allows you to use [Mistral AI Models](https://mistral.ai/technology/#models) using the [Mistral API](https://docs.mistral.ai/).

```js
script({ model: "mistral:mistral-large-latest" });
```

1. Sign up for a [Mistral AI account](https://mistral.ai/) and obtain an API key from their [console](https://console.mistral.ai/).

2. Add your Mistral AI API key to the `.env` file:

   .env

   ```txt
   MISTRAL_API_KEY=...
   ```

3. Update your script to use the `model` you choose.

   ```js
   script({
       ...
       model: "mistral:mistral-large-latest",
   })
   ```

### Aliases

The following model aliases are attempted by default in GenAIScript.

| Alias  | Model identifier     |
| ------ | -------------------- |
| large  | mistral-large-latest |
| small  | mistral-small-latest |
| vision | pixtral-large-latest |

### Limitations

* Ignore prediction of output tokens