# MiniMax M3.1 Flash

> MiniMax M3.1 Flash is MiniMax's open-weight multimodal model for complex agentic tasks, coding and cybersecurity. It accepts text, image and video input and has a 1M-token context window. It always thinks, with adjustable effort, and its weights are not yet released.

**ID**: `minimax/minimax-m3.1-flash`  
**Creator**: minimax  
**Category**: multimodal  
**Context**: 1M tokens  
**Input**: $0  
**Output**: $0  
**Released**: 2026-10-19  
**Links**: [Weights on Hugging Face](https://huggingface.co/MiniMaxAI/MiniMax-M3.1-Flash) · [Announcement](https://www.minimax.io/blog/minimax-m31f) · [AnyRouter release](https://anyrouter.dev/blog/releases/2026-10-19-minimax-m3-1-flash)  
**Web page**: https://anyrouter.dev/model/minimax/minimax-m3.1-flash

**Input modalities**: text, image, video  
**Output modalities**: text  

**Capabilities**: chat, coding, reasoning, agentic, vision, function-calling, structured-output, streaming

**Aliases**: `minimax/m3.1-flash`

## Usage

**Endpoint**: `POST https://anyrouter.dev/api/v1/chat/completions`

```bash
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax/minimax-m3.1-flash",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| minimax-byok | $0 | $0 |
| refuseless-byok | $0 | $0 |
| openrouter-byok | $0 | $0 |
| vercel-byok | $0 | $0 |
| nvidia | $0 | $0 |
| nvidia-byok | $0 | $0 |
| hagiang | $0.15/M | $0.60/M |
| aihubmix-byok | $0 | $0 |
| opencode-go-byok | $0 | $0 |
| cline-byok | $0 | $0 |
| ollama-byok | $0 | $0 |
| respan-byok | $0 | $0 |
| beatapi-byok | $0 | $0 |
| tokenharbor-byok | $0 | $0 |
| inference-net-byok | $0 | $0 |
| nousresearch-byok | $0 | $0 |
| zenmux-byok | $0 | $0 |
| llmgateway-byok | $0 | $0 |
| infron-byok | $0 | $0 |
| getvibe-byok | $0 | $0 |
| orcarouter-byok | $0 | $0 |
| gmicloud-byok | $0 | $0 |
| huggingface-byok | $0 | $0 |
| siliconflow-byok | $0 | $0 |
| aimlapi-byok | $0 | $0 |
| novita-byok | $0 | $0 |
| venice-byok | $0 | $0 |
| nano-gpt-byok | $0 | $0 |
| edenai-byok | $0 | $0 |
| abacus-byok | $0 | $0 |
| hilinkup-byok | $0 | $0 |
| cortecs-byok | $0 | $0 |
| qiniu-byok | $0 | $0 |
| fluence-byok | $0 | $0 |
| empiriolabs-byok | $0 | $0 |
| kenari-byok | $0 | $0 |
| wafer-byok | $0 | $0 |

## Model card

- Native context: 1000000 tokens [2]
- License: MiniMax Community License, open weights (https://huggingface.co/MiniMaxAI/MiniMax-M3.1-Flash) [4]

### Strengths [1,3]

- Leading-model level on complex agentic tasks, computer use, coding and cybersecurity benchmarks (vendor-reported).
- Output speeds of 200+ tokens per second, with a 170+ median (vendor-reported).
- Vendor reports agentic task cost 70% below M3, at $0.15 input and $0.60 output per 1M tokens.

### Known limits [2,1]

- Always thinks; sending `thinking.type = disabled` returns HTTP 400.

### Use cases [1]

- Multi-step co-work automation across SaaS systems
- Fixing bugs and building features in real codebases
- Code auditing and vulnerability patching

### API notes [2]

- Text, image and video input over the OpenAI-compatible Chat Completions API.
- reasoning_effort accepts low, medium, high, xhigh and max; default is max.
- Thinking comes back separately in `reasoning_content` and must be preserved across turns.

### Links

- announcement: https://www.minimax.io/blog/minimax-m31f
- model card: https://huggingface.co/MiniMaxAI/MiniMax-M3.1-Flash
- docs: https://platform.minimax.io/docs/api-reference/text-openai-api
- pricing: https://platform.minimax.io/docs/guides/pricing-paygo
- Previous version: https://anyrouter.dev/model/minimax/m3

### Sources

1. [MiniMax M3.1 Flash: Redefining Agent Performance and Cost](https://www.minimax.io/blog/minimax-m31f) (accessed 2026-10-19)
2. [MiniMax OpenAI API compatible reference](https://platform.minimax.io/docs/api-reference/text-openai-api) (accessed 2026-10-19)
3. [MiniMax pay-as-you-go pricing](https://platform.minimax.io/docs/guides/pricing-paygo) (accessed 2026-10-19)
4. [MiniMax-M3.1-Flash model card](https://huggingface.co/MiniMaxAI/MiniMax-M3.1-Flash) (accessed 2026-11-11)

## Source

- Upstream docs: https://platform.minimax.io/docs/guides/text-generation
