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

  1. Configure Mistral SDK in TypeScript or Python.
  2. Execute identical coding prompts against Mistral Small and Codestral.
  3. 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

Knowledge check

Make it stick.

Pass at 80%

Choose the strongest answer for each question. Your attempts become part of your account transcript.

01What special capability does Codestral support for IDE code completion?