---
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 8 of 32."
canonical: https://models.pydantic.dev/models/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 8 of 32.
>
> Markdown copy of https://models.pydantic.dev/models/grok-4.6/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/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://models.pydantic.dev/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 Accounting](https://models.pydantic.dev/benchmarks/accounting_platform.md)  | 90%          | 80%       | −10    | $0.53         | $0.12                    | 2 of 32  | https://models.pydantic.dev/models/grok-4.6/accounting_platform.md |
| [Pydantic AI Support Inbox](https://models.pydantic.dev/benchmarks/support_inbox.md)     | 70%          | 40%       | −30    | $0.13         | $0.23                    | 1 of 32  | https://models.pydantic.dev/models/grok-4.6/support_inbox.md       |
| [Pydantic AI Transit Planner](https://models.pydantic.dev/benchmarks/transit_planner.md) | 80%          | 100%      | +20    | $1.01         | $0.65                    | 15 of 32 | https://models.pydantic.dev/models/grok-4.6/transit_planner.md     |
| [Pydantic AI Seed Deck](https://models.pydantic.dev/benchmarks/seed_deck.md)             | 74.1%        | 85.2%     | +11.1  | $0.87         | $0.99                    | 22 of 32 | https://models.pydantic.dev/models/grok-4.6/seed_deck.md           |
| [Pydantic AI Companies House](https://models.pydantic.dev/benchmarks/companies_house.md) | 100%         | –         | –      | $0.070        | –                        | 1 of 32  | https://models.pydantic.dev/models/grok-4.6/companies_house.md     |
| [Pydantic AI Judge Accuracy](https://models.pydantic.dev/benchmarks/judge_accuracy.md)   | 60%          | –         | –      | $0.023        | –                        | 19 of 32 | https://models.pydantic.dev/models/grok-4.6/judge_accuracy.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 accounting_platform 90% tools / 80% code mode, seed_deck 74% / 85%, companies_house 100% tools, judge_accuracy 60% tools, and transit_planner 80% / 100%. Code mode cut cost or requests on the data-heavy tasks, but it did not make the audit logic complete.

#### Strengths
- In accounting_platform, 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 companies_house, all 10 cases passed in one request each, preserving £000 scaling, signs and subtle group/parent differences at about $0.07 per case.
- In transit_planner, both modes solved all eight non-tour cases, including interpolation, transfer margins and overnight service-day offsets.
- In seed_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 judge_accuracy, it correctly checked payment amounts, invoice identifiers, refund conditions and retention periods in support replies.

#### Weaknesses
- In accounting_platform, 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 companies_house, five passing conversations still dropped zero-valued items or note disclosures, or inferred an undisclosed debtors total.
- In judge_accuracy, it approved a reply referencing webhook/Google Sheets integrations despite `integrations: []`, a verdict all six reference judges rejected.
- In transit_planner, unquoted SQL `at` caused errors in 19/20 runs, and both tools-mode failures exhausted the 80-request limit.
- In seed_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 transit_planner, code mode passed 10/10 versus 8/10 for tools, using 294 versus 621 requests and costing $6.46 versus $10.06.
- In accounting_platform, code mode cost $1.16 versus $5.32 for tools but used 97 versus 73 requests and passed one fewer case.
- In seed_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 transit_planner, 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.
