---
title: "Grok 4.6 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 79%, code mode 76.3% over four benchmarks; rank 9 of 44."
canonical: https://pydantic.dev/models/list/grok-4.6/pydantic_ai/
---

# Grok 4.6 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 79%, code mode 76.3% over four benchmarks; rank 9 of 44.
>
> Markdown copy of https://pydantic.dev/models/list/grok-4.6/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/grok-4.6.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            | 79%          | –         |
| Score, the four with a code mode run | 78.5%        | 76.3%     |
| Cost per task, all six               | $0.44        | –         |
| Cost per task, the four              | $0.63        | $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    | $0.53         | $0.12                    | 4 of 44  | https://pydantic.dev/models/list/grok-4.6/billing_ops.md       |
| [Pydantic AI - Customer support](https://pydantic.dev/models/benchmarks/customer_support.md)   | 70%          | 40%       | −30    | $0.13         | $0.23                    | 1 of 44  | https://pydantic.dev/models/list/grok-4.6/customer_support.md  |
| [Pydantic AI - SQL data analysis](https://pydantic.dev/models/benchmarks/sql_data_analysis.md) | 80%          | 100%      | +20    | $1.01         | $0.65                    | 16 of 44 | https://pydantic.dev/models/list/grok-4.6/sql_data_analysis.md |
| [Pydantic AI - Research & deck](https://pydantic.dev/models/benchmarks/research_deck.md)       | 74.1%        | 85.2%     | +11.1  | $0.87         | $0.99                    | 26 of 44 | https://pydantic.dev/models/list/grok-4.6/research_deck.md     |
| [Pydantic AI - Structured output](https://pydantic.dev/models/benchmarks/structured_output.md) | 100%         | –         | –      | $0.070        | –                        | 1 of 44  | https://pydantic.dev/models/list/grok-4.6/structured_output.md |
| [Pydantic AI - LLM Judge](https://pydantic.dev/models/benchmarks/llm_judge.md)                 | 60%          | –         | –      | $0.023        | –                        | 27 of 44 | https://pydantic.dev/models/list/grok-4.6/llm_judge.md         |

## How it did on the Pydantic AI benchmarks

Written by an LLM from reviews of every run.

#### Overall
The model is reliable on extraction, routine lookups, mutations and narrow calculations, and weaker on exhaustive audits, completeness around zeros and nulls, and semantic judgment calls. Scores were Billing ops 90% tools / 80% code mode, Research & deck 74% / 85%, Structured output 100% tools, LLM Judge 60% tools, and SQL data analysis 80% / 100%. Code mode cut cost or requests on the data-heavy tasks, but it did not make the audit logic complete.

#### Strengths
- In Billing ops, both modes passed all four mutation runs, which covered voiding, payment allocation and credits, and all four margin runs, which used correct `ROUND_HALF_UP` and tax extraction.
- In Structured output, all 10 cases passed in one request each, preserving £000 scaling, signs and subtle group/parent differences at about $0.07 per case.
- In SQL data analysis, both modes solved all eight non-tour cases, including interpolation, transfer margins and overnight service-day offsets.
- In Research & deck, both runs avoided a stale revenue figure by applying a cancelled £52,200 order and switched to `view_pdf` for a scanned document.
- In LLM Judge, it correctly checked payment amounts, invoice identifiers, refund conditions and retention periods in support replies.

#### Weaknesses
- In Billing ops, all three failures were broad invoice-error audits: the tools run found only 3/12 errors and overstated its coverage, and code mode missed duplicate charges.
- In Structured output, five passing conversations still dropped zero-valued items or note disclosures, or inferred an undisclosed debtors total.
- In LLM Judge, it approved a reply referencing webhook/Google Sheets integrations despite `integrations: []`, a verdict all six reference judges rejected.
- In SQL data analysis, unquoted SQL `at` caused errors in 19/20 runs, and both tools-mode failures exhausted the 80-request limit.
- In Research & deck, both runs added claims the sources did not support, and the tools run hand-coded a chart bar that exceeded its axis.

#### Tool calling compared with code mode
- In SQL data analysis, code mode passed 10/10 versus 8/10 for tools, using 294 versus 621 requests and costing $6.46 versus $10.06.
- In Billing ops, code mode cost $1.16 versus $5.32 for tools but used 97 versus 73 requests and passed one fewer case.
- In Research & deck, code mode passed where tools failed and computed chart geometry from the data, but used 31 versus 15 requests and cost 14% more.
- In SQL data analysis, code mode exceeded the 256 MiB sandbox limit twice and tried unsupported Python features such as `yield` and imports, but it recovered from these errors.
