How to Use MiniMax M3.1 Flash in Gemini CLI
MiniMax M3.1 Flash is built for coding, code security reviews, and tasks that need several tool calls. It combines a context window of up to 1 million tokens with adjustable thinking depth for long documents and complex work.
Prompts to try with MiniMax M3.1 Flash in Gemini CLI
Copy an example into Gemini CLI, or ask in your own words.
Use MiniMax M3.1 Flash to investigate the failing tests in this project. Trace the failure to its cause, make the smallest justified fix, and run the relevant tests. Report what passed and what remains unresolved.
Use MiniMax M3.1 Flash with high thinking depth to review this project's authentication code. For each security finding, show the affected code path, explain the impact, and propose a patch with a focused verification check.
Use MiniMax M3.1 Flash to compare the README, API specification, and implementation in this repository. List contradictions with file locations, then propose corrections supported by the code.
Use MiniMax M3.1 Flash to implement pagination for the existing list endpoint. Follow the project's conventions, cover empty and final pages, and verify that existing callers still work.
Use MiniMax M3.1 Flash with high thinking depth to plan a refactor of this project's duplicated validation logic. Map callers first, identify behavior to preserve, and implement one reviewable change with relevant checks.
How to set up MiniMax M3.1 Flash in Gemini CLI
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Or add it to ~/.gemini/settings.json yourself:
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start gemini and run:
/mcp auth spiral
- Check it
In Gemini CLI, run /mcp. From your shell:
gemini mcp list
Use the Spiral skill
- Send Gemini CLI 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 M3.1 Flash
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-m3.1-flash", "input": { "messages": [ { "role": "system" } ] } }'
Then paste one of the prompts above: Gemini CLI finds MiniMax M3.1 Flash on Spiral, shows the price and runs it.
MiniMax M3.1 Flash providers and prices
Spiral runs MiniMax M3.1 Flash through OpenRouter. Open a card for today's price, with every fee included.
Up to $0.003202 per run at the default inputs. $0.195 per 1M input tokens, $0.78 per 1M output tokens.
Settings you can ask for
Ask Gemini CLI 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 524288 | The most output tokens to generate. | |
| Temperature | 0 to 2 | ||
| Top logprobs | 0 to 20 | ||
| Presence penalty | -2 to 2 | ||
| Reasoning effort | low, medium, high, xhigh, or max | max | How much the model reasons. |
| Frequency penalty | -2 to 2 | ||
| Repetition penalty | 0 to 2 |
Every API field of MiniMax: MiniMax M3.1 Flash is on its tool page: open its card above.
What can you do with MiniMax M3.1 Flash in Gemini CLI?
Turn a bug report or feature specification into code changes with MiniMax M3.1 Flash. Give the agent the relevant project context, acceptance criteria, and a concrete way to verify the result.
Investigate and fix a bug
Use MiniMax M3.1 Flash to trace a reported failure through the relevant code, propose a focused patch, and check it against the reproduction steps.
Implement a feature from acceptance criteria
Give MiniMax M3.1 Flash a concrete feature specification and ask for an implementation with checks tied to each requirement.
Plan a code refactor
Ask MiniMax M3.1 Flash to map dependencies, identify behavior that must stay consistent, and divide the refactor into reviewable changes.
Review code for security issues
Have MiniMax M3.1 Flash inspect application code for vulnerabilities and propose patches. Require a concrete code path and a verification step for each finding.
Reconcile conflicting documents
Use MiniMax M3.1 Flash to compare long specifications or procedures, locate contradictory requirements, and draft a decision list with supporting passages.
Build an evidence-based research brief
Ask MiniMax M3.1 Flash to work through supplied material or available research tools, connect relevant findings, and separate supported conclusions from open questions.
Prepare an operations handoff
Have MiniMax M3.1 Flash gather task status through available tools, reconcile conflicting updates, and produce a handoff with owners, blockers, and next actions.
More on MiniMax M3.1 Flash and Gemini CLI
Overview
MiniMax M3.1 Flash in other agents
More Gemini CLI guides
Questions about MiniMax M3.1 Flash in Gemini CLI
Can Gemini CLI use MiniMax M3.1 Flash?
Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run MiniMax M3.1 Flash like any built-in tool.
How much does MiniMax M3.1 Flash cost in Gemini CLI?
Up to $0.003202 per run at the default inputs. $0.195 per 1M input tokens, $0.78 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.
Do I need an OpenRouter account to use MiniMax M3.1 Flash in Gemini CLI?
No. Spiral runs MiniMax M3.1 Flash 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 M3.1 Flash in Gemini CLI?
About two minutes: add the server, then sign in, then check it.
Does Gemini CLI wait while MiniMax M3.1 Flash runs?
MiniMax M3.1 Flash runs in the background. Gemini CLI starts the run, checks on it and gives you the text, json when it's ready.
What is MiniMax M3.1 Flash good at?
Its documented focus is coding, code security reviews, and work that takes several tool calls. Practical uses include investigating bugs, checking documents for contradictions, and carrying a task through several steps.
How much context can MiniMax M3.1 Flash handle?
MiniMax documents a context window of up to 1 million tokens. That is useful for reviewing long documents or substantial code context, but it is separate from the maximum answer length.
How long can an answer be?
MiniMax documents a maximum generation limit of 524,288 tokens and recommends 131,072 tokens. Thinking also consumes the output budget, so those figures do not mean an equally long final answer.
Can MiniMax M3.1 Flash answer without thinking?
Thinking cannot be disabled. Use a lower thinking depth for straightforward work and reserve deeper thinking for tasks that need more investigation.
What limitations matter during long tasks?
Deeper thinking produces more tokens and increases latency. An output budget that is too small can be consumed by thinking before a final answer appears.
Start using MiniMax M3.1 Flash in Gemini CLI
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Gemini CLI:
set up https://spiral.ai/SKILL.md


