# MiniMax M3.1 Flash

> MiniMax's frontier multimodal coding model with a 1M context window and tunable thinking depth.

Agent resources: the index of everything machine-readable is https://www.ohmygpt.com/llms.txt; the integration skill (endpoints, auth, SDK and coding-tool setup) is https://www.ohmygpt.com/skill.md.

- Model ID: `minimax/minimax-m3.1-flash`
- Live status and providers as JSON, no key needed: https://api.ohmygpt.com/v1/models/minimax/minimax-m3.1-flash
- Released: 2026-09-27
- Context: 1M tokens
- Max output: 524K tokens
- Input: text, image, video; output: text

## Prices (USD)

| Item | Price | Unit |
| --- | --- | --- |
| Input | $0.1606–$0.165 | per 1M tokens |
| Output | $0.6424–$0.66 | per 1M tokens |
| Cache read | $0.01606–$0.0165 | per 1M tokens |

## Providers

Without a prefix each request goes to the best-priced healthy provider. To pin one, send the model as `<provider>:minimax/minimax-m3.1-flash`.

| Provider | Pinned model ID | Location | Input | Output | Trains on your data |
| --- | --- | --- | --- | --- | --- |
| MiniMax | `minimax:minimax/minimax-m3.1-flash` | China | $0.165 | $0.66 | no |
| Tencent Cloud TokenHub | `tencent:minimax/minimax-m3.1-flash` | China | $0.1606 | $0.6424 | no |
| Together AI | `together:minimax/minimax-m3.1-flash` | United States | $0.165 | $0.66 | no |

## Endpoints

| API | Request | model |
| --- | --- | --- |
| OpenAI Chat | POST https://api.ohmygpt.com/v1/chat/completions | `minimax/minimax-m3.1-flash` |
| OpenAI Responses | POST https://api.ohmygpt.com/v1/responses | `minimax/minimax-m3.1-flash` |
| Anthropic Messages | POST https://api.ohmygpt.com/v1/messages | `minimax/minimax-m3.1-flash` |
| Google Gemini | POST https://api.ohmygpt.com/v1/models/minimax/minimax-m3.1-flash:generateContent | `minimax/minimax-m3.1-flash` |

## Example

```bash
curl https://api.ohmygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $OHMYGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax/minimax-m3.1-flash",
    "messages": [
      {
        "role": "user",
        "content": "Hello"
      }
    ]
  }'
```

Web page: https://www.ohmygpt.com/models/minimax/minimax-m3.1-flash
