---
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 24 of 32."
canonical: https://models.pydantic.dev/models/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 24 of 32.
>
> Markdown copy of https://models.pydantic.dev/models/glm-5.3-flash/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/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://models.pydantic.dev/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 Accounting](https://models.pydantic.dev/benchmarks/accounting_platform.md)  | 70%          | 70%       | ±0     | $0.10         | $0.018                   | 19 of 32 | https://models.pydantic.dev/models/glm-5.3-flash/accounting_platform.md |
| [Pydantic AI Support Inbox](https://models.pydantic.dev/benchmarks/support_inbox.md)     | 60%          | 40%       | −20    | $0.0049       | $0.011                   | 2 of 32  | https://models.pydantic.dev/models/glm-5.3-flash/support_inbox.md       |
| [Pydantic AI Transit Planner](https://models.pydantic.dev/benchmarks/transit_planner.md) | 0%           | 20%       | +20    | $0.072        | $0.11                    | 29 of 32 | https://models.pydantic.dev/models/glm-5.3-flash/transit_planner.md     |
| [Pydantic AI Seed Deck](https://models.pydantic.dev/benchmarks/seed_deck.md)             | 89.6%        | 96.3%     | +6.7   | $0.13         | $0.14                    | 5 of 32  | https://models.pydantic.dev/models/glm-5.3-flash/seed_deck.md           |
| [Pydantic AI Companies House](https://models.pydantic.dev/benchmarks/companies_house.md) | 60%          | –         | –      | $0.0070       | –                        | 28 of 32 | https://models.pydantic.dev/models/glm-5.3-flash/companies_house.md     |
| [Pydantic AI Judge Accuracy](https://models.pydantic.dev/benchmarks/judge_accuracy.md)   | 80%          | –         | –      | $0.0022       | –                        | 7 of 32  | https://models.pydantic.dev/models/glm-5.3-flash/judge_accuracy.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 accounting_platform (70% in both modes) and judge_accuracy (80%), high on seed_deck (90% tools, 96% code mode), 60% on companies_house, and near zero on transit_planner (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 companies_house 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 accounting_platform 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 seed_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 judge_accuracy its verdicts cite checkable specifics such as invoice numbers, card endings and dates, and it verified refund and retention-window arithmetic.
- On transit_planner it understood service-day bitmasks, overnight runs, change margins and time interpolation in nearly every run.

#### Weaknesses
- On transit_planner 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 companies_house 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 judge_accuracy 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 accounting_platform 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 seed_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 accounting_platform 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 accounting_platform small cases, code mode gave no benefit and used more requests (20 against 9 on `small-tutor_margin-3`).
- On transit_planner 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 seed_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 accounting_platform and transit_planner it collected the data reliably, then sometimes answered without running the final computation.
