---
title: "Qwen3.8 Max (0902) 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 70.4%, code mode 86.6% over four benchmarks; rank 21 of 44."
canonical: https://pydantic.dev/models/list/qwen3.8-max-0902/pydantic_ai/
---

# Qwen3.8 Max (0902) 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 70.4%, code mode 86.6% over four benchmarks; rank 21 of 44.
>
> Markdown copy of https://pydantic.dev/models/list/qwen3.8-max-0902/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/qwen3.8-max-0902.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            | 70.4%        | –         |
| Score, the four with a code mode run | 70.6%        | 86.6%     |
| Cost per task, all six               | $0.44        | –         |
| Cost per task, the four              | $0.64        | $0.46     |

## 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    | $0.64         | $0.099                   | 4 of 44  | https://pydantic.dev/models/list/qwen3.8-max-0902/billing_ops.md       |
| [Pydantic AI - Customer support](https://pydantic.dev/models/benchmarks/customer_support.md)   | 20%          | 50%       | +30    | $0.14         | $0.23                    | 38 of 44 | https://pydantic.dev/models/list/qwen3.8-max-0902/customer_support.md  |
| [Pydantic AI - SQL data analysis](https://pydantic.dev/models/benchmarks/sql_data_analysis.md) | 80%          | 100%      | +20    | $0.97         | $0.74                    | 16 of 44 | https://pydantic.dev/models/list/qwen3.8-max-0902/sql_data_analysis.md |
| [Pydantic AI - Research & deck](https://pydantic.dev/models/benchmarks/research_deck.md)       | 92.6%        | 96.3%     | +3.7   | $0.81         | $0.79                    | 4 of 44  | https://pydantic.dev/models/list/qwen3.8-max-0902/research_deck.md     |
| [Pydantic AI - Structured output](https://pydantic.dev/models/benchmarks/structured_output.md) | 60%          | –         | –      | $0.059        | –                        | 35 of 44 | https://pydantic.dev/models/list/qwen3.8-max-0902/structured_output.md |
| [Pydantic AI - LLM Judge](https://pydantic.dev/models/benchmarks/llm_judge.md)                 | 80%          | –         | –      | $0.013        | –                        | 9 of 44  | https://pydantic.dev/models/list/qwen3.8-max-0902/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 passed most cases, and code mode scored at or above tool calling everywhere both were run: Billing ops 100% vs 90%, Research & deck 96% vs 93%, SQL data analysis 100% vs 80%. Tool-calling-only results were 60% on Structured output and 80% on LLM Judge. Its main failure patterns were cutting work short when context or request budgets ran low, dropping correctly reasoned values from the final tool call, and applying rubric strictness unevenly.

#### Strengths
- On Billing ops, all 4 write tasks produced exactly the expected changes in both modes, including void, credit note, released allocations and oldest-first payment allocation, with exact margins and rounding.
- On Research & deck, both runs avoided every data-room trap (restated September figure, recall disclosure, excluded registrations and photo) and asked the founder one consolidated question.
- On Structured output, the figures in its reasoning were almost entirely right in all 10 cases, including £000 scaling, bracket signs, reversed tax signs and group versus parent columns.
- On LLM Judge, it passed all 7 support-inbox cases, citing specific invoice numbers, dates and correct date arithmetic in its reasons.
- On SQL data analysis, both modes solved every single-journey case, including walking transfers and the service day after midnight.

#### Weaknesses
- On Structured output, 3 of 4 failures came from values listed correctly in reasoning but left out of the single `accounts` call; one case lost about 44 balance-sheet fields.
- On Billing ops tool calling, it judged ~768 lookups too many, switched to proxy checks, and reported 6 of 12 overcharged invoices.
- On SQL data analysis tool calling, it called a `timed_tour` answer "verified and optimal" without listing all departures, and hit the 80-request limit on `tour`.
- On LLM Judge, it gave 3 wrong verdicts on 16 seed-deck questions, twice noting a problem in its reasoning and answering yes anyway.
- On Research & deck code mode, it hit two sandbox errors (`Path.relative_to`, writing to `/tmp`) and viewed 10 images one per turn.

#### Tool calling compared with code mode
- On Billing ops, code mode cost about $0.99 in total against $6.36 for tool calling, and was 7–26× cheaper on large audit tasks because `asyncio.gather` results stayed in variables instead of filling the context.
- On SQL data analysis, code mode used fewer requests on 9 of 10 cases (360 vs 489 total, about $7.40 vs $9.70) and passed both tour cases that tool calling failed.
- On Research & deck, tool calling was leaner, batching 3–4 parallel reads per turn and needing 23 requests against code mode's 40, at nearly the same cost.
- On SQL data analysis, code mode's SVGs often drew every network stop and reached 80k–160k characters, a drawback not seen in tool calling.
- On Billing ops and SQL data analysis, the two modes performed about the same on small or single-step tasks.
