Blog

What is Clairic? Cloudflare's model that fills in the form for you

Cloudflare has released an updated Clairic, a model that reads text, images and PDFs and hands back typed values, each with a confidence score. Here's what it does, what it costs, where it falls down, and where I'm going to use it.

In a recent post I went back through every men's Grand Slam match since 2000 to see who would have won if they'd only played best of three. The tennis was the fun bit. Most of the work was the bit nobody sees: pulling scores out of different places, in different formats, and normalising them so I was comparing apples with apples.

So when Cloudflare announced a new version of a model whose whole job is that unglamorous bit, I paid attention.

It's called Clairic.

So what is it?

Clairic is an extraction model. You give it something to read, which Cloudflare calls the state. That can be text, JSON, up to four images, or a PDF. Alongside it, you give it a list of the fields you want back and the type of each one.

You get back exactly those fields. Not a paragraph. Not "Sure! Here's the information you asked for". A value for each field, a confidence score, and the odds that the answer simply isn't there.

For those of you that don't build software for a living, think of it like handing someone a messy pile of paperwork and a blank form, and asking them to fill in the form. Clairic fills in the form. If a box can't be filled in from the paperwork, it leaves it empty and tells you so, rather than making something up to be helpful.

A quick timeline

It's been moving fast, which is why some of the explainers out there are already out of date.

  • 15 September 2026: TypeSafe AI releases Jev, the first of what they call "System One" models. Ask it a question with a fixed set of answers and it picks one, with probabilities.
  • 1 October 2026: Cloudflare releases Clef and Clef-flash, its own decision models, which speak the same System One API.
  • 19 October 2026: Clairic arrives in preview on Workers AI.
  • 18 November 2026: Clairic comes out of preview and gets a smaller sibling, Clairic-flash. The weights for both are published on Hugging Face under the Apache 2.0 licence.

The Cloudflare announcement opens with the line "Cloudflare has become a neolab", and the team behind it is now called the Workers AI superintelligence team. That's quite a shift for a company that used to just host other people's models.

Extract, decide, then write

The idea I like most is how Cloudflare splits up the work.

  1. An extraction model (Clairic) reads the input and pulls out the values.
  2. A decision model (Jev or Clef) makes a choice based on those values, from a set of options you've listed.
  3. A large language model turns that decision into words, but only if a person actually needs to read something.

Most of us have been throwing all three jobs at a chatbot and hoping the JSON comes back in one piece. Splitting them up makes each step smaller, quicker, cheaper and much easier to test.

What it can give you back

There are nine field types: text, number, date, time, datetime, duration, list, estimate and forecast.

The first few do what they say on the tin. A text answer is an exact copy of part of the input, with the character positions, so you can highlight where it came from. A number can be read straight off the page or worked out, with a unit and a set number of decimal places. Dates can be calculated, so "order date plus five days" works. You can also pass a reference date, so it knows which year "14 July" means.

Estimate and forecast are where it gets interesting. An estimate is for a value the document can't settle on its own. Instead of one number you get a middle value and a range, from the 10th to the 90th percentile. A forecast projects a series forward, up to 64 steps.

Every answer comes back with a confidence score and something called p_null, which is the probability that the value isn't in the input at all. Above a threshold (0.5 by default) the answer is null, but you still get a "guess" showing what it would have said. I really like that. You can let the confident answers straight through and send the borderline ones to a person.

What it looks like

Here's a scrappy line of match report, the kind of thing I was wrangling for the tennis post.

js
const result = await env.AI.run("@cf/cloudflare/clairic", {
  model: "clairic",
  state: "Wimbledon final, 14 July: Djokovic beat Federer 7-6(5) 1-6 7-6(4) 4-6 13-12(3), saving two championship points.",
  reference_date: "2019-07-20",
  fields: {
    winner: { type: "text" },
    runner_up: { type: "text" },
    played_on: { type: "date" },
    set_scores: { type: "list", items: "text" },
    championship_points_saved: { type: "number" }
  }
});

result.answers.winner.value; // "Djokovic", plus a confidence score and where in the text it found it

What I wouldn't do is ask Clairic who would have won over three sets. Cloudflare's own advice is to "extract the inputs with Clairic and do the math in code". One or two steps of maths are fine. Long chains of sums across lots of rows aren't there yet. So Clairic hands me the set scores, and five lines of JavaScript tell me Djokovic still wins this one 2–1. (Unlike eight of his others.)

What's new in this version

The 18 November update changed more than the name on the box.

  • Two sizes. Clairic is a 27 billion parameter model and Clairic-flash is 9 billion. Funnily enough, the preview had been serving the 9B model all along. That one is now flash, and the bigger model has taken over the main name.
  • PDFs. You can now send PDFs as well as images, up to four pages or images in total per request.
  • Better with messy documents. Tables, lists and dates are more reliable, and line items come back as rows, so each description stays with its quantity and price, even across pages.
  • It now writes some answers out. The preview didn't generate any text at all. For text and number fields the new version does, each field in its own lane, all of them running side by side. It costs a little speed and buys a lot of accuracy.

Cloudflare's numbers show the difference. On their test of 336 text fields, the preview got 295 right, the new Clairic got 335 and flash got 328. On a set of made-up receipts, the preview managed 369 out of 576 and both new models got all 576. In one example the preview couldn't find the shop name on a coffee receipt at all. The new model read "Coffee House" and got all five fields right.

You could of course argue that a company marking its own homework will always look good, and Cloudflare say as much themselves. There's no public benchmark for extraction yet, so they suggest you "take these evals as directional guidance".

How fast, and how much

Most answers come back in under a second. On plain text the typical response is about 358ms for Clairic and 155ms for flash. A commercial lease takes about 691ms and 379ms.

The pricing is what made me look twice. You only pay for what you send in, not for what comes back.

  • Clairic: $0.24 per million input tokens
  • Clairic-flash: $0.10 per million input tokens

(There was a launch offer of $0.10 for both, which ran until 1 December.)

One thing worth knowing before you build a big form: on Workers AI every text field gets its own pass, and the document is counted again on each pass. Twenty text fields on a long document means paying for that document twenty times. Numbers, dates and the other types all share a single pass, so they're cheap.

If you'd rather run it yourself, the weights are on Hugging Face. Flash is the realistic option for most of us: the full model is around 56GB of weights in its original form, before you've asked it anything.

Where it falls down

  • Well formed isn't the same as right. You're guaranteed a valid value of the right type, or null. You're not guaranteed it's correct. Cloudflare put it best: "Every answer is well formed, not necessarily correct."
  • Long sums. As above, pull the numbers out and do the maths yourself.
  • Estimates need evidence. If the input has comparables or history, the range is useful. If it doesn't, in Cloudflare's words, "the interval is wide".
  • Forecasts are basic. They drift towards the average the further out you go, and they don't know about anything the data doesn't show, like a public holiday. "It does not replace a time-series model trained on your data."
  • Four pages. Four images or PDF pages per request is plenty for a receipt and not much use for a 60-page contract, unless you split it up first.

Where I'm going to use it

I've spent most of this year building working versions of ideas for pitches, so my first thought with anything new is "what would this look like in front of a client?" Clairic has a pretty good answer: drop the client's own document in and watch it fill in the form in under a second, with every answer pointing back to the words it came from.

That got me thinking about my own projects. There are a few where this slots straight in, from Roleline's job search to the cricket fielding app, and I'll write those up as I build them.

If you want to have a play, Clairic is on Workers AI now as @cf/cloudflare/clairic and @cf/cloudflare/clairic-flash, and the open weights are at huggingface.co/Cloudflare/clairic.

Further reading

Need help with something similar?

Turn the rough edge into a simpler system.

I help teams with technical architecture, DevOps, CI/CD, performance, replatforming, and practical AI process improvement.

Start a conversation