Skip to main content
The Mistral model provides access to Mistral’s language models.

Parameters

ParameterTypeDefaultDescription
idstr"mistral-large-latest"The id of the Mistral model to use
namestr"Mistral"The name of the model
providerstr"Mistral"The provider of the model
api_keyOptional[str]NoneThe API key for Mistral (defaults to MISTRAL_API_KEY env var)
base_urlstr"https://api.mistral.ai/v1"The base URL for the Mistral API
Mistral extends the OpenAI-compatible interface and supports most parameters from OpenAI.
I