---
title: "Claude Sonnet 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 71.7%, code mode 81.5% over four benchmarks; rank 15 of 32."
canonical: https://models.pydantic.dev/models/claude-sonnet-5.5/pydantic_ai/
---

# Claude Sonnet 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 71.7%, code mode 81.5% over four benchmarks; rank 15 of 32.
>
> Markdown copy of https://models.pydantic.dev/models/claude-sonnet-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-sonnet-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            | 71.7%        | –         |
| Score, the four with a code mode run | 72.5%        | 81.5%     |
| Cost per task, all six               | $0.26        | –         |
| Cost per task, the four              | $0.37        | $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)  | 80%          | 90%       | +10    | $0.33         | $0.041                   | 16 of 32 | https://models.pydantic.dev/models/claude-sonnet-5.5/accounting_platform.md |
| [Pydantic AI Support Inbox](https://models.pydantic.dev/benchmarks/support_inbox.md)     | 50%          | 50%       | ±0     | $0.19         | $0.073                   | 10 of 32 | https://models.pydantic.dev/models/claude-sonnet-5.5/support_inbox.md       |
| [Pydantic AI Transit Planner](https://models.pydantic.dev/benchmarks/transit_planner.md) | 80%          | 100%      | +20    | $0.17         | $0.19                    | 15 of 32 | https://models.pydantic.dev/models/claude-sonnet-5.5/transit_planner.md     |
| [Pydantic AI Seed Deck](https://models.pydantic.dev/benchmarks/seed_deck.md)             | 80%          | 85.9%     | +5.9   | $0.78         | $0.80                    | 18 of 32 | https://models.pydantic.dev/models/claude-sonnet-5.5/seed_deck.md           |
| [Pydantic AI Companies House](https://models.pydantic.dev/benchmarks/companies_house.md) | 100%         | –         | –      | $0.081        | –                        | 1 of 32  | https://models.pydantic.dev/models/claude-sonnet-5.5/companies_house.md     |
| [Pydantic AI Judge Accuracy](https://models.pydantic.dev/benchmarks/judge_accuracy.md)   | 40%          | –         | –      | $0.014        | –                        | 29 of 32 | https://models.pydantic.dev/models/claude-sonnet-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 scored between 40% and 100%. It was strongest on structured extraction (companies_house 100%, tools only) and on multi-step data tasks, where code mode scored as high as or higher than tool calling on every benchmark that ran both (accounting_platform 90% vs 80%, seed_deck 86% vs 80%, transit_planner 100% vs 80%). It was weakest as an evaluator (judge_accuracy 40%), where its verdicts were stricter than the majority labels.

#### Strengths
- In companies_house it passed all 10 cases in a single request each, scaling £000 figures, keeping signs right and separating group from parent figures even where they nearly matched.
- In accounting_platform it computed tutor margins exactly in all four runs and performed the void-and-reissue correction in the right order, reading before writing.
- In seed_deck both runs caught every planted trap (unsigned agreement, restated revenue, cancelled order) and batched founder questions into one message.
- In transit_planner every run rebuilt the timetable correctly and chose a suitable algorithm per question, such as backward search for arrive-by and subset DP for tours.
- In judge_accuracy all 25 key-point verdicts matched the majority, with reasons citing the specific invoice, date or step.

#### Weaknesses
- In judge_accuracy it marked merely unsupported statements as contradictions and assurances as promises, and in one case its verdict contradicted its own stated reason.
- In accounting_platform (tools) it made unrequested probing writes, recording payments of 0 and 1 plus a refund after a correct payment.
- In seed_deck it presented unverified claims as fact, such as carriers "in trial" that the roadmap listed as a 2027 goal, and it read only 2 of 12 investor updates in tool mode.
- In transit_planner (tools) both failures were reasoning slips: a wrong time conversion (09:00 as 36000) and a hard-coded minimum-stay rule.
- In transit_planner the unquoted reserved word `at` caused a SQL parse error in all 10 tool runs and at least 6 code-mode runs.

#### Tool calling compared with code mode
- In accounting_platform code mode was more accurate (9/10 vs 8/10) and cost about $0.41 against $3.32, because large scans ran in a script instead of reading each record through tool calls.
- In accounting_platform tool calling sampled 6 of 384 invoices on the largest audit, while code mode loaded all the data and failed only on a logic bug in its checker.
- In transit_planner code mode reached 10/10 against 8/10 at about 8% higher total cost, with search-heavy cases such as `tour` cheaper in code ($0.27 vs $0.42) and simple cases dearer.
- In seed_deck cost was nearly equal, and code mode read the data room more completely, though two of its `run_code` calls failed on sandbox restrictions.
- In transit_planner and accounting_platform, code mode lost turns to sandbox limits (nested-call cap, unavailable modules such as `fractions`), but it recovered in every case.
