First, log into the Mistral AI console (https://console.mistral.ai/) and select API Keys.
Next, create a new key and place it into your configuration file.
For example:
"Mistral Medium with Streaming": { provider: "mistral", model: "mistral-medium", stream: true, apiKey: "......" }