> ## Content Index
> Fetch the complete content index at: https://globalfeed.ai/llms.txt
> Use this file to discover other available public pages before exploring further.

# The open model that turns invoices into tables: how does Clairic read documents?
- URL: https://globalfeed.ai/en/the-open-model-that-turns-invoices-into-tables-how-does-clairic-read-documents/
- Published: 2026-11-19T13:52:36.000Z
- Updated: 2026-11-19T13:52:36.000Z
- Description: Cloudflare has released its Clairic and Clairic-flash extraction models as open models. We explain how they work, what the redesign changed, how they were trained and how to try them on your own documents.
- Author: GlobalFeed Editor
- Tags: Cloudflare, Clairic, Open Model, data extraction, Hugging Face, dil-en, elle

Think of a job done every day in accounting offices and online shops: an invoice arrives, someone reads the supplier, the date, the line items and the total, and types them into a table. Then a receipt, then a customer email, then a contract. Handing this to large language models has become common, but they write answers token by token, so they are slow and costly, sometimes mistype a digit and sometimes invent a value that is not in the document. Cloudflare has built a model family for exactly this job, and on 18 November it released two of them as open models: an updated [Clairic](https://huggingface.co/Cloudflare/clairic?ref=globalfeed.ai) (27B parameters) and the new, lighter [Clairic-flash](https://huggingface.co/Cloudflare/clairic-flash?ref=globalfeed.ai) (9B). Both are on Hugging Face under Apache 2.0 and can be called on Workers AI.

The first Clairic appeared on 19 October as a hosted preview. Within a month the team redesigned the model, added PDF reading and opened the files. Cloudflare also reintroduced the group behind it as the Workers AI Superintelligence team, the same team that released the decision model [Clef](https://globalfeed.ai/en/cloudflare-open-sources-clef-decision-models-and-launches-an-rl-fine-tuning-service/) in October.

## What Clairic does

Cloudflare calls these "System One" models, after Daniel Kahneman's fast, intuitive thinking, in contrast to LLMs that reason slowly. A request has two parts: the material to read (text, JSON, up to four images or PDF pages) and a map of named, typed fields with optional plain-language instructions. Supported types include text, number, date, time, datetime, duration, boolean, enum, object, list, compute, estimate and forecast. Every answer has the declared type, or null when the value is absent. Each field also returns a confidence score and p\_null, the probability the value is not in the input, plus character spans for text pulled from the source. Estimates come back as distributions with a median, an 80% interval and, on request, all 99 percentiles. In the preview post, Clairic added a $649.00 price and $52.10 tax to return 701.10, counted the 11 days between delivery and the email, and returned null for a tracking number that was not there.

## What changed in the new release

The preview answered every field in a single forward pass. The new version uses what Cloudflare calls parallel slot autoregressive generation for ordinary text and number fields: each field picks its next token from the tokens it has already written and stops at its own end marker, while all fields advance together. The team says the small latency cost is outweighed by the accuracy gain. PDFs are new, so a supplier on page one and a total on page three can be read in one request, with line items returned as rows. Inputs are limited to four images or pages, 4 MiB each and 8 MiB combined.

On Cloudflare's internal evals, fresh text fields go from 295/336 (preview) to 335/336 (Clairic) and 328/336 (Clairic-flash); tracked customer assertions from 1,033/1,263 to 1,263/1,263 for both; synthetic receipt fields from 369/576 to 576/576 for both. Liquid AI's D1.2 with Apple Vision OCR and ScaleDown's Extract trail on every set. Cloudflare stresses these are self-reported, directional results, since no public extraction benchmark exists yet. Median latency on text fields is 358 ms for Clairic and 155 ms for Clairic-flash.

## How it was trained

Clairic is fine-tuned from Qwen3.8-27B and Clairic-flash from Qwen3.5-9B, both multimodal bases. On top sits a separate "clair head" (about 290 MB and 261 MB) whose config describes a 256-bin grid for numeric estimates, pointer components that locate numbers and spans in the source, and a two-layer router that sends fields to their slots. Cloudflare says it trained special heads for estimates, forecasts, durations, calculated dates and explicit arithmetic, and that intervals are trained to be calibrated. The single-pass design of the preview was dropped: the team had listed weak multi-step arithmetic and aggregation across many rows among its limits. The preview endpoint actually served the 9B model because it was faster and easier to train; that model is now Clairic-flash. The open runtime includes dozens of dedicated modules for receipt totals, table rows, row omission, printed dates and numbers, and source sums, and uses xgrammar for schema constraints. Training data, volume and steps were not disclosed, and there is no technical report.

## How to try it

On Workers AI the models are @cf/cloudflare/clairic and @cf/cloudflare/clairic-flash, with the same API as the preview. Cloudflare charges only for input tokens; as of 18 November the price is $0.24 per million input tokens for Clairic and $0.10 for Clairic-flash, with both at $0.10 until 1 December. Locally, the model card ships a Python example that extracts vendor, total, date and items from an invoice, plus receipt and forecast examples. It needs Python 3.11, PyTorch and Transformers, with acceleration libraries set up for Linux and NVIDIA GPUs; files take about 56 GB for Clairic and 19 GB for Clairic-flash. Cloudflare's advice: every answer is well formed but not necessarily correct, so use confidence, p\_null and intervals to decide what to automate and what to review.

Sources: [Cloudflare blog: Clairic and Clairic-flash are now open](https://blog.cloudflare.com/open-clairic/?ref=globalfeed.ai), [Cloudflare blog: Clairic preview](https://blog.cloudflare.com/clairic-extraction-model/?ref=globalfeed.ai), [Clairic model card](https://huggingface.co/Cloudflare/clairic?ref=globalfeed.ai), [Clairic-flash model card](https://huggingface.co/Cloudflare/clairic-flash?ref=globalfeed.ai), [Workers AI docs](https://developers.cloudflare.com/workers-ai/models/clairic/?ref=globalfeed.ai)