Blog / Latest in AI

Latest in AI

Cloudflare releases its Clairic data-extraction AI models as open weights

Unicorn News Desk ·

Abstract illustration of documents passing through a prism and coming out as orderly blocks

Key facts

Models
Clairic (27B) and Clairic-flash (9B)
Weights
Full open weights on Hugging Face
Hosted
Workers AI: @cf/cloudflare/clairic and @cf/cloudflare/clairic-flash
Inputs
Text plus up to four images or PDF pages in total
Latency (Cloudflare tests)
Responses under one second, self-hosted

Cloudflare has released two extraction models as open weights: an updated, redesigned Clairic and a new, lighter Clairic-flash with 9 billion parameters. Extraction models take a document and return specific, typed values from it, such as an invoice total, a date or a list of items. Cloudflare says both models are hosted on Workers AI, its serverless inference platform, and that full open weights are available on Hugging Face.

The release follows a hosted-only preview. When Clairic first appeared on Workers AI, Cloudflare said it intended to release open weights “soon” but gave no date, licence or model size. The new announcement settles two of those three questions: it names the sizes and publishes the weights. The licence is not stated in the announcement text.

What Clairic does, and why Cloudflare calls it System One

Clairic is an extraction model, not a chat model. A developer sends some text (and, in the preview, up to four images) plus a map of typed fields. The model returns one typed value per field: a span of text, a number, a date, a list, an estimate, or null. Cloudflare presents Clairic as a new class of “System One” model, a term borrowed from Daniel Kahneman’s Thinking, Fast and Slow, where System One is fast, intuitive thinking. Cloudflare’s earlier System One models, such as Clef, were decision models: they take an input and a list of questions and return probabilities.

The preview defined nine field types:

  • text spans with character offsets
  • numbers
  • dates, times and datetimes
  • durations
  • lists
  • estimates with 80% intervals
  • forecasts

Every scalar answer carries a confidence score and a p_null value, which is the probability that the value is not in the input at all. Cloudflare’s pitch is that a missing field returns null instead of a plausible-looking guess. That removes much of the parsing, schema validation and retry code that LLM-based extraction pipelines usually need.

Cloudflare says preview users brought use cases ranging from reading receipts in images to pulling values out of support tickets. That feedback led it to make extraction the model’s clear focus. The release also comes from a newly named group: Cloudflare re-introduces its team as the Workers AI superintelligence team, behind Clef, Clairic and other models in development, and says the company “has become a neolab” building its own frontier models.

What the new Clairic changes over the preview

Cloudflare says it “went back to the drawing board” and redesigned Clairic’s architecture after the preview. The preview answered every field in a single forward pass. It processed only input tokens and generated no output tokens, so all fields were answered together.

The new version changes how ordinary text and number fields work. These fields now use what Cloudflare calls parallel slot autoregressive generation. Each field uses the tokens it has already written to choose its next token, then stops at its own end marker. All fields advance together in the serving batch. In other words, the model now writes its answers token by token, but each field does so in its own lane, in parallel. Cloudflare says the change raised extraction accuracy for both text and images, and that the accuracy gain outweighs a small latency cost.

For calculations and predictions, Cloudflare trained special “heads” (dedicated output components). These handle estimates, forecasts, durations, calculated dates and explicit arithmetic. It says the typed interface is unchanged: confidence scores, character spans and probabilities still come back with every request.

Diagram-style illustration of a larger and a smaller model with parallel output lanes
Clairic and Clairic-flash share one design: each field advances in its own lane. · Illustration

The other headline addition is document input. The preview read photos of receipts. The new models also read PDFs, so a single request can ask for a supplier, line items and a total even when they sit on different pages. A request can include up to four images or PDF pages in total. Line items can come back as rows that keep each description, quantity and price together. This matters because, in the preview, the list type covered only text, numbers and dates. A reviewer noted at the time that a multi-column line-item table might have to be expressed as parallel lists.

Clairic and Clairic-flash: sizes, endpoints and access

The preview endpoint, @cf/cloudflare/clairic, actually served a 9B model, which Cloudflare says was faster and easier to train. That 9B model now moves to @cf/cloudflare/clairic-flash. A 27B model takes over the @cf/cloudflare/clairic endpoint. Developers who built against the preview endpoint will therefore be calling a larger model at the same address.

ClairicClairic-flash
Parameters27B9B
Workers AI endpoint@cf/cloudflare/clairic@cf/cloudflare/clairic-flash
Open weightsHugging FaceHugging Face
InputsText plus up to four images or PDF pages in total
Cloudflare’s listed price$0.24 per million input tokens$0.10 per million input tokens

All figures in the table come from Cloudflare’s announcement.

Cloudflare describes the hosted prices as promotional and for a limited time. It says the model does technically generate output tokens now, but it is keeping its System One principle of billing only for input. The announcement text available for this report does not state the licence on the Hugging Face weights. Builders should read the terms on the model pages before shipping the weights in a product.

Accuracy claims: Cloudflare’s own evaluations

Cloudflare publishes four internal evaluations comparing the preview, the two new models, Liquid AI’s D1.2 (paired with Apple Vision for optical character recognition, or OCR, which turns images of text into text) and Scaledown’s Extract.

Eval (Cloudflare internal)Clairic-previewClairicClairic-flashD1.2 + OCRScaledown
Fresh text fields, 96 requests295/336335/336328/336304/336259/336
Mixed-input fields, 36 requests207/226221/226213/226116/226156/226
Tracked customer assertions, 139 request shapes1,033/1,2631,263/1,2631,263/1,263973/1,263653/1,263
Synthetic receipt fields in text and images369/576576/576576/576397/576280/576

Source: Cloudflare.

Cloudflare is explicit about the limits of these numbers. It says there are no public extraction benchmarks yet and that readers should “take these evals as directional guidance since they are self-reported”. It also says image-reading accuracy improved from 207 errors to 0 on its internal benchmarks covering text and images. In one side-by-side example on a synthetic coffee-shop receipt, the preview returned null for the merchant name. The new Clairic returned “Coffee House” and got all five fields right.

When the preview launched, one reviewer pointed out that Cloudflare had published no parameter count, price or benchmark scores, so its accuracy claims could not be checked against numbers. The new post supplies sizes, prices and scores. The scores are still Cloudflare’s own and have not been independently reproduced in any source for this report. That reviewer also disclosed that he builds a competing open-weight decision model.

Speed: sub-second responses in Cloudflare’s tests

Cloudflare measured complete HTTP responses from a self-hosted server, including all fields in each request. It says that even with the redesigned architecture, responses arrive in under one second. Some of its reported median (p50) and 95th-percentile (p95) latencies:

  • Fresh text fields (96 requests): Clairic 358 / 736 ms; Clairic-flash 155 / 328 ms
  • Fresh image fields (48 requests): Clairic 453 / 976 ms; Clairic-flash 305 / 605 ms
  • Commercial leases (180 requests): Clairic 691 / 803 ms; Clairic-flash 379 / 519 ms
  • Loan pricing (600 requests): Clairic 395 / 407 ms; Clairic-flash 188 / 192 ms

The post does not specify the hardware behind these self-hosted measurements in the text available for this report. Teams running the open weights on their own machines should expect different figures.

Illustration of a multi-page document whose items are gathered into rows
Line items spread across PDF pages can now come back as rows. · Illustration

What earlier hands-on testing found, and what may have changed

The only independent testing in the sources predates this release and covers the preview, which was the 9B model now called Clairic-flash. A developer, Ishank Choudhary, ran it on six job posts from a Hacker News hiring thread and on three receipt photos, checking every answer by hand.

His results on scalar fields were strong:

  • 12 of 12 salary figures were correct, with “$100k-$180k” converted to plain integers.
  • Founding year was correct in all six cases. Five posts that did not mention a year returned null, with p_null between 0.87 and 0.9999.
  • Each call took 0.26 to 0.74 seconds.

Free-form lists were the weak point. A tech-stack list came back with fragments such as “REM”, “-$” and single letters mixed in with real answers. List items carried no per-item confidence to filter on. On receipts, the preview read a Swiss hotel bill’s numbers correctly but garbled the hotel name and returned only two of four items. Asked to compute gallons times price on a gas receipt, it answered 19.88 instead of 20.00, with a confidence of just 0.012. The reviewer read that low score as the model signalling not to trust the answer, and noted that Cloudflare’s own guidance is to let code do the math.

The redesign targets exactly these areas: autoregressive text fields, dedicated arithmetic heads, and line items returned as rows. Whether it fixes the list and computation problems the reviewer saw has not yet been tested independently in any source for this report.

What it means for builders

For teams that today prompt a large language model to “return the invoice number, vendor and due date as JSON” and then wrap it in validation and retry code, Clairic offers a different contract. The schema is the request. Each answer is either a value of the declared type or null, with a confidence score attached. Cloudflare positions it for fixed-shape, high-volume extraction. One reviewer judged it a poorer fit for tasks that need reasoning or free-form text.

Open weights add options the preview did not have: running the models on your own infrastructure, inspecting them, and potentially adapting them. That depends on terms the announcement text does not spell out. Practical cautions from the sources:

  • Treat p_null and confidence as part of the output and route low-confidence fields to review. The preview hands-on found these scores useful in practice.
  • Do computed values in code where you can. The preview hands-on found an arithmetic field wrong, flagged with very low confidence.
  • Check the endpoint change. @cf/cloudflare/clairic now points to the 27B model, and the 9B model lives at @cf/cloudflare/clairic-flash.
  • When sending images to the hosted API, the preview rejected raw base64. It needed a data:image/jpeg;base64, prefix.

What to watch next

Three things will decide how useful the open release is. The first is the licence attached to the Hugging Face weights, which the announcement text does not state. The second is independent evaluation: Cloudflare itself says there are no public extraction benchmarks yet, and its numbers are self-reported. Fresh hands-on tests of the 27B model, especially on lists and calculations, would fill that gap. The third is the end of what Cloudflare calls limited-time promotional pricing on the hosted endpoints. Cloudflare also says its Workers AI superintelligence team has “lots more in the works”.

For other open models aimed at turning documents into structured data, see IBM’s Granite Docling V2 release.

Frequently asked questions

Is Cloudflare's Clairic open source?

Cloudflare says full open weights for both Clairic and Clairic-flash are available on Hugging Face. The announcement text does not name the licence, so check the model pages for the terms before you use the weights commercially.

What is the difference between Clairic and Clairic-flash?

Clairic is a 27-billion-parameter model. Clairic-flash is a lighter 9-billion-parameter version. In Cloudflare's own latency tests, Clairic-flash responds roughly twice as fast. Its accuracy is close to Clairic's on most of Cloudflare's internal evaluations.

Can Clairic read PDFs?

Yes. Cloudflare says the updated models read PDFs as well as images, with up to four images or PDF pages in total per request. Line items can come back as rows that keep description, quantity and price together.

How does Clairic compare with other extraction models?

On Cloudflare's internal evaluations, Clairic and Clairic-flash score higher than Liquid AI's D1.2 (paired with Apple Vision for text recognition) and Scaledown's Extract. Cloudflare notes these evals are self-reported and that no public extraction benchmarks exist yet.

Where can I run Clairic?

Cloudflare hosts Clairic at @cf/cloudflare/clairic and Clairic-flash at @cf/cloudflare/clairic-flash on Workers AI. The open weights on Hugging Face let developers run the models themselves.