---
title: "Qwen3.7 Flash 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 25%, code mode 36.9% over four benchmarks; rank 44 of 44."
canonical: https://pydantic.dev/models/list/qwen3.7-flash/pydantic_ai/
---

# Qwen3.7 Flash 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 25%, code mode 36.9% over four benchmarks; rank 44 of 44.
>
> Markdown copy of https://pydantic.dev/models/list/qwen3.7-flash/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.7-flash.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            | 25%          | –         |
| Score, the four with a code mode run | 10%          | 36.9%     |
| Cost per task, all six               | $0.031       | –         |
| Cost per task, the four              | $0.045       | $0.054    |

## 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)             | 30%          | 60%       | +30    | $0.017        | $0.012                   | 40 of 44 | https://pydantic.dev/models/list/qwen3.7-flash/billing_ops.md       |
| [Pydantic AI - Customer support](https://pydantic.dev/models/benchmarks/customer_support.md)   | 10%          | 0%        | −10    | $0.0073       | $0.0021                  | 43 of 44 | https://pydantic.dev/models/list/qwen3.7-flash/customer_support.md  |
| [Pydantic AI - SQL data analysis](https://pydantic.dev/models/benchmarks/sql_data_analysis.md) | 0%           | 10%       | +10    | $0.064        | $0.082                   | 38 of 44 | https://pydantic.dev/models/list/qwen3.7-flash/sql_data_analysis.md |
| [Pydantic AI - Research & deck](https://pydantic.dev/models/benchmarks/research_deck.md)       | 0%           | 77.8%     | +77.8  | $0.093        | $0.12                    | 43 of 44 | https://pydantic.dev/models/list/qwen3.7-flash/research_deck.md     |
| [Pydantic AI - Structured output](https://pydantic.dev/models/benchmarks/structured_output.md) | 50%          | –         | –      | $0.0020       | –                        | 39 of 44 | https://pydantic.dev/models/list/qwen3.7-flash/structured_output.md |
| [Pydantic AI - LLM Judge](https://pydantic.dev/models/benchmarks/llm_judge.md)                 | 60%          | –         | –      | $0.0005       | –                        | 27 of 44 | https://pydantic.dev/models/list/qwen3.7-flash/llm_judge.md         |

## How it did on the Pydantic AI benchmarks

Written by an LLM from reviews of every run.

#### Overall
The model is very cheap, often well under a cent per case, and handles direct lookups and statement reading reasonably well. It is unreliable on tasks that need exhaustive checking, multi-step search or long file edits. Its recurring failure is submitting outputs that contradict its own reasoning. Code mode helped where it was available, but neither mode handled the hardest planning tasks.

#### Strengths
- In Billing ops it passed `invoice_total`, `owed_on_invoices` and the multi-step `large-correction-2` in both modes, the last with the exact diff.
- In Structured output it almost always read balance sheet and P&L figures correctly, including ×1000 scaling and bracket signs, at $0.0015–0.0025 per case.
- In Structured output it used validator errors to fix tax signs and to find a missing creditors line.
- In LLM Judge its reasons cited specific amounts, card endings and slide numbers, and it got all 8 verdicts right in Research & deck-1f08e39543c9`.
- In SQL data analysis it always read DATA.md first and filtered services correctly by weekday and service changes.

#### Weaknesses
- Submitted output contradicted its reasoning in LLM Judge (2 failures) and Structured output (3 failures), for example sending `null` for wages it had already identified.
- In Billing ops tool-calling mode it opened about 12–17 of hundreds of invoices and answered `[]` on audit questions.
- In Billing ops it left out handbook rules in 5 runs, including passing `allocations=[]` on both `record_payment` runs.
- In SQL data analysis it never built a search algorithm and passed 1 of 20 runs, with 15 hitting the 80-request limit.
- In Research & deck tool-calling mode it fell into a degenerate repetition loop and sent an empty turn, which the provider rejected with HTTP 400.

#### Tool calling compared with code mode
- In Billing ops code mode passed 6 of 10 runs to tool calling's 4, mainly by checking every record in audits like `duplicate_lines` and `missed_billed`, and it was usually cheaper.
- In Billing ops `large-wrong_invoices`, code mode hit the 100-nested-call limit and wrongly assumed variables persisted between `run_code` calls.
- In Research & deck code mode passed by editing the deck in place and re-running `check_deck`, while tool calling had to rewrite a ~44k-character file each time and stalled.
- In SQL data analysis both modes hit the request limit about equally often (8 vs 7); code mode produced the only pass, while tool calling submitted 3 answers, all wrong.
- Structured output and LLM Judge were run only in tool-calling mode, so they give no comparison.
