Skip to content

Mistral AI

The mistral provider allows you to use Mistral AI Models using the Mistral API.

script({ model: "mistral:mistral-large-latest" })
  1. Sign up for a Mistral AI account and obtain an API key from their console.

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

    .env
    MISTRAL_API_KEY=...
  3. Update your script to use the model you choose.

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

Aliases

The following model aliases are attempted by default in GenAIScript.

AliasModel identifier
largemistral-large-latest
smallmistral-small-latest
visionpixtral-large-latest

Limitations

  • Ignore prediction of output tokens