Lesson 90 of 1455
Mistral Codestral 25 — code-specific model
Codestral 25 is Mistral's dedicated coding model. Small, fast, and cheap enough to run as an inline autocomplete.
Builders · Model Families · ~14 min read
Built for IDEs, not chats
Codestral 25 supports fill-in-the-middle (FIM) out of the box and is priced to run on every keystroke of a paying developer. That is a different class of tool than a chat assistant.
- Native FIM API for inline completions
- 80+ languages at usable quality
- Available via Mistral API and self-hosted
- Continue, Tabby, and Zed integrations ship with it as an option
Compare the options
| Feature | Codestral 25 | Claude Sonnet 4.6 |
|---|---|---|
| FIM support | Native | Workaround |
| Latency per completion | <500ms | 1-2s |
| Cost per M tokens | Very low | Moderate |
| Best fit | Inline completion | Chat + agent |
FIM endpoint takes a prefix and suffix; the model fills the gap.
resp = client.fim.complete( model="codestral-latest", prompt="def parse_csv(path):\n ", suffix="\n return rows", )Pair it, do not replace Claude
Codestral 25 excels at completions; it underperforms chat-tier models on multi-step refactors and natural-language explanations. Use it for inline suggestions and route chat to Sonnet or GPT-5.
Key terms in this lesson
End-of-lesson quiz
Check what stuck
8 questions · Score saves to your progress.
Lesson help
Questions are best handled with a grown-up here.
For this age range, Tendril keeps freeform AI chat paused until parent/guardian consent and child-safe moderation are fully verified. Use the quiz, notes, and related lessons below, or ask a parent, guardian, teacher, or librarian to work through the question with you.
Progress saved locally in this browser. Sign in to sync across devices.
Related lessons
Keep going
Builders · 25 min
Claude Opus 4.7 vs. Sonnet 4.6 — which Claude to pick
Opus is the flagship, Sonnet is the workhorse. Here is the five-minute decision tree for when to pay 2x more for Opus and when Sonnet handles it.
Builders · 30 min
GPT-5.5 vs. Claude Opus 4.7 — which chatbot wins your day
Two frontier models, same subscription price, very different personalities. Pick by vibe, not by benchmark — here is how to figure out which one clicks for you.
Builders · 28 min
Gemini 2.5 Pro — how a 1M context actually helps
Everyone brags about million-token windows. Here is what you can actually do with one when you learn how Gemini 2.5 Pro handles long documents.
