damngoodprompts

Mistral

Prompting Mistral

How to prompt Mistral models across Vibe, Studio/API, open-weight variants, coding, OCR, and agentic workflows.

Last reviewed: September 14, 2026Official docswebapilocalopen-weightcoding-agententerprise
Tip

What this model is particularly good at:

  • Broad model lineup spanning frontier multimodal, efficient hybrid, OCR, audio, moderation, code, and open-weight models
  • Useful European/commercial alternative with strong API docs and a first-party prompting guide
  • Clear distinction between Vibe product behavior and Studio/API model selection

Current model routing

ModelStatusBest fitAPI ID
Mistral Medium 3.5defaultFrontier-class multimodal work optimized for agentic and coding use casesVaries by surface
Mistral Small 4currentEfficient hybrid instruct, reasoning, and coding in one modelVaries by surface
Mistral Large 3currentOpen-weight general-purpose multimodal deploymentVaries by surface
Ministral 3 (14B / 8B / 3B)open-weightSmall open-weight text and vision models (Apache 2.0) for local and edge deploymentVaries by surface
Mistral OCR 4.1specializedDocument intelligence and OCR workflowsVaries by surface
Codestral / Leanstral / VoxtralspecializedCode completion, formal proof work, transcription, and voice tasksVaries by surface

Which model to choose

Use Mistral Medium 3.5 for the strongest general Mistral work, especially agentic and coding tasks. Use Mistral Small 4 when you want an efficient hybrid model that unifies instruct, reasoning, and coding. Use Mistral Large 3 when open-weight deployment matters. Route OCR, audio, code completion, and formal proof work to the specialized model families instead of trying to make one chat prompt do every job.

Prompting in Vibe

In Mistral’s GUI, prompt the workflow, not just the model. Le Chat is now Vibe, a single product with three modes: Vibe Work for multi-step productivity and agentic work across apps and tools, Vibe Code for developer coding (CLI, VS Code extension, and web), and Vibe Chat for turn-based conversation. Pick the mode that matches the job.

Use concise instructions, define the output format, and give examples only where they remove ambiguity. If the product exposes work/code modes or connectors, use those controls rather than describing them indirectly in prose.

Prompting through the API

Mistral’s prompting docs preserve the classic separation between system and user prompts: use the system prompt for durable behavior and the user prompt for the actual request. The model overview should drive model routing before prompt tuning starts.

For document/OCR workflows, send the document through the document/OCR product surface when available rather than pasting lossy OCR text into a general chat prompt.

Current prompting guidance

  • Set system-level behavior separately from the user task.
  • Choose the model family by task: general, code, OCR, audio, moderation, or formal proof.
  • Keep prompts clear and direct.
  • Use examples for classification or formatting boundaries.
  • For open-weight Mistral deployments, verify the exact model card and chat template.

Examples

GUI prompt:

Review this product spec and identify which requirements should be handled by OCR,
which by a general reasoning model, and which need human review. Keep the result as
a three-column table.

API request skeleton:

{
  "model": "mistral-medium-3.5",
  "messages": [
    {
      "role": "system",
      "content": "You are a concise contract-review assistant. Flag only concrete obligations, deadlines, and risks."
    },
    {
      "role": "user",
      "content": "Extract the obligations from this contract excerpt and return a table with owner, obligation, deadline, and source sentence.\n\n{{contract_excerpt}}"
    }
  ]
}

Prompt upgrade example:

Stale pattern: “Use the biggest Mistral model and solve everything in one response.”

Better pattern: “Route OCR, coding, and audio to the matching Mistral model or product surface before tuning the prompt.”

Source set