---
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 83.8%, code mode 83.1% over four benchmarks; rank 5 of 32."
canonical: https://models.pydantic.dev/models/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 83.8%, code mode 83.1% over four benchmarks; rank 5 of 32.
>
> Markdown copy of https://models.pydantic.dev/models/claude-fable-5.2/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-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://models.pydantic.dev/codemode.md).

|                                      | Tool calling | Code mode |
| ------------------------------------ | ------------ | --------- |
| Score, all six benchmarks            | 83.8%        | –         |
| Score, the four with a code mode run | 80.6%        | 83.1%     |
| Cost per task, all six               | $1.72        | –         |
| Cost per task, the four              | $2.46        | $1.30     |

## 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    | $1.24         | $0.19                    | 2 of 32  | https://models.pydantic.dev/models/claude-fable-5.2/accounting_platform.md |
| [Pydantic AI Support Inbox](https://models.pydantic.dev/benchmarks/support_inbox.md)     | 40%          | 40%       | ±0     | $0.38         | $0.54                    | 17 of 32 | https://models.pydantic.dev/models/claude-fable-5.2/support_inbox.md       |
| [Pydantic AI Transit Planner](https://models.pydantic.dev/benchmarks/transit_planner.md) | 100%         | 100%      | ±0     | $0.72         | $0.54                    | 1 of 32  | https://models.pydantic.dev/models/claude-fable-5.2/transit_planner.md     |
| [Pydantic AI Seed Deck](https://models.pydantic.dev/benchmarks/seed_deck.md)             | 92.6%        | 92.6%     | ±0     | $7.52         | $3.92                    | 3 of 32  | https://models.pydantic.dev/models/claude-fable-5.2/seed_deck.md           |
| [Pydantic AI Companies House](https://models.pydantic.dev/benchmarks/companies_house.md) | 90%          | –         | –      | $0.36         | –                        | 14 of 32 | https://models.pydantic.dev/models/claude-fable-5.2/companies_house.md     |
| [Pydantic AI Judge Accuracy](https://models.pydantic.dev/benchmarks/judge_accuracy.md)   | 90%          | –         | –      | $0.083        | –                        | 2 of 32  | https://models.pydantic.dev/models/claude-fable-5.2/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: accounting_platform 90% tools / 100% code mode, seed_deck 93% / 93%, transit_planner 100% / 100%, and companies_house and judge_accuracy at 90% each (tools only). Its failures were few and specific: one partial audit, one note-over-statement reading, and one narrow reading of a judging question. Where both modes ran, code mode cost less on large or multi-step tasks and gave the same quality of answers.

#### Strengths
- On accounting_platform it got every handbook-derived figure right and passed all four write runs, allocating payments oldest-due first and ordering the attendance–void–reissue correction correctly.
- On companies_house every scored figure matched across the 9 passes, including £000 unit scaling, tax-credit signs, and separating group from parent figures that differ by small amounts.
- On seed_deck it read all files, tables, PDFs and images before asking the founder anything, raised real source conflicts, and followed the brief's slide order, colours and exclusions.
- On transit_planner it implemented untimed-call interpolation, transfer margins, access rules and start walks correctly in all 20 runs, and often checked optimality with extra rounds or brute force.
- On judge_accuracy 60 of 63 verdicts matched the reference majority, with short reasons that quote evidence such as an `integrations: []` field.

#### Weaknesses
- On accounting_platform with tool calling it screened a 384-invoice audit by opening only three invoices and missed nine of twelve errors, even though it had requests to spare.
- On transit_planner tool calling it produced 10 SQL errors in 7 runs, mostly from leaving DuckDB's reserved word `at` unquoted, and it skipped the previous service day in 6 runs.
- On accounting_platform code mode, 5 of 10 runs guessed response shapes or pagination fields, and in one of them a crash came after `record_payment` had already run.
- On companies_house it took share capital from a note (`100`) instead of the balance sheet's dash, and it sometimes sent `0` where `null` was appropriate.
- On judge_accuracy it answered a climate-audience question no while citing replaced diesel vans as its reason, and it applied the standard for unsupported claims inconsistently.

#### Tool calling compared with code mode
- On accounting_platform, code mode audits cost $0.15–$0.38 against $1.10–$4.34 with tool calling, because the data stayed in the sandbox; the only failure came from tool calling.
- On seed_deck, code mode cost $3.92 against $7.52 despite 6 more requests, because it patched the HTML in Python rather than re-sending a 31.9k-character file.
- On transit_planner, code mode wrote connection-scan or round-based searches in Python, had 1 error against 10 for tool calling, and was cheaper on hard cases (`timed_tour` $0.67 vs $1.45).
- On simple lookups and writes in accounting_platform, and on simple transit_planner cases, the two modes gave the same answers at similar cost.
- Code mode's typical cost was one lost request to a guessed pagination field or a type-check slip, as seen on accounting_platform and seed_deck.
