Mistral

Mistral and Magistral models on the chat-completions wire.

let model = MistralModel("mistral-medium-3.5")

Key from MISTRAL_API_KEY; base URL https://api.mistral.ai/v1.

Features

  • Rides the shared chat-completions wire: tools, structured output, and vision are encoded for any model that honors them.

Models

The reasoning parameter maps to reasoning_effort only on the models that accept it — mistral-small-latest, mistral-small-2603, mistral-medium-3, and mistral-medium-3.5. The knob is binary upstream: .none sends none, every other level sends high. Other model ids ignore the parameter rather than erroring.

Current lineup

As of July 2026, newest first:

ModelNotes
mistral-medium-3.5Newest (April 2026), reasoning knob
mistral-large-3December 2025 flagship
devstral-2, devstral-small-2Code models
ministral-14b, ministral-8b, ministral-3bEdge tier
magistral-medium, magistral-smallReasoning line
pixtral-large, pixtral-12bVision
codestral, codestral-embed, mistral-embedCode and embeddings