---
title: "GPT-6 Luna 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 58.4%, code mode 54.8% over four benchmarks; rank 31 of 44."
canonical: https://pydantic.dev/models/list/gpt-6-luna/pydantic_ai/
---

# GPT-6 Luna 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 58.4%, code mode 54.8% over four benchmarks; rank 31 of 44.
>
> Markdown copy of https://pydantic.dev/models/list/gpt-6-luna/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-luna.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            | 58.4%        | –         |
| Score, the four with a code mode run | 55.1%        | 54.8%     |
| Cost per task, all six               | $0.0078      | –         |
| Cost per task, the four              | $0.011       | $0.012    |

## 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)             | 40%          | 80%       | +40    | $0.0043       | $0.0034                  | 38 of 44 | https://pydantic.dev/models/list/gpt-6-luna/billing_ops.md       |
| [Pydantic AI - Customer support](https://pydantic.dev/models/benchmarks/customer_support.md)   | 30%          | 40%       | +10    | $0.0013       | $0.0020                  | 33 of 44 | https://pydantic.dev/models/list/gpt-6-luna/customer_support.md  |
| [Pydantic AI - SQL data analysis](https://pydantic.dev/models/benchmarks/sql_data_analysis.md) | 80%          | 40%       | −40    | $0.018        | $0.028                   | 16 of 44 | https://pydantic.dev/models/list/gpt-6-luna/sql_data_analysis.md |
| [Pydantic AI - Research & deck](https://pydantic.dev/models/benchmarks/research_deck.md)       | 70.4%        | 59.3%     | −11.1  | $0.020        | $0.015                   | 28 of 44 | https://pydantic.dev/models/list/gpt-6-luna/research_deck.md     |
| [Pydantic AI - Structured output](https://pydantic.dev/models/benchmarks/structured_output.md) | 90%          | –         | –      | $0.0027       | –                        | 15 of 44 | https://pydantic.dev/models/list/gpt-6-luna/structured_output.md |
| [Pydantic AI - LLM Judge](https://pydantic.dev/models/benchmarks/llm_judge.md)                 | 40%          | –         | –      | $0.0006       | –                        | 41 of 44 | https://pydantic.dev/models/list/gpt-6-luna/llm_judge.md         |

## How it did on the Pydantic AI benchmarks

Written by an LLM from reviews of every run.

#### Overall
The model's pass rate depends on the task and the mode. Tool calling did well on document extraction (Structured output 90%) and SQL data analysis (80%). Code mode did better on Billing ops (80% against 40%) because it computed and matched records in Python. Its main recurring weaknesses are stopping after a sample of the data, accepting checks or answers it should have questioned, and asking too few clarifying questions.

#### Strengths
- In Structured output it scaled £000 filings correctly, handled bracketed signs, and kept near-identical group and parent columns apart, including two tier 5 cases with roughly 150 fields each.
- In Billing ops it passed all write tasks in both modes, with correct operation order, today's date, and oldest-due-first payment allocation net of existing allocations.
- In Research & deck both decks passed `check_deck` on the first write and used no planted values, with caveats added for unaudited figures.
- In SQL data analysis it modelled previous-service-day shifts, repeat runs, walk limits and change margins correctly, and caught its own errors such as a 439 m walk and negative arrival times.
- In LLM Judge it disagreed with the majority only once in 24 key-point verdicts and checked replies against account data such as an empty integrations list.

#### Weaknesses
- In Billing ops tool mode it opened only 1, 11 and 4 of 384 invoices on the large audits before answering, and it summed margins by hand incorrectly (118,416 vs 120,741).
- In SQL data analysis it tested for untimed calls with `=''` instead of `IS NULL`, so it skipped interpolation in 6 runs, 5 of which failed.
- In LLM Judge it was too strict on `no_false_promise`, treating ordinary statements and offers as promises, which caused 4 of its 6 failures.
- In Research & deck it asked the founder one or two questions, all before reading the data room, and in code mode it guessed colours and slide order instead of asking.
- In Structured output its one failure came from subtracting a director-loan figure mentioned in narrative text instead of returning the line as printed.

#### Tool calling compared with code mode
- In Billing ops code mode passed 80% against 40% with tools, because arithmetic and matching ran in Python and all invoices were fetched in batches, and it was also cheaper ($0.034 vs $0.043).
- In SQL data analysis code mode passed half as often (40% vs 80%) at about 1.5 times the cost, mostly because it wrapped single SQL calls and hit sandbox memory, nested-call and timeout limits.
- In Research & deck code mode scored lower on the brief (59% vs 70%) because it asked one question instead of two, though it cost less and checked figures with SQL.
- Across Billing ops and SQL data analysis the 100-nested-call sandbox limit was hit repeatedly on large data, forcing resets and re-fetches.
- In Structured output and LLM Judge only tool calling was run, each case taking a single request.
