---
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 4 of 44."
canonical: https://pydantic.dev/models/list/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 4 of 44.
>
> Markdown copy of https://pydantic.dev/models/list/gemini-4-neon/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/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://pydantic.dev/models/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 - Billing ops](https://pydantic.dev/models/benchmarks/billing_ops.md)             | 100%         | 100%      | ±0     | $1.28         | $0.16                    | 1 of 44  | https://pydantic.dev/models/list/gemini-4-neon/billing_ops.md       |
| [Pydantic AI - Customer support](https://pydantic.dev/models/benchmarks/customer_support.md)   | 60%          | 70%       | +10    | $0.24         | $0.38                    | 3 of 44  | https://pydantic.dev/models/list/gemini-4-neon/customer_support.md  |
| [Pydantic AI - SQL data analysis](https://pydantic.dev/models/benchmarks/sql_data_analysis.md) | 100%         | 100%      | ±0     | $0.94         | $0.90                    | 1 of 44  | https://pydantic.dev/models/list/gemini-4-neon/sql_data_analysis.md |
| [Pydantic AI - Research & deck](https://pydantic.dev/models/benchmarks/research_deck.md)       | 85.9%        | 89.6%     | +3.7   | $2.12         | $1.79                    | 14 of 44 | https://pydantic.dev/models/list/gemini-4-neon/research_deck.md     |
| [Pydantic AI - Structured output](https://pydantic.dev/models/benchmarks/structured_output.md) | 100%         | –         | –      | $0.14         | –                        | 1 of 44  | https://pydantic.dev/models/list/gemini-4-neon/structured_output.md |
| [Pydantic AI - LLM Judge](https://pydantic.dev/models/benchmarks/llm_judge.md)                 | 90%          | –         | –      | $0.068        | –                        | 2 of 44  | https://pydantic.dev/models/list/gemini-4-neon/llm_judge.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 Billing ops, SQL data analysis and Structured output, scored 90% on LLM Judge, and passed the single Research & 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 Billing ops 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 Structured output every case finished in one request with one accepted `accounts` call, with correct £000 scaling, sign conventions and group-versus-parent separation.
- On SQL data analysis every run checked data quality and confirmed its answers with a second algorithm or against raw `calls` before answering.
- On Research & 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 LLM Judge 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 Billing ops 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 SQL data analysis 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 LLM Judge 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 Research & 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 Structured output 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 Billing ops 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 SQL data analysis 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 Research & 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 SQL data analysis and Billing ops code mode brought its own errors, including missing sandbox methods, a script runtime error and fetches split across separate `run_code` turns.
- Structured output and LLM Judge ran in tool-calling mode only, where single-request extraction and judging worked well without code.
