---
title: "Pydantic AI Companies House"
description: "Extracting UK company accounts into a nested Pydantic model, checked against the filer's tags. One of the Pydantic AI benchmarks; not part of the intelligence index."
canonical: https://models.pydantic.dev/benchmarks/companies_house/
---

# Pydantic AI Companies House

> Extracting UK company accounts into a nested Pydantic model, checked against the filer's tags. One of the Pydantic AI benchmarks; not part of the intelligence index.
>
> Markdown copy of https://models.pydantic.dev/benchmarks/companies_house/. 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>`

Add `intent=<intent>&stack=<stack>&harness=<harness>` to the query string of the first three. An `OPTIONS` request to any endpoint returns its schema. The same four are tools of the MCP server at `https://models.pydantic.dev/mcp`. More: https://models.pydantic.dev/usage.md

Pydantic AI Companies House measures structured output: how well a model fills a large, nested Pydantic model from a long document, leaves absent fields empty, and recovers when a validator rejects its output.
Each case is one set of UK company accounts filed with Companies House in September 2026, after the tested models' training cutoffs: full accounts of single companies, and group accounts with consolidated and parent-company figures for two periods.
Each is 53,000 to 81,000 characters of text.

The accounts were filed as iXBRL, where the filer tagged each figure.
The model sees the text with the tags removed, and the tags are the answer key, so scoring is exact: a case passes only if every value is right.

There are no tools, so there is no code mode run.

- **Created by:** [Pydantic](https://pydantic.dev)
- **Companies House:** https://find-and-update.company-information.service.gov.uk
- **All Pydantic AI benchmarks:** /benchmarks/pydantic_ai/
- **Scores from:** Pydantic (CC BY 4.0) (/benchmarks/companies_house/), results updated 2026-11-26

## Caveats

- An answer that passes validation but is wrong in a way the tags don't cover is not caught.
- The text of the accounts is the filers' copyright and is not published.
- 10 cases, one run each, so the score moves by 10 points per case.

## Results

The best result per model, with the reasoning setting it was run at where the source gives one. Blended price is US dollars per million tokens, three input to one output, from the provider the model's page leads with.

| Rank | Model                                                                            | Setting | Score  | Code mode | Cost per run | Cost per run, code mode | Blended price |
| ---- | -------------------------------------------------------------------------------- | ------- | ------ | --------- | ------------ | ----------------------- | ------------- |
| 1    | [Claude Sonnet 5.5](https://models.pydantic.dev/models/claude-sonnet-5.5.md)     | –       | 100.0% | –         | $0.081       | –                       | $4            |
| 1    | [Gemini 3.8 Flash](https://models.pydantic.dev/models/gemini-3.8-flash.md)       | –       | 100.0% | –         | $0.031       | –                       | $1.5          |
| 1    | [Gemini 4 Argon](https://models.pydantic.dev/models/gemini-4-argon.md)           | –       | 100.0% | –         | $0.055       | –                       | $4            |
| 1    | [Gemini 4 Carbon](https://models.pydantic.dev/models/gemini-4-carbon.md)         | –       | 100.0% | –         | $0.082       | –                       | $4            |
| 1    | [Gemini 4 Hydrogen](https://models.pydantic.dev/models/gemini-4-hydrogen.md)     | –       | 100.0% | –         | $0.060       | –                       | $3            |
| 1    | [Gemini 4 Neon](https://models.pydantic.dev/models/gemini-4-neon.md)             | –       | 100.0% | –         | $0.14        | –                       | $6            |
| 1    | [GPT-6.1 Terra](https://models.pydantic.dev/models/gpt-6.1-terra.md)             | –       | 100.0% | –         | $0.026       | –                       | $2            |
| 1    | [Kimi K3.1 Pro](https://models.pydantic.dev/models/kimi-k3.1-pro.md)             | –       | 100.0% | –         | $0.067       | –                       | $4            |
| 9    | [Claude Fable 5.2](https://models.pydantic.dev/models/claude-fable-5.2.md)       | –       | 90.0%  | –         | $0.36        | –                       | $16           |
| 9    | [Claude Opus 5.5](https://models.pydantic.dev/models/claude-opus-5.5.md)         | –       | 90.0%  | –         | $0.17        | –                       | $8            |
| 9    | [DeepSeek V4 Pro 0423](https://models.pydantic.dev/models/deepseek-v4-pro.md)    | –       | 90.0%  | –         | $0.060       | –                       | $2.17         |
| 9    | [DeepSeek V4.1 Flash](https://models.pydantic.dev/models/deepseek-v4.1-flash.md) | –       | 90.0%  | –         | $0.0066      | –                       | $0.26         |
| 9    | [GPT-6 Luna](https://models.pydantic.dev/models/gpt-6-luna.md)                   | –       | 90.0%  | –         | $0.0027      | –                       | $0.2          |
| 9    | [GPT-6.1 Sol](https://models.pydantic.dev/models/gpt-6.1-sol.md)                 | –       | 90.0%  | –         | $0.051       | –                       | $4            |
| 9    | [GPT-6.2 Astra](https://models.pydantic.dev/models/gpt-6.2-astra.md)             | –       | 90.0%  | –         | $0.20        | –                       | $16           |
| 9    | [GPT-6.2 Sol](https://models.pydantic.dev/models/gpt-6.2-sol.md)                 | –       | 90.0%  | –         | $0.052       | –                       | $4            |
| 17   | [Qwen3.8 27B](https://models.pydantic.dev/models/qwen3.8-27b.md)                 | –       | 80.0%  | –         | $0.033       | –                       | $1.09         |
| 18   | [Claude Haiku 5.5](https://models.pydantic.dev/models/claude-haiku-5.5.md)       | –       | 60.0%  | –         | $0.0048      | –                       | $0.2          |
| 18   | [GLM 5.3 Flash](https://models.pydantic.dev/models/glm-5.3-flash.md)             | –       | 60.0%  | –         | $0.0070      | –                       | $0.24         |
| 20   | [GLM 5.3](https://models.pydantic.dev/models/glm-5.3.md)                         | –       | 50.0%  | –         | $0.080       | –                       | $2.15         |
