---
title: "Claude Opus 5.5 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 82.7%, code mode 84.5% over four benchmarks; rank 6 of 32."
canonical: https://models.pydantic.dev/models/claude-opus-5.5/pydantic_ai/
---

# Claude Opus 5.5 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 82.7%, code mode 84.5% over four benchmarks; rank 6 of 32.
>
> Markdown copy of https://models.pydantic.dev/models/claude-opus-5.5/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/claude-opus-5.5.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            | 82.7%        | –         |
| Score, the four with a code mode run | 81.5%        | 84.5%     |
| Cost per task, all six               | $0.45        | –         |
| Cost per task, the four              | $0.63        | $0.28     |

## 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)  | 90%          | 100%      | +10    | $0.64         | $0.080                   | 2 of 32  | https://models.pydantic.dev/models/claude-opus-5.5/accounting_platform.md |
| [Pydantic AI Support Inbox](https://models.pydantic.dev/benchmarks/support_inbox.md)     | 60%          | 50%       | −10    | $0.10         | $0.14                    | 2 of 32  | https://models.pydantic.dev/models/claude-opus-5.5/support_inbox.md       |
| [Pydantic AI Transit Planner](https://models.pydantic.dev/benchmarks/transit_planner.md) | 90%          | 100%      | +10    | $0.26         | $0.20                    | 10 of 32 | https://models.pydantic.dev/models/claude-opus-5.5/transit_planner.md     |
| [Pydantic AI Seed Deck](https://models.pydantic.dev/benchmarks/seed_deck.md)             | 85.9%        | 88.1%     | +2.2   | $1.49         | $0.71                    | 9 of 32  | https://models.pydantic.dev/models/claude-opus-5.5/seed_deck.md           |
| [Pydantic AI Companies House](https://models.pydantic.dev/benchmarks/companies_house.md) | 90%          | –         | –      | $0.17         | –                        | 14 of 32 | https://models.pydantic.dev/models/claude-opus-5.5/companies_house.md     |
| [Pydantic AI Judge Accuracy](https://models.pydantic.dev/benchmarks/judge_accuracy.md)   | 80%          | –         | –      | $0.033        | –                        | 7 of 32  | https://models.pydantic.dev/models/claude-opus-5.5/judge_accuracy.md      |

## How it did on the Pydantic AI benchmarks

Written by an LLM from reviews of every run.

#### Overall
Across five benchmarks the model passed most cases in both modes: 90% tools / 100% code mode on accounting_platform and transit_planner, 86% / 88% on seed_deck, 90% on companies_house and 80% on judge_accuracy (tool calling only). Its failures were few and specific: a skipped full scan, a silent SQL column clash, a share-capital substitution and two over-strict verdicts. Where both modes were run, code mode matched or beat tool calling and cost roughly half or less.

#### Strengths
- On accounting_platform it applied the business rules exactly in every case, including split lessons, gross tax removal and half-up rounding, and completed all 4 write tasks correctly in both modes.
- On transit_planner it wrote real search algorithms (round-based SQL searches, connection scans, recursive-CTE dynamic programming) and got the arrival time right in all 20 runs.
- On seed_deck it found the data-room traps (unsigned supply agreement, cancelled order, restated revenue), and every recomputed figure matched the source data.
- On companies_house it handled £000 scaling, signs, group-versus-parent separation and creditor splits correctly, with one request and no validation errors per case.
- On judge_accuracy 59 of 63 verdicts matched the panel majority, including all 24 seed deck verdicts, and each reason quoted the figure it relied on.

#### Weaknesses
- On accounting_platform in tool calling it skipped the full scan on the large audit, opened only three invoices and found 3 of 12 wrong invoices.
- On transit_planner a duplicate column name `n` in a tools-mode SQL query produced an invalid leg, and all 10 tools runs hit parser errors on the unquoted reserved word `at`.
- On companies_house it replaced a balance-sheet dash with a note value for share capital (100 instead of 0) and did not flag the substitution.
- On judge_accuracy it was too strict on borderline wording in two cases, against a 4-to-2 majority, while being lenient on similar wording elsewhere.
- On seed_deck its closing notes ran to about 400 words where a short note was asked for, and in tools mode it rewrote an already-passing deck.

#### Tool calling compared with code mode
- On accounting_platform code mode passed 10/10 against 9/10 and cost $0.80 against $6.43, with the three large scans costing $0.43 against $5.27.
- On transit_planner code mode passed 10/10 against 9/10 with 108 requests against 156 and $1.97 against $2.64, and it handled service days and `service_changes` consistently.
- On seed_deck both modes passed, but code mode cost $0.71 against $1.49 by reading files in bulk and building charts from query rows.
- Code mode's own failures were sandbox issues: guessed paging fields and response shapes, nested-call and memory limits, and unsupported functions such as `__import__` and `os.walk`.
- companies_house and judge_accuracy were run only with tool calling, so they give no comparison.
