---
title: "MiniMax M3"
description: "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."
canonical: https://pydantic.dev/models/list/minimax-m3/
---

# 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.
>
> Markdown copy of https://pydantic.dev/models/list/minimax-m3/. Index for agents: https://pydantic.dev/models/llms.txt

**Agents: use the API for model information.** It answers a question in one request, where the pages need several.

- Choose a model for an agent: `POST https://pydantic.dev/models/api/select` with a JSON body such as `{"description": "what the agent does"}`. It returns up to five ranked models with reasons. Format: https://pydantic.dev/models/select.md
- Search models by name: `GET https://pydantic.dev/models/api/search?query=<text>`
- List, filter and sort models: `GET https://pydantic.dev/models/api/models`, for example `?weights=open&max_price=2&sort=efficiency`
- One model in full: `GET https://pydantic.dev/models/api/models/<slug>`
- Any other question about the models: `GET https://pydantic.dev/models/api/ask?query=<question>`

Add `intent=<intent>&stack=<stack>&harness=<harness>` to the query string of all but the single model. An `OPTIONS` request to any endpoint returns its schema. The same five are tools of the MCP server at `https://pydantic.dev/models/mcp`. More: https://pydantic.dev/models/usage.md

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:** 52.3 (rank 71)
- **Scores updated:** 2026-11-30
- **Price:** $0.3 input, $1.2 output, $0.53 blended per 1M tokens
- **Index points per $:** 99.6 (rank 21)
- **Speed:** 58 tokens/sec (rank 109)
- **Popularity:** rank 38 of 194 by usage
- **Pydantic AI Gateway:** not built in; [bring your own key](https://ai.pydantic.dev/gateway/#bring-your-own-key)

## Benchmarks

### Pydantic AI benchmarks

Our own benchmarks, each about 10 tasks run once with tool calling and once in code mode (https://pydantic.dev/models/codemode.md). Not part of the intelligence index. Cost is the mean cost of one task. For the combined score, code mode is compared over the four benchmarks run in both modes.

| Benchmark                                                                                      | Tool calling | Code mode | Change | Cost per task | Cost per task, code mode | Rank     | Runs                                                             |
| ---------------------------------------------------------------------------------------------- | ------------ | --------- | ------ | ------------- | ------------------------ | -------- | ---------------------------------------------------------------- |
| [Pydantic AI Combined](https://pydantic.dev/models/benchmarks/pydantic_ai.md)                  | 51%          | 35%       | −6.5   | $0.11         | $0.074                   | 38 of 44 | https://pydantic.dev/models/list/minimax-m3/pydantic_ai.md       |
| [Pydantic AI - Billing ops](https://pydantic.dev/models/benchmarks/billing_ops.md)             | 70%          | 80%       | +10    | $0.18         | $0.026                   | 21 of 44 | https://pydantic.dev/models/list/minimax-m3/billing_ops.md       |
| [Pydantic AI - Customer support](https://pydantic.dev/models/benchmarks/customer_support.md)   | 30%          | 50%       | +20    | $0.0068       | $0.013                   | 33 of 44 | https://pydantic.dev/models/list/minimax-m3/customer_support.md  |
| [Pydantic AI - SQL data analysis](https://pydantic.dev/models/benchmarks/sql_data_analysis.md) | 0%           | 10%       | +10    | $0.32         | $0.23                    | 38 of 44 | https://pydantic.dev/models/list/minimax-m3/sql_data_analysis.md |
| [Pydantic AI - Research & deck](https://pydantic.dev/models/benchmarks/research_deck.md)       | 65.9%        | 0%        | −65.9  | $0.12         | $0.029                   | 32 of 44 | https://pydantic.dev/models/list/minimax-m3/research_deck.md     |
| [Pydantic AI - Structured output](https://pydantic.dev/models/benchmarks/structured_output.md) | 60%          | –         | –      | $0.022        | –                        | 35 of 44 | https://pydantic.dev/models/list/minimax-m3/structured_output.md |
| [Pydantic AI - LLM Judge](https://pydantic.dev/models/benchmarks/llm_judge.md)                 | 80%          | –         | –      | $0.0028       | –                        | 9 of 44  | https://pydantic.dev/models/list/minimax-m3/llm_judge.md         |
| [Pydantic AI - Cyber Willing](https://pydantic.dev/models/benchmarks/cyber_willing.md)         | 94.4%        | –         | –      | $0.012        | –                        | 7 of 32  | https://pydantic.dev/models/list/minimax-m3/cyber_willing.md     |

### Other benchmarks


| Benchmark                | Score  | Rank among models tested | What it measures                                                                                 | Source                                    |
| ------------------------ | ------ | ------------------------ | ------------------------------------------------------------------------------------------------ | ----------------------------------------- |
| Intelligence index       | 52.3   | 71                       | Our composite of the benchmarks below, 0-100                                                     | Pydantic, from the sources credited below |
| GPQA Diamond             | 90.9%  | 32                       | Graduate-level science questions, multiple choice                                                | Epoch AI (CC BY 4.0)                      |
| OTIS Mock AIME           | 71.1%  | 82                       | Competition mathematics problems with exact answers                                              | Epoch AI (CC BY 4.0)                      |
| SciCode                  | 47.1%  | 57                       | Scientific programming problems written by researchers                                           | SciCode, via Epoch AI (CC BY 4.0)         |
| APEX-Agents              | 37.7%  | 48                       | 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)                       |
| Chess Puzzles            | 17%    | 68                       | Find the single best move in a chess position                                                    | Epoch AI (CC BY 4.0)                      |
| Mystery Game Puzzles     | 8%     | 68                       | Best-move puzzles in an undisclosed well-known game                                              | Epoch AI (CC BY 4.0)                      |
| SimpleBench              | 45.8%  | 56                       | Six-option trick questions that test common sense                                                | SimpleBench, via Epoch AI (CC BY 4.0)     |
| ALE-Bench                | 640    | 83                       | Hard optimisation contest problems, as a rating against human contestants                        | Sakana AI, via Epoch AI (CC BY 4.0)       |
| Epoch Capabilities Index | 147.8  | 70                       | 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   |

## Use MiniMax M3 with Pydantic AI

### 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

Code with MiniMax M3 in your terminal using Pax, the Pydantic AI coding agent. On macOS, open a new terminal after installing, so pax isn't the system's archiver.

```sh
# uv tool install pydantic-ai-pax
export FIREWORKS_API_KEY='...'

pax -m 'fireworks:minimax-m3'
```

### codex.sh

Run OpenAI's Codex CLI on MiniMax M3, which Fireworks 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='Fireworks' \
  -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 costs $0.3 per million input tokens and $1.2 per million output tokens, has a 524k token context window and scores 52.3 on our intelligence index, #71 of 101.

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.

## How it did on the Pydantic AI benchmarks

Written by an LLM from reviews of every run.

#### Overall
The model reads structured data accurately and handles focused, bounded tasks, but it often fails to complete long or multi-step work within limits and is unreliable at producing schema-valid nested output. Results ranged from 80% (Billing ops code mode, LLM Judge) down to near zero on SQL data analysis and Research & deck. Across the reviews, no failures were attributed to provider errors.

#### Strengths
- On Billing ops, both modes passed all four transaction runs, sequencing attendance correction, invoice voiding, reissue, released credit, and oldest-due-first payment allocation correctly.
- On Structured output, it passed all six tier 1–3 cases, converting £000 figures and separating group from parent figures in both tier 3 cases.
- On LLM Judge, it reliably extracted explicit facts such as refund eligibility, retry counts and replay windows, and applied the 14-day refund rule using the correct request date.
- On SQL data analysis, it implemented detailed timetable logic, including weekday masks, previous-day offsets and distance-based interpolation, and the passing code run validated a transfer margin exactly.
- On Research & deck, both runs retrieved financial records, customer evidence and the September revenue correction.

#### Weaknesses
- On SQL data analysis, 17 of 20 runs exhausted the 80-request limit through repeated route inspection, SQL repairs and post-solution checks, leaving 1/20 passing.
- On Structured output, all four tier 4–5 failures submitted creditor arrays as wrapped objects and did not repair them after explicit list_type feedback.
- On Billing ops, tools-mode wrong-invoice audits returned only 3/12 and 3/4 expected findings, and six runs needed validation retries for malformed output.
- On LLM Judge, it accepted outputs too readily, ignoring location, quantity and scope conditions such as "last slide" and "most" deliveries.
- On Research & deck, tools mode reported £3.7m instead of £3.1m trailing revenue, added unsupported quotations, and emitted its final repair as literal tool-call markup.

#### Tool calling compared with code mode
- On Billing ops, code mode scored 80% versus 70% and cut cost from $1.7637 to $0.2646 despite using 165 model requests versus 151.
- On Billing ops, code mode completed the large missed-student audit in 19 requests where tools mode failed, though another large code audit exhausted the sandbox suspension budget at 60 requests.
- On SQL data analysis, code mode passed 1/10 versus 0/10 and cost $2.2498 versus $3.1504, but it hit memory resets, unsupported modules and oversized tool-call loops.
- On Research & deck, code mode was about 75% cheaper ($0.0294 versus $0.1158) but produced no deck, bypassing ask_founder, while tools mode got further through writing and validation.

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), Browser Use, and our own Pydantic AI benchmarks (CC BY 4.0); the index and its sources are described at https://pydantic.dev/models/methodology.md. Data built 2026-11-30. This model from the API: `https://pydantic.dev/models/api/models/minimax-m3`. Compare it with others: `https://pydantic.dev/models/api/models?slug=minimax-m3,<other slug>`
