---
title: "Pydantic AI - Invoice fields"
description: "The fields of 87 real invoices as free values: names, dates, amounts and whether it is paid. One of the Decision models benchmarks; not part of the intelligence index."
canonical: https://pydantic.dev/models/benchmarks/invoice_fields/
---

# Pydantic AI - Invoice fields

> The fields of 87 real invoices as free values: names, dates, amounts and whether it is paid. One of the Decision models benchmarks; not part of the intelligence index.
>
> Markdown copy of [https://pydantic.dev/models/benchmarks/invoice_fields/](https://pydantic.dev/models/benchmarks/invoice_fields/). Index for agents: [llms.txt](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: `GET https://pydantic.dev/models/api/select?description=<what the agent does>`. It returns up to five ranked models with reasons; POST a JSON body instead to send code. Format: [select.md](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: [usage.md](https://pydantic.dev/models/usage.md)

Invoice fields measures how well a model reads an invoice and returns its fields as free values: the supplier, customer and invoice number as text, two dates, three amounts, an optional purchase order number, a list of email addresses, a currency and whether it is paid.

- **Created by:** [Pydantic](https://pydantic.dev)
- **All Pydantic AI decision benchmarks:** [/models/benchmarks/pydantic_ai_decision/](/models/benchmarks/pydantic_ai_decision/)
- **Decision models:** [/models/list/?kind=decision](/models/list/?kind=decision)
- **Scores from:** [Pydantic (CC BY 4.0)](/models/benchmarks/invoice_fields/), results updated 2026-12-04

## Description

A decision model cannot answer this, because it only chooses between options, so the benchmark is not part of the combined decision score.
It is run on language models, and on the decision models that OpenRouter also serves through its extractions endpoint: Liquid's d1.2 and d1.2 Ultra, which take text, numbers, dates and lists, and Perplexity's Decider v1.3 and Flash v1.3, which take text and lists only.
A model is asked only for the fields whose type it takes, and the rest are not scored.

The 87 invoices are real ones, with a key that four language models agreed on after reading the PDF.
A case passes only when every scored field is right; names are compared without case and punctuation, and amounts to the penny.
The invoices are private and are not published: this page shows scores, costs and times only.

### Caveats

- The scores of the Liquid and Perplexity models are over fewer fields than the language models': 10 of the 11 for Liquid and 5 for Perplexity, so they are not comparable with the others.
- The key has not been checked by a person, and leans towards what strong models can read.
- An invoice with no tax may be answered with 0 or with nothing.

## 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 | Cost per case | Model time per case | Blended price |
| ---- | --------------------------------------------------------------------------------- | ------- | ----- | ------------- | ------------------- | ------------- |
| 1    | [Gemini 3.8 Flash](https://pydantic.dev/models/list/gemini-3.8-flash.md)          | –       | 94.3% | $0.0052       | 9.5 s               | $1.5          |
| 2    | [Claude Haiku 5.5](https://pydantic.dev/models/list/claude-haiku-5.5.md)          | –       | 92.0% | $0.00029      | 1.9 s               | $0.2          |
| 3    | [DeepSeek V4.1 Flash](https://pydantic.dev/models/list/deepseek-v4.1-flash.md)    | –       | 88.5% | $0.00079      | 13.5 s              | $0.26         |
| 4    | [GPT-6 Luna](https://pydantic.dev/models/list/gpt-6-luna.md)                      | –       | 86.2% | $0.00018      | 1.9 s               | $0.2          |
| 5    | [Decider V1.3](https://pydantic.dev/models/list/pplx-decider-v1.3.md)             | –       | 51.7% | $0.00         | 0.3 s               | $0.015        |
| 6    | [Decider Flash V1.3](https://pydantic.dev/models/list/pplx-decider-flash-v1.3.md) | –       | 39.1% | $0.00         | 0.3 s               | $0.007        |
| 7    | [d1.2-ultra](https://pydantic.dev/models/list/liquid-d1.2-ultra.md)               | –       | 37.9% | $0.000051     | 0.3 s               | $0.032        |
| 8    | [d1.2](https://pydantic.dev/models/list/liquid-d1.2.md)                           | –       | 26.4% | $0.000024     | 0.3 s               | $0.015        |
