---
title: "Claude Fable 5.2 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 89.4%, code mode 89.1% over four benchmarks; rank 3 of 44."
canonical: https://pydantic.dev/models/list/claude-fable-5.2/pydantic_ai/
---

# Claude Fable 5.2 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 89.4%, code mode 89.1% over four benchmarks; rank 3 of 44.
>
> Markdown copy of https://pydantic.dev/models/list/claude-fable-5.2/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-fable-5.2.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            | 89.4%        | –         |
| Score, the four with a code mode run | 89.1%        | 89.1%     |
| Cost per task, all six               | $1.52        | –         |
| Cost per task, the four              | $2.17        | $1.71     |

## 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)             | 90%          | 100%      | +10    | $1.27         | $0.16                    | 4 of 44  | https://pydantic.dev/models/list/claude-fable-5.2/billing_ops.md       |
| [Pydantic AI - Customer support](https://pydantic.dev/models/benchmarks/customer_support.md)   | 70%          | 60%       | −10    | $0.34         | $0.48                    | 1 of 44  | https://pydantic.dev/models/list/claude-fable-5.2/customer_support.md  |
| [Pydantic AI - SQL data analysis](https://pydantic.dev/models/benchmarks/sql_data_analysis.md) | 100%         | 100%      | ±0     | $0.79         | $0.58                    | 1 of 44  | https://pydantic.dev/models/list/claude-fable-5.2/sql_data_analysis.md |
| [Pydantic AI - Research & deck](https://pydantic.dev/models/benchmarks/research_deck.md)       | 96.3%        | 96.3%     | ±0     | $6.27         | $5.64                    | 1 of 44  | https://pydantic.dev/models/list/claude-fable-5.2/research_deck.md     |
| [Pydantic AI - Structured output](https://pydantic.dev/models/benchmarks/structured_output.md) | 90%          | –         | –      | $0.35         | –                        | 15 of 44 | https://pydantic.dev/models/list/claude-fable-5.2/structured_output.md |
| [Pydantic AI - LLM Judge](https://pydantic.dev/models/benchmarks/llm_judge.md)                 | 90%          | –         | –      | $0.085        | –                        | 2 of 44  | https://pydantic.dev/models/list/claude-fable-5.2/llm_judge.md         |

## How it did on the Pydantic AI benchmarks

Written by an LLM from reviews of every run.

#### Overall
The model passed 9 or 10 of 10 cases on most benchmarks: 19/20 on Billing ops, 20/20 on SQL data analysis, 9/10 on Structured output and LLM Judge, and the single Research & deck case in both modes. Where both modes ran, code mode matched or beat tool calling on accuracy and cost less overall. Its main failure pattern is sampling a subset of records in tool calling when it should check every one.

#### Strengths
- On Billing ops, all 4 write cases were exact in both modes, including a void, re-invoice and credit sequence and an oldest-due-first payment allocation.
- On SQL data analysis, it read `DATA.md` first and applied rules such as distance interpolation, previous-day offsets and the 120 s + walk change margin, using a DuckDB earliest-arrival search in tools mode and a Connection Scan in code mode.
- On Structured output, it handled £000 scaling, bracket signs and group against parent figures without error, including near-identical values such as 14896091 against 14896135.
- On Research & deck, it read all files before asking the founder questions and cross-checked figures, finding case-study numbers that conflict with the order book and leaving them out.
- On LLM Judge, nearly every reason quotes the exact text or number it relied on, and it caught contradictions such as a reply mentioning integrations the account lacks.

#### Weaknesses
- On Billing ops `large-wrong_invoices-1` in tool calling, it opened about 6 invoices instead of repricing all of them and found 3 of the 12 wrong invoices.
- On Billing ops in tool calling, brute-force checks pulled in hundreds of `get_invoice` results, so `large-duplicate_lines-1` cost $4.36 and `large-missed_billed-1` cost $4.17.
- On Structured output tier1-11022760, it returned share capital of 100 from a note where the balance sheet showed nil, which failed the case.
- On LLM Judge, it answered `climate_audience`=no despite citing '6 diesel vans replaced', which is stricter than the question's own example, and in other cases it flagged problems but still answered yes.
- On Research & deck it wasted effort, rewriting a 33.7k-character deck after `check_deck` had returned `ok` in tool mode and guessing PDF page counts in code mode, which caused runtime errors.

#### Tool calling compared with code mode
- On Billing ops, code mode scored 10/10 against 9/10 and cost about $1.58 against $12.68, using `asyncio.gather` to fetch all records and catch all 12 wrong invoices.
- On SQL data analysis, accuracy was identical (10/10 each) but code mode cost $5.82 against $7.88, with the largest savings on `tour` ($0.94 against $1.94), while tools mode took fewer requests on simple cases such as `arrive_by` (9 against 13).
- On Research & deck, tool calling finished in 15 requests against 43 for code mode, yet code mode cost about $0.60 less and added layout checks such as SVG label-overlap detection.
- On SQL data analysis SVG tasks, code mode computed coordinates in Python, which avoided the hand-transcription error seen in tools mode.
- No code-mode run exists for Structured output or LLM Judge, so those benchmarks give no comparison.
