---
title: "DeepSeek V4 Pro 0423 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.6%, code mode 59.4% over four benchmarks; rank 16 of 32."
canonical: https://models.pydantic.dev/models/deepseek-v4-pro/pydantic_ai/
---

# DeepSeek V4 Pro 0423 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.6%, code mode 59.4% over four benchmarks; rank 16 of 32.
>
> Markdown copy of https://models.pydantic.dev/models/deepseek-v4-pro/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/deepseek-v4-pro.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.6%        | –         |
| Score, the four with a code mode run | 62.4%        | 59.4%     |
| Cost per task, all six               | $0.27        | –         |
| Cost per task, the four              | $0.39        | $0.40     |

## 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%          | 20%       | −70    | $0.23         | $0.11                    | 2 of 32  | https://models.pydantic.dev/models/deepseek-v4-pro/accounting_platform.md |
| [Pydantic AI Support Inbox](https://models.pydantic.dev/benchmarks/support_inbox.md)     | 50%          | 70%       | +20    | $0.045        | $0.072                   | 10 of 32 | https://models.pydantic.dev/models/deepseek-v4-pro/support_inbox.md       |
| [Pydantic AI Transit Planner](https://models.pydantic.dev/benchmarks/transit_planner.md) | 40%          | 70%       | +30    | $0.90         | $0.78                    | 24 of 32 | https://models.pydantic.dev/models/deepseek-v4-pro/transit_planner.md     |
| [Pydantic AI Seed Deck](https://models.pydantic.dev/benchmarks/seed_deck.md)             | 69.6%        | 77.8%     | +8.2   | $0.38         | $0.63                    | 25 of 32 | https://models.pydantic.dev/models/deepseek-v4-pro/seed_deck.md           |
| [Pydantic AI Companies House](https://models.pydantic.dev/benchmarks/companies_house.md) | 90%          | –         | –      | $0.060        | –                        | 14 of 32 | https://models.pydantic.dev/models/deepseek-v4-pro/companies_house.md     |
| [Pydantic AI Judge Accuracy](https://models.pydantic.dev/benchmarks/judge_accuracy.md)   | 90%          | –         | –      | $0.011        | –                        | 2 of 32  | https://models.pydantic.dev/models/deepseek-v4-pro/judge_accuracy.md      |

## How it did on the Pydantic AI benchmarks

Written by an LLM from reviews of every run.

#### Overall
The model is accurate on figures and rules in tool calling, scoring 90% on accounting_platform, companies_house and judge_accuracy, and 70% on seed_deck. Code mode varies widely: 20% on accounting_platform, where it mostly resent identical `run_code` calls, against 78% on seed_deck and 70% on transit_planner. Its main recurring costs are long reasoning, repeated calls and running out of request budget on long tasks.

#### Strengths
- On accounting_platform in tool calling, write tasks such as `large-correction-2` and `large-record_payment-1` matched expected changes exactly, including an existing same-day allocation.
- On companies_house it scaled £000 figures and handled bracket signs correctly in all 10 cases, and it reconciled totals to catch an unbracketed tax credit.
- On judge_accuracy it answered each case in one request for about $0.11 in total, and disagreed with the reference-judge majority on only 1 of 65 verdicts.
- On seed_deck both modes used the restated revenue figures, followed the founder's exclusions and re-checked numbers before finishing.
- On transit_planner the code-mode passes used reusable search methods, such as backward latest-departure propagation for `arrive_by`.

#### Weaknesses
- On accounting_platform in code mode, 6 cases looped on an identical `run_code` call, four of them until the 60-request limit, and three ended with made-up answers.
- On transit_planner, six runs exhausted the 80-request budget, five of them in tools mode, and SQL syntax errors such as unquoted `at` kept recurring.
- On companies_house it treated dash-shown lines inconsistently, which caused the one failure, and in 3 cases it split the final `accounts` call so the submissions were rejected.
- On judge_accuracy it was lenient on `no_contradiction` and `no_false_promise`, answering yes after its own notes had flagged a doubtful sentence.
- On seed_deck the tools run never asked the founder about slide structure, and both modes guessed the cover photo by file size.

#### Tool calling compared with code mode
- On accounting_platform, tool calling clearly won (9/10 against 2/10) because code mode failed to move on after receiving `run_code` results.
- On transit_planner, code mode passed 7/10 against 4/10 and used fewer requests (562 against 695) at lower cost ($7.83 against $8.97).
- On transit_planner the code-mode gain was uneven: `one_change` rose from 48 to 74 requests, and neither mode passed either tour case or the departure profile.
- On seed_deck, code mode passed where tools failed but cost more (30 requests and $0.63 against 17 and $0.38); this rests on one case per mode.
