Mistral is the model family from Mistral AI, a French AI lab, spanning the flagship Mistral Large through the open-weight Mixtral mixture-of-experts models. It ranks #11 in usage share at roughly 10.4%. Mistral is known for efficient, strong-performing models available both as open weights and as an API, and is especially popular in Europe for data-sovereignty-conscious deployments where data needs to legally stay within the EU.
Call the Mistral API directly with the official mistralai Python package.
from mistralai import Mistral
client = Mistral(api_key="YOUR_API_KEY")
response = client.chat.complete(
model="mistral-large-latest",
messages=[{"role": "user", "content": "Translate 'good morning' into French, German, and Spanish."}]
)
print(response.choices[0].message.content)
Sign up on La Plateforme (Mistral's developer console) for an API key, or skip the API entirely and self-host an open Mixtral model with Ollama.
# 1. sign up at console.mistral.ai for an API key
# 2. install the SDK
pip install mistralai
# 3. or self-host the open-weight model instead
ollama run mixtral