How to Use Mistral Small 3.1 24B Instruct in Claude Code
Mistral Small 3.1 24B Instruct suits document summaries, coding help, and tool-driven assistants. Compared with Mistral Small 3, it adds image understanding and extends context to 128k tokens.
Prompts to try with Mistral Small 3.1 24B Instruct in Claude Code
Copy an example into Claude Code, or ask in your own words.
Use Mistral Small 3.1 24B Instruct to review the current diff against the requirements in this repository. Report likely defects with the file, function, triggering input, and a suggested test.
Use Mistral Small 3.1 24B Instruct at temperature 0.15 to extract requirements from the project's design documents. Return JSON with requirement, source path, supporting excerpt, and unresolved question.
Use Mistral Small 3.1 24B Instruct to inspect the parser and its existing tests. Propose cases for empty input, malformed input, and boundary values, explaining the expected behavior from the code.
Use Mistral Small 3.1 24B Instruct to draft French and German versions of the English interface strings in this project. Preserve interpolation tokens and product names, and list phrases that need human review.
Use Mistral Small 3.1 24B Instruct to trace how a request reaches the database in this repository. Give an ordered list of functions and identify where validation and error handling occur.
How to set up Mistral Small 3.1 24B Instruct in Claude Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
This adds Spiral to the current project. Add --scope user to use it in every project.
claude mcp add --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.
Use the Spiral skill
- Send Claude Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Mistral Small 3.1 24B Instruct
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "openrouter", "model": "mistralai/mistral-small-3.1-24b-instruct", "input": { "messages": [ { "role": "system" } ] } }'
Then paste one of the prompts above: Claude Code finds Mistral Small 3.1 24B Instruct on Spiral, shows the price and runs it.
Mistral Small 3.1 24B Instruct providers and prices
Spiral runs Mistral Small 3.1 24B Instruct through OpenRouter. Open a card for today's price, with every fee included.
Up to $0.002972 per run at the default inputs. $0.4563 per 1M input tokens, $0.7215 per 1M output tokens.
Settings you can ask for
Ask Claude Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Seed | a whole number | ||
| Min p | 0 to 1 | ||
| Top k | a whole number from 0 | ||
| Top p | 0 to 1 | ||
| Logprobs | on or off | ||
| Max tokens | 1 to 102400 | The most output tokens to generate. | |
| Temperature | 0 to 2 | ||
| Top logprobs | 0 to 20 | ||
| Presence penalty | -2 to 2 | ||
| Frequency penalty | -2 to 2 | ||
| Repetition penalty | 0 to 2 |
Every API field of Mistral: Mistral Small 3.1 24B is on its tool page: open its card above.
What can you do with Mistral Small 3.1 24B Instruct in Claude Code?
Turn project code and technical documents into review notes, test ideas, and implementation explanations with Mistral Small 3.1. Give the agent a bounded task and a concrete output format so you can check the result against the project.
Technical document briefs
Turn a technical specification into requirements, unresolved questions, and decisions. Ask for a supporting excerpt beside each finding.
Code review preparation
Review a proposed patch against its requirements and identify edge cases to test. Request a short explanation tied to the relevant function.
Structured request extraction
Convert customer messages into JSON containing the request, relevant dates, and missing information. Require null for details the message does not provide.
Multilingual support drafts
Draft responses in English, French, German, or Japanese using supplied support guidance. Preserve product names and flag questions the guidance cannot answer.
Daily operations summaries
Summarize incoming status updates into blockers, decisions, and next actions. Carry over the original record IDs so each item can be checked.
Tool-assisted support lookup
Use function calling to request relevant support records, then draft an answer from the returned information. Ask for clarification when the lookup needs missing details.
Math solution review
Review a supplied calculation, explain the method, and identify assumptions or inconsistent units. Use a calculator or tests to verify the final numbers.
More on Mistral Small 3.1 24B Instruct and Claude Code
Overview
Mistral Small 3.1 24B Instruct in other agents
Questions about Mistral Small 3.1 24B Instruct in Claude Code
Can Claude Code use Mistral Small 3.1 24B Instruct?
Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Mistral Small 3.1 24B Instruct like any built-in tool.
How much does Mistral Small 3.1 24B Instruct cost in Claude Code?
Up to $0.002972 per run at the default inputs. $0.4563 per 1M input tokens, $0.7215 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.
Do I need an OpenRouter account to use Mistral Small 3.1 24B Instruct in Claude Code?
No. Spiral runs Mistral Small 3.1 24B Instruct on its own OpenRouter account. You sign in to Spiral once and never paste a key.
How long does it take to set up Mistral Small 3.1 24B Instruct in Claude Code?
About two minutes: add the hosted server, then sign in.
Does Claude Code wait while Mistral Small 3.1 24B Instruct runs?
Mistral Small 3.1 24B Instruct runs in the background. Claude Code starts the run, checks on it and gives you the text, json when it's ready.
What is Mistral Small 3.1 good at?
Use it for document summaries, coding assistance, mathematical reasoning, and conversational tasks. A useful starting task is turning a long technical document into decisions, open questions, and supporting excerpts.
How much context can Mistral Small 3.1 handle?
Mistral documents a context window of up to 128k tokens. Treat that as context capacity, rather than a promised answer length; ask for a focused result from the material you supply.
Which languages does Mistral Small 3.1 support?
Mistral lists dozens, including English, French, German, Greek, Hindi, Indonesian, Italian, and Japanese. Specify the response language and identify terms that should stay untranslated.
What temperature should I use with Mistral Small 3.1?
Mistral recommends a relatively low temperature, such as 0.15. Start there for extraction, classification, and other tasks with a defined answer format.
Can Mistral Small 3.1 return JSON and call functions?
Yes. Mistral lists native function calling and JSON output as capabilities; for extraction tasks, explicitly request JSON and describe the structure you want.
Start using Mistral Small 3.1 24B Instruct in Claude Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Claude Code:
set up https://spiral.ai/SKILL.md


