How to Use MiniMax M2.5 in Claude Code
MiniMax M2.5 handles code changes, research with tools, and office drafts. Compared with MiniMax M2.1, it plans features, structure, and UI design more explicitly before writing code.
Prompts to try with MiniMax M2.5 in Claude Code
Copy an example into Claude Code, or ask in your own words.
Use MiniMax M2.5 to investigate the failing tests in this repository. Reproduce one failure, explain its cause, make a focused fix, and rerun the relevant tests.
Use MiniMax M2.5 to add cursor-based pagination to this project's existing list endpoint. First write a short specification covering ordering, empty results, and invalid cursors; then implement it with tests.
Use MiniMax M2.5 to review the current diff. Report correctness bugs and missing regression tests, with a file location and a concrete failure example for each finding.
Use MiniMax M2.5 to port this project's Python CSV validation utility to Go. Preserve its behavior, add equivalent tests, and document any difference in error handling.
Use MiniMax M2.5 to inspect this TypeScript project's request validation. Propose a small plan, implement the highest-priority missing checks, and test malformed input and boundary values.
How to set up MiniMax M2.5 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 MiniMax M2.5
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": "minimax/minimax-m2.5", "input": { "messages": [ { "role": "system" } ] } }'
Then paste one of the prompts above: Claude Code finds MiniMax M2.5 on Spiral, shows the price and runs it.
MiniMax M2.5 providers and prices
Spiral runs MiniMax M2.5 through OpenRouter. Open a card for today's price, with every fee included.
Up to $0.040482 per run at the default inputs. $0.351 per 1M input tokens, $1.235 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 32768 | 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 MiniMax: MiniMax M2.5 is on its tool page: open its card above.
What can you do with MiniMax M2.5 in Claude Code?
MiniMax M2.5 can turn a project issue into a plan, code change, and test run. Give it the relevant files, expected behavior, and acceptance criteria.
Fix a reproducible bug
Supply the failing behavior, relevant code, and test output. Ask for a cause, a focused patch, and a regression test.
Turn a feature request into a specification
Define expected behavior, edge cases, interfaces, and acceptance tests before requesting implementation.
Review a code change
Review a diff for correctness and missing tests. Request a concrete failure scenario for each finding.
Port code between languages
Translate a Python utility into Go or TypeScript while preserving behavior. Include examples and tests to check the result.
Build a sourced research brief
Use available search tools to investigate a narrow question, compare primary sources, and separate findings from unresolved claims.
Draft spreadsheet formulas
Describe the columns and calculation rules. Request Excel formulas, assumptions, and sample cases with expected results.
Prepare presentation content
Turn supplied evidence into a PowerPoint outline with slide titles, supporting points, speaker notes, and source references.
Draft a structured report
Provide source text and a required outline. Request a Word-ready draft with headings, evidence, recommendations, and open questions.
More on MiniMax M2.5 and Claude Code
Overview
MiniMax M2.5 in other agents
More Claude Code guides
Questions about MiniMax M2.5 in Claude Code
Can Claude Code use MiniMax M2.5?
Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run MiniMax M2.5 like any built-in tool.
How much does MiniMax M2.5 cost in Claude Code?
Up to $0.005072 per run at the default inputs. $0.351 per 1M input tokens, $1.235 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 MiniMax M2.5 in Claude Code?
No. Spiral runs MiniMax M2.5 on its own OpenRouter account. You sign in to Spiral once and never paste a key.
How long does it take to set up MiniMax M2.5 in Claude Code?
About two minutes: add the hosted server, then sign in.
Does Claude Code wait while MiniMax M2.5 runs?
MiniMax M2.5 runs in the background. Claude Code starts the run, checks on it and gives you the text, json when it's ready.
What is MiniMax M2.5 good at?
Its documented strengths are coding, research with tools, and office work. Useful starting tasks include fixing a bug, comparing sources, or drafting a report with clear requirements.
Which programming languages does MiniMax M2.5 cover?
MiniMax lists Go, C, C++, TypeScript, Rust, Kotlin, Python, Java, JavaScript, PHP, Lua, Dart, and Ruby in its training coverage. Specify your language version, dependencies, and test command when requesting code.
How much context is MiniMax M2.5 designed for?
The published checkpoint is configured for 196,608 token positions. Treat that as a checkpoint specification; keep the supplied material focused and leave room for the response.
Which generation settings should I start with?
Start with MiniMax's published settings: temperature 1.0, top-p 0.95, and top-k 40. Compare changes against a fixed set of representative tasks before adopting them.
Where does MiniMax M2.5 need extra checking?
Difficult questions answered without tools deserve extra checking: MiniMax reports 19.4 on Humanity's Last Exam without tools, below M2.1's 22.2. Ask for evidence and check the supporting sources before relying on a difficult factual answer.
Start using MiniMax M2.5 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


