---
title: "Gemini 4 Neon 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 89.3%, code mode 89.9% over four benchmarks; rank 2 of 32."
canonical: https://models.pydantic.dev/models/gemini-4-neon/pydantic_ai/
---

# Gemini 4 Neon 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 89.3%, code mode 89.9% over four benchmarks; rank 2 of 32.
>
> Markdown copy of https://models.pydantic.dev/models/gemini-4-neon/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/gemini-4-neon.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            | 89.3%        | –         |
| Score, the four with a code mode run | 86.5%        | 89.9%     |
| Cost per task, all six               | $0.80        | –         |
| Cost per task, the four              | $1.15        | $0.81     |

## 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)  | 100%         | 100%      | ±0     | $1.28         | $0.16                    | 1 of 32 | https://models.pydantic.dev/models/gemini-4-neon/accounting_platform.md |
| [Pydantic AI Support Inbox](https://models.pydantic.dev/benchmarks/support_inbox.md)     | 60%          | 70%       | +10    | $0.24         | $0.38                    | 2 of 32 | https://models.pydantic.dev/models/gemini-4-neon/support_inbox.md       |
| [Pydantic AI Transit Planner](https://models.pydantic.dev/benchmarks/transit_planner.md) | 100%         | 100%      | ±0     | $0.94         | $0.90                    | 1 of 32 | https://models.pydantic.dev/models/gemini-4-neon/transit_planner.md     |
| [Pydantic AI Seed Deck](https://models.pydantic.dev/benchmarks/seed_deck.md)             | 85.9%        | 89.6%     | +3.7   | $2.12         | $1.79                    | 9 of 32 | https://models.pydantic.dev/models/gemini-4-neon/seed_deck.md           |
| [Pydantic AI Companies House](https://models.pydantic.dev/benchmarks/companies_house.md) | 100%         | –         | –      | $0.14         | –                        | 1 of 32 | https://models.pydantic.dev/models/gemini-4-neon/companies_house.md     |
| [Pydantic AI Judge Accuracy](https://models.pydantic.dev/benchmarks/judge_accuracy.md)   | 90%          | –         | –      | $0.068        | –                        | 2 of 32 | https://models.pydantic.dev/models/gemini-4-neon/judge_accuracy.md      |

## How it did on the Pydantic AI benchmarks

Written by an LLM from reviews of every run.

#### Overall
The model passed every case on accounting_platform, transit_planner and companies_house, scored 90% on judge_accuracy, and passed the single seed_deck case in both modes (86% tools, 90% code mode). Its failures are cost, waste and avoidable errors more than wrong answers. On bulk-data tasks code mode matched tool-calling accuracy at a fraction of the cost. Expect over-verification, recurring small SQL and sandbox errors, and occasional guessing where it should compute.

#### Strengths
- On accounting_platform it ran write tasks in the correct order with oldest-due-first allocations and read-back checks, and covered all 384 non-void October invoices in every audit.
- On companies_house every case finished in one request with one accepted `accounts` call, with correct £000 scaling, sign conventions and group-versus-parent separation.
- On transit_planner every run checked data quality and confirmed its answers with a second algorithm or against raw `calls` before answering.
- On seed_deck both runs avoided the data-room traps, including restated revenue, unsigned agreements and the founder's misremembered £404k, and computed figures by query before showing them.
- On judge_accuracy its verdict reasons cited specific evidence such as slide numbers, invoice IDs and plan tables, and only one of 59 verdicts went against a clear reference majority.

#### Weaknesses
- On accounting_platform in tools mode it built lesson IDs as a guessed consecutive range and checked margins over dozens of lessons by reading, with no computation.
- On transit_planner 19 of 20 runs hit a DuckDB `ParserException` on the unquoted reserved word `at`, and 5 code-mode runs called `timetuple()`, which the sandbox lacks.
- On judge_accuracy its one failure came from being over-strict on an example list, and its reasons on safety questions were generic and missed the problem claims.
- On seed_deck both runs resent the full 63k–72k character deck to fix a few labels and wrote closing notes of 2,700–3,400 characters where a short note was asked for.
- On companies_house it returned 0 where the expected value was `null` in 3 cases and gave inconsistent shapes for absent notes, though none of these fields were checked.

#### Tool calling compared with code mode
- On accounting_platform accuracy was identical, but the three large audits cost $10.37 with tools against $0.68 in code mode, because tools mode pulled up to 1.29 MB of records into context.
- On transit_planner code mode was cheaper on hard cases (`tour` $1.12 against $1.71) but $0.07–$0.25 dearer on simple ones, where it often solved the problem twice.
- On seed_deck code mode was $0.33 cheaper and produced the better deck, helped by an open style question and regex self-audits of its own output.
- On transit_planner and accounting_platform code mode brought its own errors, including missing sandbox methods, a script runtime error and fetches split across separate `run_code` turns.
- companies_house and judge_accuracy ran in tool-calling mode only, where single-request extraction and judging worked well without code.
