Module 1 of 3 · 40 min
Navigate the Mistral Ecosystem & Model Family
Explore Mistral Small, Mistral Large, Codestral, Pixtral, Ministral, and open-weight Apache-2.0 distributions.
Core concept
By the end
You will be able to
- Map the Mistral model family across commercial endpoints (La Plateforme) and open weights.
- Understand sliding window attention (SWA) and byte-fallback BPE tokenizers.
- Select the right model shape: Ministral for edge, Codestral for IDEs, Mistral Large for reasoning.
01
The European Frontier: Open Weights & Hosted Endpoints
Mistral AI provides both open-weight models (under Apache 2.0 or Mistral Non-Commercial licenses) and commercial cloud APIs via La Plateforme.
Key models include Mistral Large (flagship reasoning), Codestral (specialized 80+ programming language support with Fill-in-the-Middle), and Pixtral (multimodal vision reasoning).
Mistral Client Initialization
python
from mistralai import Mistral
import os
client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])
response = client.chat.complete(
model="mistral-large-latest",
messages=[{"role": "user", "content": "Explain sliding window attention."}]
)
print(response.choices[0].message.content)Practice activity
Initialize Mistral Client and Compare Model Outputs
- Configure Mistral SDK in TypeScript or Python.
- Execute identical coding prompts against Mistral Small and Codestral.
- Evaluate token generation latency and code accuracy.
What to produce
- Execution benchmark comparing Codestral vs Mistral Small output.
Reflect before continuing
When is a domain-specialized code model like Codestral preferred over a general flagship model?
Evidence
Sources and verification
- Mistral AI Official Documentation & Model CatalogueMistral AI · verified 2026-08-22
Knowledge check
Make it stick.
Choose the strongest answer for each question. Your attempts become part of your account transcript.