# MiniMax M3

> Open-weights model from MiniMax that accepts text, image and video input. Its main draw is cost: its intelligence per dollar ranks 26th of 194.

Use it with Pydantic AI as `fireworks:minimax-m3`.

## Spec sheet

- **Family:** MiniMax
- **Released:** 1 Jun 2026
- **Weights:** open
- **Context window:** 524,288 tokens
- **Largest response:** 524,288 tokens
- **Accepts:** text, image, video
- **Tool calling:** yes
- **Knowledge cutoff:** unknown
- **Intelligence index:** 54.3 (rank 69)
- **Price:** $0.3 input, $1.2 output, $0.53 blended per 1M tokens
- **Index points per $:** 103.4 (rank 26)
- **Speed:** 58 tokens/sec (rank 109)
- **Popularity:** rank 33 of 194 by usage
- **Pydantic AI Gateway:** not built in; [bring your own key](https://ai.pydantic.dev/gateway/#bring-your-own-key)

## Benchmarks

| Benchmark | Score | Rank among models tested | What it measures | Source |
| --- | --- | --- | --- | --- |
| Intelligence index | 54.3 | 72 | Our composite of the benchmarks below, 0-100 | Pydantic, from the sources credited below |
| GPQA Diamond | 90.9% | 35 | Graduate-level science questions, multiple choice | Epoch AI (CC BY 4.0) |
| OTIS Mock AIME | 71.1% | 85 | Competition mathematics problems with exact answers | Epoch AI (CC BY 4.0) |
| SciCode | 47.1% | 60 | Scientific programming problems written by researchers | SciCode, via Epoch AI (CC BY 4.0) |
| WebDev Arena | 1486.7 | 45 | Rating from human votes on web apps the models built | LMArena, via Epoch AI (CC BY 4.0) |
| APEX-Agents | 37.7% | 50 | Long professional tasks (banking, consulting, law) passed on the first attempt | Mercor, via Epoch AI (CC BY 4.0) |
| LMArena text | 1426.2 | 69 | Rating from blind human votes between pairs of chat responses | LMArena (CC BY 4.0) |
| Epoch Capabilities Index | 147.8 | 71 | Epoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index | Epoch AI (CC BY 4.0) |

## Providers and prices

US dollars per million tokens.

| Provider | Gateway | Pydantic AI string | Input | Cached input | Output |
| --- | --- | --- | --- | --- | --- |
| MiniMax | BYOK | – | $0.3 | $0.06 | $1.2 |
| Fireworks | BYOK | `fireworks:minimax-m3` | $0.3 | $0.06 | $1.2 |
| Novita | BYOK | – | $0.3 | $0.06 | $1.2 |
| OpenRouter | BYOK | `openrouter:minimax/minimax-m3` | $0.3 | $0.06 | $1.2 |
| Together AI | BYOK | `together:MiniMaxAI/MiniMax-M3` | $0.3 | $0.06 | $1.2 |

## Example code

### hello.py

Ask MiniMax M3 a question with a Pydantic AI agent and print the answer. Run it with uv run hello.py.

```python
# /// script
# dependencies = ["pydantic-ai"]
# ///
import os

from pydantic_ai import Agent

os.environ['FIREWORKS_API_KEY'] = '...'

agent = Agent('fireworks:minimax-m3', instructions='Be concise, reply with one sentence.')

result = agent.run_sync('Where does "hello world" come from?')
print(result.output)
```

### structured_output.py

Get validated, typed output from MiniMax M3 by giving the agent a Pydantic model. Run it with uv run structured_output.py.

```python
# /// script
# dependencies = ["pydantic-ai"]
# ///
import os

from pydantic import BaseModel
from pydantic_ai import Agent

os.environ['FIREWORKS_API_KEY'] = '...'


class CityLocation(BaseModel):
    city: str
    country: str


agent = Agent('fireworks:minimax-m3', output_type=CityLocation)

result = agent.run_sync('Where were the olympics held in 2012?')
print(result.output)
#> city='London' country='United Kingdom'
```

### tools.py

Give MiniMax M3 two tools to call, one of which reads the agent's dependencies. Run it with uv run tools.py.

```python
# /// script
# dependencies = ["pydantic-ai"]
# ///
import os
import random

from pydantic_ai import Agent, RunContext

os.environ['FIREWORKS_API_KEY'] = '...'

agent = Agent(
    'fireworks:minimax-m3',
    deps_type=str,
    instructions="You're a dice game, roll the die and see if it matches the user's guess.",
)


@agent.tool_plain
def roll_dice() -> str:
    """Roll a six-sided die and return the result."""
    return str(random.randint(1, 6))


@agent.tool
def get_player_name(ctx: RunContext[str]) -> str:
    """Get the player's name."""
    return ctx.deps


result = agent.run_sync('My guess is 4', deps='Anne')
print(result.output)
```

### streaming.py

Stream MiniMax M3's reply to the terminal as it is generated. Run it with uv run streaming.py.

```python
# /// script
# dependencies = ["pydantic-ai"]
# ///
import asyncio
import os

from pydantic_ai import Agent

os.environ['FIREWORKS_API_KEY'] = '...'

agent = Agent('fireworks:minimax-m3')


async def main():
    async with agent.run_stream('Explain prompt caching in three bullet points.') as response:
        async for text in response.stream_text(delta=True):
            print(text, end='', flush=True)


asyncio.run(main())
```

### pax.sh

Chat with MiniMax M3 in your terminal using pax, the TUI for pydantic-ai-harness. Coming soon.

```sh
export FIREWORKS_API_KEY='...'

uvx pax --model 'fireworks:minimax-m3'
```

### pi.sh

Use MiniMax M3 as the model behind the pi coding agent, with your own MiniMax key.

```sh
# npm install -g @earendil-works/pi-coding-agent
export FIREWORKS_API_KEY='...'

pi --model 'fireworks/minimax-m3'
```

### codex.sh

Run OpenAI's Codex CLI on MiniMax M3, which MiniMax serves over an OpenAI-compatible API.

```sh
# npm install -g @openai/codex
export FIREWORKS_API_KEY='...'

codex --model 'minimax-m3' \
  -c model_provider='fireworks' \
  -c model_providers.fireworks.name='MiniMax' \
  -c model_providers.fireworks.base_url='https://api.fireworks.example/v1' \
  -c model_providers.fireworks.env_key='FIREWORKS_API_KEY'
```

### ai_sdk.ts

Call MiniMax M3 from TypeScript with the Vercel AI SDK.

```ts
// npm install ai @ai-sdk/openai-compatible
import { createOpenAICompatible } from '@ai-sdk/openai-compatible'
import { generateText } from 'ai'

process.env.FIREWORKS_API_KEY = '...'

const fireworks = createOpenAICompatible({
  name: 'fireworks',
  baseURL: 'https://api.fireworks.example/v1',
  apiKey: process.env.FIREWORKS_API_KEY,
})

const { text } = await generateText({
  model: fireworks('minimax-m3'),
  system: 'Be concise, reply with one sentence.',
  prompt: 'Where does "hello world" come from?',
})
console.log(text)
```

## About MiniMax M3

MiniMax M3 is an open-weights model released in June 2026. It accepts text, image and video, supports tool calling, structured output and a reasoning mode, and has a 524k token context window. Its main appeal is price: $0.30 per million input tokens and $1.20 per million output tokens, about half the registry median blended price.

Capability is mixed. It scores 90.9% on GPQA Diamond, slightly above the median, but its composite intelligence index of 54.3 falls below the median. It trails on competition mathematics and professional task benchmarks, and its WebDev Arena and LMArena ratings also sit below the median. It fits workloads where cost matters more than top scores.

**Strengths**

- Blended price of $0.53 per million tokens, about half the registry median
- Intelligence per dollar ranks 26th of 194, at 103 points
- 524k token context window, with responses up to the same length
- GPQA Diamond score of 90.9%, 35th of 94 and slightly above median

**Weaknesses**

- Intelligence index of 54.3, 72nd of 114, below the 59.5 median
- OTIS Mock AIME of 71.1%, 85th of 95, against a 94.2% median
- APEX-Agents of 37.7%, 50th of 60, against a 54.3% median

**Best for:** Cost-sensitive agents doing tool calls, structured output, or image and video input, where top reasoning is not required.

Prices come from [genai-prices](https://github.com/pydantic/genai-prices), in US dollars per million tokens. Benchmark scores come from Epoch AI and LMArena (CC BY 4.0); the index and its sources are described at https://models.pydantic.dev/methodology.md. Data built 2026-11-25. Compare with other models: https://models.pydantic.dev/models.md
