---
title: "GPT-6 Astra 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 75.2%, code mode 80.8% over four benchmarks; rank 13 of 44."
canonical: https://pydantic.dev/models/list/gpt-6-astra/pydantic_ai/
---

# GPT-6 Astra 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 75.2%, code mode 80.8% over four benchmarks; rank 13 of 44.
>
> Markdown copy of https://pydantic.dev/models/list/gpt-6-astra/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/gpt-6-astra.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            | 75.2%        | –         |
| Score, the four with a code mode run | 77.9%        | 80.8%     |
| Cost per task, all six               | $0.69        | –         |
| Cost per task, the four              | $0.96        | $0.49     |

## 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%          | 80%       | −10    | $1.82         | $0.15                    | 4 of 44  | https://pydantic.dev/models/list/gpt-6-astra/billing_ops.md       |
| [Pydantic AI - Customer support](https://pydantic.dev/models/benchmarks/customer_support.md)   | 40%          | 50%       | +10    | $0.13         | $0.12                    | 22 of 44 | https://pydantic.dev/models/list/gpt-6-astra/customer_support.md  |
| [Pydantic AI - SQL data analysis](https://pydantic.dev/models/benchmarks/sql_data_analysis.md) | 100%         | 100%      | ±0     | $0.50         | $0.40                    | 1 of 44  | https://pydantic.dev/models/list/gpt-6-astra/sql_data_analysis.md |
| [Pydantic AI - Research & deck](https://pydantic.dev/models/benchmarks/research_deck.md)       | 81.5%        | 93.3%     | +11.8  | $1.38         | $1.30                    | 19 of 44 | https://pydantic.dev/models/list/gpt-6-astra/research_deck.md     |
| [Pydantic AI - Structured output](https://pydantic.dev/models/benchmarks/structured_output.md) | 90%          | –         | –      | $0.26         | –                        | 15 of 44 | https://pydantic.dev/models/list/gpt-6-astra/structured_output.md |
| [Pydantic AI - LLM Judge](https://pydantic.dev/models/benchmarks/llm_judge.md)                 | 50%          | –         | –      | $0.044        | –                        | 32 of 44 | https://pydantic.dev/models/list/gpt-6-astra/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 scored strongly on rule-heavy computation and extraction (SQL data analysis 100% in both modes, Structured output 90%, Billing ops 90% tools / 80% code mode, Research & deck 81% tools / 93% code mode) and weakly on calibrated judgment (LLM Judge 50%). Runs had no provider failures, and most failures came from incomplete audit logic or borderline interpretation, not execution errors. Code mode cut cost substantially on bulk-data tasks but did not raise pass rates.

#### Strengths
- In Billing ops, both modes passed all payment, debt, correction and margin cases, including oldest-due-first allocation, integer-pence conversion and explicit `ROUND_HALF_UP` handling.
- In SQL data analysis, all 20 runs reached optimal answers on complex objectives such as backward latest-departure routing, two-person meetings and tours with opening windows.
- In Structured output, it kept group and parent figures and comparative periods separate, converted `£000` amounts correctly, and chose the lease liability over a nearby future-payment figure.
- In Research & deck, both runs reconciled conflicting revenue evidence, fell back to `view_pdf` when text extraction failed, and passed `check_deck` on the first call.
- In LLM Judge, it extracted concrete evidence accurately and caught location mismatches, such as milestones on slide 7 not meeting a last-slide requirement.

#### Weaknesses
- In Billing ops, only one of four general overcharge audits passed, because runs checked attendance selectively or did not enforce one charge per student per lesson.
- In LLM Judge, it agreed with the references on only 3 of 7 support reviews, and its misses came from literal readings of semantic coverage and assurances.
- In SQL data analysis, all 20 runs first used unquoted `at` in SQL and needed to recover from parser errors, and four more syntax errors followed.
- In Structured output, a passing run left group `investment_property` as `null` even though a note disclosed the value, so unchecked fields can still be wrong.
- In Research & deck, both modes gathered evidence they never used, such as unused market pages and extra calculated metrics.

#### Tool calling compared with code mode
- In Billing ops, code mode cost $1.4627 against $18.1597 for tools (about 92% less) with half the model requests, but passed one fewer case.
- In Billing ops, the largest savings came on bulk scans, with duplicate detection falling from $4.4135 to $0.1701, while small lookups sometimes cost more in code mode.
- In SQL data analysis, code mode used 22.9% fewer requests and cost 20.2% less, yet one tour run still made 325 paginated SQL reads.
- In Research & deck, code mode used 60% more requests than tools but cost about 5.9% less, and neither mode needed validation fixes.
- In SQL data analysis, tools mode bundled several `SELECT`s of which only the last returned, while code mode sometimes ran fixed iteration counts past convergence.
