> ## Documentation Index
> Fetch the complete documentation index at: https://agent.minimax.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Model Pairing

> Five visual cards on pairing M4 and M3.1 Flash in MiniMax Code: role split, quick matrix, escalation ladder, Advisor mode, and cache-friendly credit savings.

Let **M4** do the thinking, let **M3.1 Flash** do the work, and use the reasoning level to fine-tune each step. These 5 cards show how to pair models in MiniMax Code so you get more done with the same M Plan credits.

> [!NOTE]
>
> M4 and M3.1 Flash are available on every paid M Plan tier. Advisor, Side Chat, and Compact model settings apply to local sessions in the desktop app. For the full walkthrough and handoff templates, see the [M Plan Model Pairing Guide](https://platform.minimax.io/docs/m-plan/model-pairing-guide).

## Role split and selection

> [card] 01 · Let M4 think & review, let Flash look up & build
>
> Pairing takes two knobs: the model sets the ceiling, and the reasoning level sets how much thinking this step gets. M4 handles planning and pre-commit review; M3.1 Flash handles scouting and implementation. When the main session uses M4, built-in `Auto` subagents automatically run on M3.1 Flash.

> [card] 02 · Which model & level? Pick in one glance
>
> Give design trade-offs, hard bugs, and clean-session reviews to M4 (`high` / `max`); hand settled implementation, caller lookups, and scheduled or batch runs to M3.1 Flash (`low` to `high`). Bind repeat roles to dedicated models in **Agent Team**.

## Escalation and credit savings

> [card] 03 · Raise reasoning first, switch models last
>
> Start from `M3.1 Flash · medium`: raise the reasoning level to `high` / `max` first if edge cases are missed, add the M4 advisor for targeted backup, and switch the main model to M4 only when needed. For multi-turn Goals, draft with M4, drive with Flash, and cap spend with `/goal budget=50K`.

> [card] [04 · Flash drives the work, M4 checks key calls](https://agent.minimax.io/docs/code/agents/advisor.md)
>
> Turn on **Advisor** in Settings and select M4 on the Advisor row of the model menu. You get M4 guidance at tricky decisions, repeated failures, or final wrap-up without switching the main model or breaking its prompt cache.

> [card] 05 · Switch once per stage, protect your cache
>
> Prompt cache binds to the model and reasoning level, so flipping back and forth mid-run forces costly full-history recomputes. Hand off conclusions in a fresh session when switching on long threads, use `/` → **Side Chat** for quick M4 side questions, and set **Compact model** to M3.1 Flash in Settings → General.

## Related guides

> [card] [Advisor](https://agent.minimax.io/docs/code/agents/advisor.md)
>
> Keep a fast main model moving while a stronger advisor model reviews key checkpoints.

> [card] [Code Review](https://agent.minimax.io/docs/code/workflows/code-review.md)
>
> Review uncommitted local changes in a clean session instead of having the dev chat review itself.

> [card] [Goal](https://agent.minimax.io/docs/code/desktop/goal.md)
>
> Define completion criteria and credit budgets for autonomous multi-turn execution.

> [card] [Custom Agents](https://agent.minimax.io/docs/code/agents/custom-agents.md)
>
> Bind dedicated models and instructions to repeat roles like caller scouting or test writing.

> [card] [Tips](https://agent.minimax.io/docs/code/get-started/tips.md)
>
> Learn Plan, Steer, Side Chat, Compact, Fork session, and other 10-second desktop workflows.

> [card] [M Plan and Credits](https://agent.minimax.io/docs/code/account/usage.md)
>
> Check your subscription tier, supported models, credit balance, and remaining usage quota.
