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

# MiniMax M3.1 Flash

> MiniMax's open-weight multimodal MoE flash tier, below MiniMax M3: built for coding, agentic workflows, computer use and cybersecurity. 1M context, text, image and video input, reasoning, tool calling.

## Overview

MiniMax's open-weight multimodal MoE flash tier, below MiniMax M3: built for coding, agentic workflows, computer use and cybersecurity. 1M context, text, image and video input, reasoning, tool calling.

## Specs

| Field | Value |
| - | - |
| Model ID | `minimax-m3.1-flash` |
| Best for | Cheap agentic coding and multimodal work at 1M context |
| Context window | 1.048576M |
| Max output tokens | 524K |
| Input modalities | Text, Image, Video |
| Output modalities | Text |
| Tool calling | Yes |
| Structured outputs | Yes |
| Prompt caching | Yes |
| Vision | Yes |
| Reasoning | Yes |
| Speed | Fast |
| Cost band | Cheap |
| Release stage | Stable |

## Pricing

| | Per 1M tokens |
| - | :-: |
| Input | \$0.2025 |
| Output | \$0.81 |

## Example

```python theme={null}
from openai import OpenAI

client = OpenAI(base_url="https://kymaapi.com/v1", api_key="kyma-...")

response = client.chat.completions.create(
    model="minimax-m3.1-flash",
    messages=[{"role": "user", "content": "..."}],
    tools=[...],  # function calling supported
)
```

## Agent query example

Ask the API which models fit, instead of hardcoding an id:

```bash theme={null}
curl "https://kymaapi.com/v1/models?recommended_for=chat&tools=true&quality_tier=strong"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.