---
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 16 of 44."
canonical: https://pydantic.dev/models/list/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 16 of 44.
>
> Markdown copy of https://pydantic.dev/models/list/claude-sonnet-5.5/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/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://pydantic.dev/models/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 - Billing ops](https://pydantic.dev/models/benchmarks/billing_ops.md)             | 80%          | 90%       | +10    | $0.33         | $0.041                   | 18 of 44 | https://pydantic.dev/models/list/claude-sonnet-5.5/billing_ops.md       |
| [Pydantic AI - Customer support](https://pydantic.dev/models/benchmarks/customer_support.md)   | 50%          | 50%       | ±0     | $0.19         | $0.073                   | 12 of 44 | https://pydantic.dev/models/list/claude-sonnet-5.5/customer_support.md  |
| [Pydantic AI - SQL data analysis](https://pydantic.dev/models/benchmarks/sql_data_analysis.md) | 80%          | 100%      | +20    | $0.17         | $0.19                    | 16 of 44 | https://pydantic.dev/models/list/claude-sonnet-5.5/sql_data_analysis.md |
| [Pydantic AI - Research & deck](https://pydantic.dev/models/benchmarks/research_deck.md)       | 80%          | 85.9%     | +5.9   | $0.78         | $0.80                    | 22 of 44 | https://pydantic.dev/models/list/claude-sonnet-5.5/research_deck.md     |
| [Pydantic AI - Structured output](https://pydantic.dev/models/benchmarks/structured_output.md) | 100%         | –         | –      | $0.081        | –                        | 1 of 44  | https://pydantic.dev/models/list/claude-sonnet-5.5/structured_output.md |
| [Pydantic AI - LLM Judge](https://pydantic.dev/models/benchmarks/llm_judge.md)                 | 40%          | –         | –      | $0.014        | –                        | 41 of 44 | https://pydantic.dev/models/list/claude-sonnet-5.5/llm_judge.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 (Structured output 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 (Billing ops 90% vs 80%, Research & deck 86% vs 80%, SQL data analysis 100% vs 80%). It was weakest as an evaluator (LLM Judge 40%), where its verdicts were stricter than the majority labels.

#### Strengths
- In Structured output 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 Billing ops it computed tutor margins exactly in all four runs and performed the void-and-reissue correction in the right order, reading before writing.
- In Research & deck both runs caught every planted trap (unsigned agreement, restated revenue, cancelled order) and batched founder questions into one message.
- In SQL data analysis 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 LLM Judge all 25 key-point verdicts matched the majority, with reasons citing the specific invoice, date or step.

#### Weaknesses
- In LLM Judge it marked merely unsupported statements as contradictions and assurances as promises, and in one case its verdict contradicted its own stated reason.
- In Billing ops (tools) it made unrequested probing writes, recording payments of 0 and 1 plus a refund after a correct payment.
- In Research & 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 SQL data analysis (tools) both failures were reasoning slips: a wrong time conversion (09:00 as 36000) and a hard-coded minimum-stay rule.
- In SQL data analysis 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 Billing ops 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 Billing ops 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 SQL data analysis 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 Research & 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 SQL data analysis and Billing ops, code mode lost turns to sandbox limits (nested-call cap, unavailable modules such as `fractions`), but it recovered in every case.
