---
title: "MiniMax M3.1 Flash on Pydantic AI Combined"
description: "The mean of the six Pydantic AI benchmarks; code mode is compared over the four that have a code mode run. Tool calling 70.9%, code mode 72.9% over four benchmarks; rank 20 of 44."
canonical: https://pydantic.dev/models/list/minimax-m3.1-flash/pydantic_ai/
---

# MiniMax M3.1 Flash on Pydantic AI Combined

> The mean of the six Pydantic AI benchmarks; code mode is compared over the four that have a code mode run. Tool calling 70.9%, code mode 72.9% over four benchmarks; rank 20 of 44.
>
> Markdown copy of https://pydantic.dev/models/list/minimax-m3.1-flash/pydantic_ai/. 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

About the benchmark: https://pydantic.dev/models/benchmarks/pydantic_ai.md. The model's page: https://pydantic.dev/models/list/minimax-m3.1-flash.md

## Scores

Cost is the mean cost of one task. Code mode is compared with tool calling over the four benchmarks run in both modes (https://pydantic.dev/models/codemode.md).

|                                      | Tool calling | Code mode |
| ------------------------------------ | ------------ | --------- |
| Score, all six benchmarks            | 70.9%        | –         |
| Score, the four with a code mode run | 63.8%        | 72.9%     |
| Cost per task, all six               | –            | –         |
| Cost per task, the four              | –            | –         |

## Each benchmark

| Benchmark                                                                                      | Tool calling | Code mode | Change | Cost per task | Cost per task, code mode | Rank     | Runs                                                                     |
| ---------------------------------------------------------------------------------------------- | ------------ | --------- | ------ | ------------- | ------------------------ | -------- | ------------------------------------------------------------------------ |
| [Pydantic AI - Billing ops](https://pydantic.dev/models/benchmarks/billing_ops.md)             | 80%          | 80%       | ±0     | –             | –                        | 18 of 44 | https://pydantic.dev/models/list/minimax-m3.1-flash/billing_ops.md       |
| [Pydantic AI - Customer support](https://pydantic.dev/models/benchmarks/customer_support.md)   | 40%          | 50%       | +10    | –             | –                        | 22 of 44 | https://pydantic.dev/models/list/minimax-m3.1-flash/customer_support.md  |
| [Pydantic AI - SQL data analysis](https://pydantic.dev/models/benchmarks/sql_data_analysis.md) | 50%          | 80%       | +30    | –             | –                        | 25 of 44 | https://pydantic.dev/models/list/minimax-m3.1-flash/sql_data_analysis.md |
| [Pydantic AI - Research & deck](https://pydantic.dev/models/benchmarks/research_deck.md)       | 85.2%        | 81.5%     | −3.7   | –             | –                        | 16 of 44 | https://pydantic.dev/models/list/minimax-m3.1-flash/research_deck.md     |
| [Pydantic AI - Structured output](https://pydantic.dev/models/benchmarks/structured_output.md) | 90%          | –         | –      | –             | –                        | 15 of 44 | https://pydantic.dev/models/list/minimax-m3.1-flash/structured_output.md |
| [Pydantic AI - LLM Judge](https://pydantic.dev/models/benchmarks/llm_judge.md)                 | 80%          | –         | –      | –             | –                        | 9 of 44  | https://pydantic.dev/models/list/minimax-m3.1-flash/llm_judge.md         |

## How it did on the Pydantic AI benchmarks

Written by an LLM from reviews of every run.

#### Overall
The model passed most cases across five benchmarks, scoring 80–90% on extraction and judgment tasks (Structured output 90%, LLM Judge 80%) and 50–85% on multi-step agent tasks. It handles explicit facts, units, and arithmetic reliably, but it is weaker at exhaustive coverage, at enforcing exact constraints, and at managing request budgets. Code mode raised the pass rate on SQL data analysis (80% vs 50%), matched tools on Billing ops (80% each), and trailed slightly on Research & deck (81% vs 85%).

#### Strengths
- On Structured output it passed all three £000 cases and all tier-3 and tier-4 cases, keeping signs, comparative columns, and group/parent differences correct.
- On Billing ops both modes passed every payment allocation, credit correction, invoice-total, outstanding-debt, and tutor-margin case.
- On Research & deck both runs switched to `view_pdf` for a scanned contract, recovered restated revenue figures, and reached a passing `check_deck` after format repairs.
- On SQL data analysis both modes passed midnight rollover, latest departure, meeting-point, one-vehicle, and Saturday service cases.
- On LLM Judge it reliably extracted explicit amounts, windows, and retry counts in single-request runs with no retries.

#### Weaknesses
- On Billing ops all four failures were invoice audits, including a tools run that inspected only 43 invoices and returned 6 of 12 overcharges.
- On Research & deck both final decks kept unsupported claims, such as cancelled orders counted as traction and an invented 32-month runway.
- On LLM Judge it relaxed exact requirements, accepting milestones on the wrong slide and treating 'some may' as satisfying 'most will'.
- On SQL data analysis three tools runs exhausted the 80-request limit, and small time-conversion errors (`28000` instead of `27600`) caused wrong journeys.
- On Structured output it added undisclosed aggregates and annotated director names where literal extraction was required.

#### Tool calling compared with code mode
- On SQL data analysis code mode kept all five tools-mode passes, added three more, and used 35% fewer requests, but made 1372 tool calls versus 752.
- On Billing ops code mode used about 20% fewer requests and fixed the small overcharge audit, but it turned a correct duplicate audit into a wrong one and returned zero findings on the large audit.
- On Research & deck code mode used 48 requests versus 31 for tools, hit repeated sandbox compatibility failures, and still produced factual overreach.
- Across Billing ops and SQL data analysis code mode made arithmetic explicit, but it brought recurring sandbox, import, and variable-lifetime errors and sometimes finalized without evidence.
