---
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 18 of 32."
canonical: https://models.pydantic.dev/models/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 18 of 32.
>
> Markdown copy of https://models.pydantic.dev/models/minimax-m3.1-flash/pydantic_ai/. Index for agents: https://models.pydantic.dev/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://models.pydantic.dev/api/select` with a JSON body such as `{"description": "what the agent does"}`. It returns up to five ranked models with reasons. Format: https://models.pydantic.dev/select.md
- Search models by name: `GET https://models.pydantic.dev/api/search?query=<text>`
- List, filter and sort models: `GET https://models.pydantic.dev/api/models`, for example `?weights=open&max_price=2&sort=efficiency`
- One model in full: `GET https://models.pydantic.dev/api/models/<slug>`
- Any other question about the models: `GET https://models.pydantic.dev/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://models.pydantic.dev/mcp`. More: https://models.pydantic.dev/usage.md

About the benchmark: https://models.pydantic.dev/benchmarks/pydantic_ai.md. The model's page: https://models.pydantic.dev/models/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://models.pydantic.dev/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 Accounting](https://models.pydantic.dev/benchmarks/accounting_platform.md)  | 80%          | 80%       | ±0     | –             | –                        | 16 of 32 | https://models.pydantic.dev/models/minimax-m3.1-flash/accounting_platform.md |
| [Pydantic AI Support Inbox](https://models.pydantic.dev/benchmarks/support_inbox.md)     | 40%          | 50%       | +10    | –             | –                        | 17 of 32 | https://models.pydantic.dev/models/minimax-m3.1-flash/support_inbox.md       |
| [Pydantic AI Transit Planner](https://models.pydantic.dev/benchmarks/transit_planner.md) | 50%          | 80%       | +30    | –             | –                        | 22 of 32 | https://models.pydantic.dev/models/minimax-m3.1-flash/transit_planner.md     |
| [Pydantic AI Seed Deck](https://models.pydantic.dev/benchmarks/seed_deck.md)             | 85.2%        | 81.5%     | −3.7   | –             | –                        | 12 of 32 | https://models.pydantic.dev/models/minimax-m3.1-flash/seed_deck.md           |
| [Pydantic AI Companies House](https://models.pydantic.dev/benchmarks/companies_house.md) | 90%          | –         | –      | –             | –                        | 14 of 32 | https://models.pydantic.dev/models/minimax-m3.1-flash/companies_house.md     |
| [Pydantic AI Judge Accuracy](https://models.pydantic.dev/benchmarks/judge_accuracy.md)   | 80%          | –         | –      | –             | –                        | 7 of 32  | https://models.pydantic.dev/models/minimax-m3.1-flash/judge_accuracy.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 (companies_house 90%, judge_accuracy 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 transit_planner (80% vs 50%), matched tools on accounting_platform (80% each), and trailed slightly on seed_deck (81% vs 85%).

#### Strengths
- On companies_house it passed all three £000 cases and all tier-3 and tier-4 cases, keeping signs, comparative columns, and group/parent differences correct.
- On accounting_platform both modes passed every payment allocation, credit correction, invoice-total, outstanding-debt, and tutor-margin case.
- On seed_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 transit_planner both modes passed midnight rollover, latest departure, meeting-point, one-vehicle, and Saturday service cases.
- On judge_accuracy it reliably extracted explicit amounts, windows, and retry counts in single-request runs with no retries.

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

#### Tool calling compared with code mode
- On transit_planner code mode kept all five tools-mode passes, added three more, and used 35% fewer requests, but made 1372 tool calls versus 752.
- On accounting_platform 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 seed_deck code mode used 48 requests versus 31 for tools, hit repeated sandbox compatibility failures, and still produced factual overreach.
- Across accounting_platform and transit_planner code mode made arithmetic explicit, but it brought recurring sandbox, import, and variable-lifetime errors and sometimes finalized without evidence.
