---
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 17 of 44."
canonical: https://pydantic.dev/models/list/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 17 of 44.
>
> Markdown copy of https://pydantic.dev/models/list/deepseek-v4-pro/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/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://pydantic.dev/models/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 - Billing ops](https://pydantic.dev/models/benchmarks/billing_ops.md)             | 90%          | 20%       | −70    | $0.23         | $0.11                    | 4 of 44  | https://pydantic.dev/models/list/deepseek-v4-pro/billing_ops.md       |
| [Pydantic AI - Customer support](https://pydantic.dev/models/benchmarks/customer_support.md)   | 50%          | 70%       | +20    | $0.045        | $0.072                   | 12 of 44 | https://pydantic.dev/models/list/deepseek-v4-pro/customer_support.md  |
| [Pydantic AI - SQL data analysis](https://pydantic.dev/models/benchmarks/sql_data_analysis.md) | 40%          | 70%       | +30    | $0.90         | $0.78                    | 27 of 44 | https://pydantic.dev/models/list/deepseek-v4-pro/sql_data_analysis.md |
| [Pydantic AI - Research & deck](https://pydantic.dev/models/benchmarks/research_deck.md)       | 69.6%        | 77.8%     | +8.2   | $0.38         | $0.63                    | 29 of 44 | https://pydantic.dev/models/list/deepseek-v4-pro/research_deck.md     |
| [Pydantic AI - Structured output](https://pydantic.dev/models/benchmarks/structured_output.md) | 90%          | –         | –      | $0.060        | –                        | 15 of 44 | https://pydantic.dev/models/list/deepseek-v4-pro/structured_output.md |
| [Pydantic AI - LLM Judge](https://pydantic.dev/models/benchmarks/llm_judge.md)                 | 90%          | –         | –      | $0.011        | –                        | 2 of 44  | https://pydantic.dev/models/list/deepseek-v4-pro/llm_judge.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 Billing ops, Structured output and LLM Judge, and 70% on Research & deck. Code mode varies widely: 20% on Billing ops, where it mostly resent identical `run_code` calls, against 78% on Research & deck and 70% on SQL data analysis. Its main recurring costs are long reasoning, repeated calls and running out of request budget on long tasks.

#### Strengths
- On Billing ops 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 Structured output it scaled £000 figures and handled bracket signs correctly in all 10 cases, and it reconciled totals to catch an unbracketed tax credit.
- On LLM Judge 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 Research & deck both modes used the restated revenue figures, followed the founder's exclusions and re-checked numbers before finishing.
- On SQL data analysis the code-mode passes used reusable search methods, such as backward latest-departure propagation for `arrive_by`.

#### Weaknesses
- On Billing ops 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 SQL data analysis, six runs exhausted the 80-request budget, five of them in tools mode, and SQL syntax errors such as unquoted `at` kept recurring.
- On Structured output 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 LLM Judge it was lenient on `no_contradiction` and `no_false_promise`, answering yes after its own notes had flagged a doubtful sentence.
- On Research & 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 Billing ops, tool calling clearly won (9/10 against 2/10) because code mode failed to move on after receiving `run_code` results.
- On SQL data analysis, code mode passed 7/10 against 4/10 and used fewer requests (562 against 695) at lower cost ($7.83 against $8.97).
- On SQL data analysis 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 Research & 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.
