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
retriesint0Number of retries to attempt before raising a ModelProviderError
delay_between_retriesint1Delay between retries, in seconds
exponential_backoffboolFalseIf True, the delay between retries is doubled each time
Mistral extends the OpenAI-compatible interface and supports most parameters from OpenAI.