---
title: "Pydantic AI - Billing ops"
description: "Questions about and changes to a tutoring agency's books, checked to the penny. One of the Pydantic AI benchmarks; not part of the intelligence index."
canonical: https://pydantic.dev/models/benchmarks/billing_ops/
---

# Pydantic AI - Billing ops

> Questions about and changes to a tutoring agency's books, checked to the penny. One of the Pydantic AI benchmarks; not part of the intelligence index.
>
> Markdown copy of https://pydantic.dev/models/benchmarks/billing_ops/. 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

Billing ops measures how well an agent answers questions about, and makes changes to, the books of a fictional tutoring agency.
The rules are the kind any lesson-billing system has: charge rates, attendance, tax, invoices, payments and credit.
The tools return raw records, never answers: there is no balance tool, so the agent has to find and add up the right lines itself.

- **Created by:** [Pydantic](https://pydantic.dev)
- **All Pydantic AI benchmarks:** /models/benchmarks/pydantic_ai/
- **Scores from:** Pydantic (CC BY 4.0) (/models/benchmarks/billing_ops/), results updated 2026-11-29

## Description

The 10 cases run from looking up one invoice's total to auditing a month of invoices against lessons and attendance, and correcting the books by voiding and reissuing invoices.
Some run over a small world, others over one with hundreds of invoices, where calling one tool per record gets slow and expensive and code mode helps most.

Scoring is exact.
The data is generated by code, and the same code computes every answer: amounts must match to the penny, sets of IDs must match exactly, and for changes the final state of the database is compared with the expected one.
A case passes only if the whole answer is right.

### Caveats

- The data is synthetic, generated from a fixed seed. The cases were chosen from 80 because they separated Claude Haiku, Sonnet and Opus 5.5 in a calibration run.
- 10 cases, one run each, so the score moves by 10 points per case.

## Results

The best result per model, with the reasoning setting it was run at where the source gives one. Blended price is US dollars per million tokens, three input to one output, from the provider the model's page leads with.

| Rank | Model                                                                                            | Setting | Score  | Code mode | Cost per run | Cost per run, code mode | Model time per run | Model time per run, code mode | Blended price |
| ---- | ------------------------------------------------------------------------------------------------ | ------- | ------ | --------- | ------------ | ----------------------- | ------------------ | ----------------------------- | ------------- |
| 1    | [Gemini 4 Argon](https://pydantic.dev/models/list/gemini-4-argon/billing_ops.md)                 | –       | 100.0% | 90.0%     | $0.75        | $0.063                  | –                  | 52.6 s                        | $4            |
| 1    | [Gemini 4 Carbon](https://pydantic.dev/models/list/gemini-4-carbon/billing_ops.md)               | –       | 100.0% | 100.0%    | $1.10        | $0.12                   | –                  | 178.7 s                       | $4            |
| 1    | [Gemini 4 Neon](https://pydantic.dev/models/list/gemini-4-neon/billing_ops.md)                   | –       | 100.0% | 100.0%    | $1.28        | $0.16                   | 290.9 s            | 85.3 s                        | $6            |
| 4    | [Claude Fable 5.1](https://pydantic.dev/models/list/claude-fable-5.1/billing_ops.md)             | –       | 90.0%  | 80.0%     | $1.73        | $0.15                   | 101.1 s            | 18.2 s                        | $20           |
| 4    | [Claude Fable 5.2](https://pydantic.dev/models/list/claude-fable-5.2/billing_ops.md)             | –       | 90.0%  | 100.0%    | $1.27        | $0.16                   | 78.7 s             | 19.2 s                        | $16           |
| 4    | [Claude Opus 5](https://pydantic.dev/models/list/claude-opus-5/billing_ops.md)                   | –       | 90.0%  | 80.0%     | $0.99        | $0.16                   | 111.7 s            | 29.1 s                        | $10           |
| 4    | [Claude Opus 5.5](https://pydantic.dev/models/list/claude-opus-5.5/billing_ops.md)               | –       | 90.0%  | 100.0%    | $0.66        | $0.065                  | 59.7 s             | 16.8 s                        | $8            |
| 4    | [DeepSeek V4 Pro 0423](https://pydantic.dev/models/list/deepseek-v4-pro/billing_ops.md)          | –       | 90.0%  | 20.0%     | $0.23        | $0.11                   | 284.1 s            | 73.6 s                        | $2.17         |
| 4    | [Gemini 4 Hydrogen](https://pydantic.dev/models/list/gemini-4-hydrogen/billing_ops.md)           | –       | 90.0%  | 100.0%    | $0.58        | $0.079                  | 163.4 s            | 35.8 s                        | $3            |
| 4    | [GPT-6 Astra](https://pydantic.dev/models/list/gpt-6-astra/billing_ops.md)                       | –       | 90.0%  | 80.0%     | $1.82        | $0.15                   | 52.5 s             | 11.5 s                        | $20           |
| 4    | [GPT-6.1 Sol](https://pydantic.dev/models/list/gpt-6.1-sol/billing_ops.md)                       | –       | 90.0%  | 80.0%     | $0.28        | $0.025                  | 84.1 s             | 17.7 s                        | $4            |
| 4    | [Grok 4.6](https://pydantic.dev/models/list/grok-4.6/billing_ops.md)                             | –       | 90.0%  | 80.0%     | $0.53        | $0.12                   | 105.0 s            | 45.6 s                        | $3            |
| 4    | [Grok 4.7](https://pydantic.dev/models/list/grok-4.7/billing_ops.md)                             | –       | 90.0%  | 80.0%     | $0.99        | $0.11                   | 141.4 s            | 60.2 s                        | $3            |
| 4    | [Kimi K3.1 Pro](https://pydantic.dev/models/list/kimi-k3.1-pro/billing_ops.md)                   | –       | 90.0%  | 80.0%     | $0.28        | $0.074                  | 137.8 s            | 50.7 s                        | $4            |
| 4    | [Muse Spark 1.3](https://pydantic.dev/models/list/muse-spark-1.3/billing_ops.md)                 | –       | 90.0%  | 80.0%     | $1.23        | $0.17                   | 285.4 s            | 104.2 s                       | $2            |
| 4    | [Muse Wonder](https://pydantic.dev/models/list/muse-wonder/billing_ops.md)                       | –       | 90.0%  | 100.0%    | $1.07        | $0.25                   | 214.2 s            | 70.0 s                        | $8            |
| 4    | [Qwen3.8 Max (0902)](https://pydantic.dev/models/list/qwen3.8-max-0902/billing_ops.md)           | –       | 90.0%  | 100.0%    | $0.64        | $0.099                  | 665.8 s            | 138.7 s                       | $3            |
| 18   | [Claude Sonnet 5.5](https://pydantic.dev/models/list/claude-sonnet-5.5/billing_ops.md)           | –       | 80.0%  | 90.0%     | $0.33        | $0.041                  | 59.3 s             | 17.2 s                        | $4            |
| 18   | [GLM 5.3](https://pydantic.dev/models/list/glm-5.3/billing_ops.md)                               | –       | 80.0%  | 100.0%    | $1.12        | $0.093                  | 396.2 s            | 123.5 s                       | $2.15         |
| 18   | [MiniMax M3.1 Flash](https://pydantic.dev/models/list/minimax-m3.1-flash/billing_ops.md)         | –       | 80.0%  | 80.0%     | –            | –                       | 107.0 s            | 41.2 s                        | $0.26         |
| 21   | [DeepSeek V4.1 Flash](https://pydantic.dev/models/list/deepseek-v4.1-flash/billing_ops.md)       | –       | 70.0%  | 40.0%     | $0.027       | $0.0031                 | 104.0 s            | 25.0 s                        | $0.26         |
| 21   | [Gemini 3.8 Flash](https://pydantic.dev/models/list/gemini-3.8-flash/billing_ops.md)             | –       | 70.0%  | 90.0%     | $0.23        | $0.095                  | 203.5 s            | 59.2 s                        | $1.5          |
| 21   | [GLM 5.3 Flash](https://pydantic.dev/models/list/glm-5.3-flash/billing_ops.md)                   | –       | 70.0%  | 70.0%     | $0.10        | $0.018                  | 121.2 s            | 39.7 s                        | $0.24         |
| 21   | [GPT-5.6 Sol](https://pydantic.dev/models/list/gpt-5.6-sol/billing_ops.md)                       | –       | 70.0%  | 80.0%     | $0.28        | $0.080                  | 26.9 s             | 18.6 s                        | $8            |
| 21   | [GPT-6.1 Terra](https://pydantic.dev/models/list/gpt-6.1-terra/billing_ops.md)                   | –       | 70.0%  | 80.0%     | $0.032       | $0.015                  | 18.7 s             | 20.9 s                        | $2            |
| 21   | [GPT-6.2 Astra](https://pydantic.dev/models/list/gpt-6.2-astra/billing_ops.md)                   | –       | 70.0%  | 100.0%    | $0.55        | $0.065                  | 21.9 s             | 18.7 s                        | $16           |
| 21   | [MiMo-V2.6-Pro](https://pydantic.dev/models/list/mimo-v2.6-pro/billing_ops.md)                   | –       | 70.0%  | 90.0%     | $0.11        | $0.0087                 | 146.8 s            | 24.6 s                        | $0.54         |
| 21   | [MiniMax M3](https://pydantic.dev/models/list/minimax-m3/billing_ops.md)                         | –       | 70.0%  | 80.0%     | $0.18        | $0.026                  | 263.2 s            | 75.6 s                        | $0.53         |
| 21   | [Muse Spark Open](https://pydantic.dev/models/list/muse-spark-open/billing_ops.md)               | –       | 70.0%  | 80.0%     | $0.30        | $0.087                  | 75.2 s             | 70.0 s                        | $2            |
| 21   | [Qwen3.8 27B](https://pydantic.dev/models/list/qwen3.8-27b/billing_ops.md)                       | –       | 70.0%  | 30.0%     | $0.16        | $0.014                  | 241.5 s            | 145.9 s                       | $1.09         |
| 31   | [Claude Haiku 5.5](https://pydantic.dev/models/list/claude-haiku-5.5/billing_ops.md)             | –       | 60.0%  | 80.0%     | $0.013       | $0.0056                 | 32.7 s             | 30.9 s                        | $0.2          |
| 31   | [Claude Sonnet 5](https://pydantic.dev/models/list/claude-sonnet-5/billing_ops.md)               | –       | 60.0%  | 60.0%     | $0.60        | $0.094                  | 170.0 s            | 40.5 s                        | $4            |
| 31   | [DeepSeek V4 Flash 0423](https://pydantic.dev/models/list/deepseek-v4-flash/billing_ops.md)      | –       | 60.0%  | 70.0%     | $0.029       | $0.0080                 | 91.0 s             | 56.1 s                        | $0.17         |
| 31   | [GPT-6 Sol](https://pydantic.dev/models/list/gpt-6-sol/billing_ops.md)                           | –       | 60.0%  | 80.0%     | $0.13        | $0.037                  | 21.9 s             | 17.0 s                        | $4            |
| 31   | [GPT-6.2 Sol](https://pydantic.dev/models/list/gpt-6.2-sol/billing_ops.md)                       | –       | 60.0%  | 80.0%     | $0.083       | $0.018                  | 27.1 s             | 16.2 s                        | $4            |
| 36   | [GPT-5.6 Terra](https://pydantic.dev/models/list/gpt-5.6-terra/billing_ops.md)                   | –       | 50.0%  | 80.0%     | $0.14        | $0.039                  | 18.9 s             | 18.4 s                        | $4.5          |
| 36   | [Kimi K2.6](https://pydantic.dev/models/list/kimi-k2.6/billing_ops.md)                           | –       | 50.0%  | 70.0%     | $0.14        | $0.10                   | 250.6 s            | 145.5 s                       | $1.71         |
| 38   | [GPT-6 Luna](https://pydantic.dev/models/list/gpt-6-luna/billing_ops.md)                         | –       | 40.0%  | 80.0%     | $0.0043      | $0.0034                 | 22.3 s             | 35.9 s                        | $0.2          |
| 38   | [Qwen3.5 Plus 2026-04-20](https://pydantic.dev/models/list/qwen3.5-plus-20260420/billing_ops.md) | –       | 40.0%  | 70.0%     | $0.097       | $0.26                   | 189.9 s            | 199.0 s                       | $0.68         |
| 40   | [GPT-5.6 Luna](https://pydantic.dev/models/list/gpt-5.6-luna/billing_ops.md)                     | –       | 30.0%  | 70.0%     | $0.0094      | $0.0050                 | 21.6 s             | 22.5 s                        | $0.45         |
| 40   | [Nemotron 3.5 Super VL](https://pydantic.dev/models/list/nemotron-3.5-super-vl/billing_ops.md)   | –       | 30.0%  | 30.0%     | $0.013       | $0.020                  | 25.4 s             | 62.7 s                        | $0.24         |
| 40   | [Qwen3.5-Flash](https://pydantic.dev/models/list/qwen3.5-flash-02-23/billing_ops.md)             | –       | 30.0%  | 40.0%     | $0.014       | $0.032                  | 81.0 s             | 94.0 s                        | $0.11         |
| 40   | [Qwen3.7 Flash](https://pydantic.dev/models/list/qwen3.7-flash/billing_ops.md)                   | –       | 30.0%  | 60.0%     | $0.017       | $0.012                  | 179.1 s            | 164.2 s                       | $0.055        |
| 44   | [Gemma 4 31B](https://pydantic.dev/models/list/gemma-4-31b-it/billing_ops.md)                    | –       | 20.0%  | 20.0%     | $0.10        | $0.021                  | 114.9 s            | 128.1 s                       | $0.18         |
