---
title: "GLM 5.3 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 59.9%, code mode 56.6% over four benchmarks; rank 29 of 44."
canonical: https://pydantic.dev/models/list/glm-5.3-flash/pydantic_ai/
---

# GLM 5.3 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 59.9%, code mode 56.6% over four benchmarks; rank 29 of 44.
>
> Markdown copy of https://pydantic.dev/models/list/glm-5.3-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/glm-5.3-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            | 59.9%        | –         |
| Score, the four with a code mode run | 54.9%        | 56.6%     |
| Cost per task, all six               | $0.054       | –         |
| Cost per task, the four              | $0.078       | $0.069    |

## 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)             | 70%          | 70%       | ±0     | $0.10         | $0.018                   | 21 of 44 | https://pydantic.dev/models/list/glm-5.3-flash/billing_ops.md       |
| [Pydantic AI - Customer support](https://pydantic.dev/models/benchmarks/customer_support.md)   | 60%          | 40%       | −20    | $0.0049       | $0.011                   | 3 of 44  | https://pydantic.dev/models/list/glm-5.3-flash/customer_support.md  |
| [Pydantic AI - SQL data analysis](https://pydantic.dev/models/benchmarks/sql_data_analysis.md) | 0%           | 20%       | +20    | $0.072        | $0.11                    | 38 of 44 | https://pydantic.dev/models/list/glm-5.3-flash/sql_data_analysis.md |
| [Pydantic AI - Research & deck](https://pydantic.dev/models/benchmarks/research_deck.md)       | 89.6%        | 96.3%     | +6.7   | $0.13         | $0.14                    | 9 of 44  | https://pydantic.dev/models/list/glm-5.3-flash/research_deck.md     |
| [Pydantic AI - Structured output](https://pydantic.dev/models/benchmarks/structured_output.md) | 60%          | –         | –      | $0.0070       | –                        | 35 of 44 | https://pydantic.dev/models/list/glm-5.3-flash/structured_output.md |
| [Pydantic AI - LLM Judge](https://pydantic.dev/models/benchmarks/llm_judge.md)                 | 80%          | –         | –      | $0.0022       | –                        | 9 of 44  | https://pydantic.dev/models/list/glm-5.3-flash/llm_judge.md         |

## How it did on the Pydantic AI benchmarks

Written by an LLM from reviews of every run.

#### Overall
The model's reasoning is usually correct, but the tool call it emits often does not match that reasoning: it ends early with `final_result`, sends placeholder values, drops arguments, or sends duplicate output calls. Results were mid-range on Billing ops (70% in both modes) and LLM Judge (80%), high on Research & deck (90% tools, 96% code mode), 60% on Structured output, and near zero on SQL data analysis (0% tools, 20% code mode). Single-request extraction and judging tasks are cheap at about $0.001–$0.011 per case. Long multi-step searches over large data are where it fails most.

#### Strengths
- On Structured output its reasoning extracted the accounts correctly in all ten cases, scaling £000 figures, getting signs right and keeping group and parent columns separate, and it completed both ~150-field tier 5 outputs.
- On Billing ops it applied the handbook rules correctly in all four tutor-margin runs, and in code mode it found and corrected its own tax-deduction error by comparing against real invoice lines.
- On Research & deck both runs read the whole data room and handled every planted trap: the restated September revenue, app registrations, the prototype photo and the PDF with no text layer.
- On LLM Judge its verdicts cite checkable specifics such as invoice numbers, card endings and dates, and it verified refund and retention-window arithmetic.
- On SQL data analysis it understood service-day bitmasks, overnight runs, change margins and time interpolation in nearly every run.

#### Weaknesses
- On SQL data analysis 14 of 18 failures ended with a `final_result` holding placeholder or invented values (e.g. `run: "string"`, an empty `legs` list), often right after reasoning that said to run the search next.
- On Structured output all four failures were final `accounts` calls that dropped most fields its reasoning had already reconciled, and the missing fields defaulted to null with no validation error, so it could not repair them.
- On LLM Judge it emitted two `final_result` calls in one response in 4 of 10 cases, and in one case a garbled first call overrode a correct analysis.
- On Billing ops it made junk calls (`search_tutors("startup_burn")`, `"Array"` arguments, prose sent as code), dropped filters, and re-sent `void_invoice` after it had already succeeded.
- On Research & deck it under-used founder feedback in tools mode, asking twice and never showing a draft, which produced a deck containing elements the founder later ruled out.

#### Tool calling compared with code mode
- On Billing ops both modes scored 70%, but code mode cost $0.18 against $1.03, and on large cases it was much cheaper (e.g. $0.05 against $0.62 on `large-wrong_invoices-1`).
- On Billing ops small cases, code mode gave no benefit and used more requests (20 against 9 on `small-tutor_margin-3`).
- On SQL data analysis code mode produced the only passes (2 of 10 against 0 of 10) at about 47% higher cost, and it added its own failures: state-wiping restarts, timeouts and a missing `heapq`.
- On Research & deck code mode used nearly twice the requests for similar cost and produced the deck closer to the founder's wishes, because it computed figures in Python and got the draft reviewed through `ask_founder`.
- Code mode does not fix the early-`final_result` problem: on Billing ops and SQL data analysis it collected the data reliably, then sometimes answered without running the final computation.
