Clairic vs Clairic-flash: Cloudflare's extraction model returns to $0.24 per million tokens, and its weights are open
Cloudflare's 27B Clairic extraction model leaves its $0.10 launch promo on December 1, 2026 and returns to $0.24 per million input tokens; the 9B Clairic-flash stays at $0.10. Both are open-weight under Apache 2.0. How to choose, and why text fields drive the bill.
Cloudflare's launch discount on Clairic, its structured-extraction model on Workers AI, ends on December 1, 2026. From then on the standard price of $0.24 per million input tokens applies, up from the promotional $0.10. The smaller Clairic-flash keeps the $0.10 price. Both models were released as open weights on Hugging Face under the Apache 2.0 license in Cloudflare's November 18 announcement.
If your Worker calls @cf/cloudflare/clairic, nothing breaks: Cloudflare says the preview endpoint was upgraded in place. What changes is the bill, and the choice of which of the two models to call.
Quick facts
- Clairic: 27B parameters, fine-tuned from Qwen3.8-27B, Workers AI ID @cf/cloudflare/clairic, $0.24 per million input tokens from December 1, 2026, when the $0.10 promo ends.
- Clairic-flash: 9B parameters, fine-tuned from Qwen3.5-9B, ID @cf/cloudflare/clairic-flash, $0.10 per million input tokens. This is the model that served the earlier preview endpoint.
- Output tokens are not billed on either model; only input tokens, including image and PDF tokens, are.
- Context window 65,536 tokens (the API schema caps each prompt at 65,273 input tokens); up to four images or PDF pages per request, 4 MiB each and 8 MiB combined; remote URLs are not accepted.
- Both are listed with zero data retention on Workers AI. The docs still label Clairic a preview and Clairic-flash an early research preview.
What Clairic does
Clairic is not a chat model. You send a state (text, plus optional images or PDFs) and a schema of typed fields, and it returns one typed answer per field. Field types include text, number, date, time, datetime, duration, boolean, enum, object, list, compute, estimate and forecast. Text answers found in the input come back with their character spans (evidence read only from images can have no span), extracted answers carry a confidence score and a probability that the value is null, and estimates return a median with p10 and p90.
That design is aimed at the jobs people currently push through a general LLM with a JSON prompt: invoice fields, receipt totals, values from support tickets, dates worked out from payment terms. In the docs example, a missing purchase-order number comes back as null with p_null of 1 rather than a guessed string.
Clairic or Clairic-flash?
Start with Clairic-flash and measure. On Cloudflare's own evals, which the company itself calls self-reported and directional, the gap between the two is small:
- Fresh text fields (96 requests): Clairic 335/336, Clairic-flash 328/336.
- Mixed-input internal eval (36 requests): 221/226 versus 213/226.
- Tracked customer assertions and synthetic receipt fields in text and images: both scored 1,263/1,263 and 576/576.
- Latency measured by Cloudflare on a self-hosted server, p50 on fresh text fields: 358 ms for Clairic, 155 ms for Clairic-flash; on fresh image fields, 453 ms versus 305 ms.
So the 27B model costs 2.4 times as much from today for a few extra correct fields on the harder sets. It is worth it where a single wrong field is expensive, for example mixed documents with images, and hard to justify for clean text. Cloudflare compares both against Liquid AI's D1.2 with OCR and ScaleDown's Extract in the same table; there is no public extraction benchmark yet, so treat those comparisons as the vendor's.
Why the number of text fields drives the bill
This is the detail most likely to surprise you. The Workers AI docs say Clairic answers each text field in its own pass, other fields share a pass, and every pass includes the full state and all images, which are billed once per pass. The response reports usage.passes.
Images are tokenized at one token per 32x32-pixel block plus two marker tokens. A 1024x768 receipt photo is therefore 32 x 24 + 2 = 770 tokens per pass. Ask for three text fields and two numbers and that is four passes, or 3,080 image tokens. Our arithmetic, for the image tokens alone: about $0.74 per 1,000 receipts on Clairic at $0.24, and about $0.31 on Clairic-flash at $0.10. The docs' own invoice example used 655 input tokens over three passes, which works out to about $157 per million such requests on Clairic and about $66 on Clairic-flash.
Two practical consequences: model fields that are really numbers, dates or enums with those types instead of text, and crop or downscale images before sending, because Clairic scales up small images but does not scale down large ones.
Running the open weights yourself
The Hugging Face repositories hold the weights (BF16 safetensors, 28B parameters listed for Clairic), a separate clair_head file for the typed outputs, and Python helpers. The model card's documented path is to download the repository, load it with load_release_model, and call systemone with the same state-and-fields request the API uses; it needs Python 3.11 or later, PyTorch, Transformers and xgrammar. Self-hosting makes sense when documents cannot leave your infrastructure or volume is high enough to beat $0.24 per million tokens; you lose the hosted zero-retention endpoint and take on GPU costs.
Try it with your AI. Copy this prompt to an AI coding assistant to estimate what moving an extraction job to Clairic or Clairic-flash would cost. It only reads code and reports.
I want to compare my current LLM-based extraction with Cloudflare Workers AI Clairic
(@cf/cloudflare/clairic, $0.24 per million input tokens) and Clairic-flash
(@cf/cloudflare/clairic-flash, $0.10 per million input tokens). Do not change files,
install packages or read credential files. First, find where this repository extracts
structured fields from text, images or PDFs with an LLM, and show me the prompts and
output schemas. Then, for each extraction, map every output field to one Clairic field
type (text, number, date, time, duration, boolean, enum, object, list, compute,
estimate, forecast), and count how many are type text, because each text field costs its
own pass and every pass re-bills the full input and all images. Estimate input tokens
per request: text tokens, plus image tokens at (width/32) x (height/32) + 2 per image
after rounding each side to a multiple of 32, times the number of passes. Show me a
table: extraction, fields, text fields, estimated passes, estimated input tokens, cost
per 1,000 requests on each model. Suggest which text fields could be retyped. Wait for
my confirmation before writing any code. [My monthly request volume: ...]Known limits
- Both models are still labeled preview on Workers AI, and the published accuracy numbers come from Cloudflare's own evals.
- Requests that do not fit the context window fail. The docs are inconsistent on truncation: the billing notes say Clairic may truncate the text state to fit, while the API schema says input is never truncated and uses the truncated flag for incomplete answers. Check that flag either way.
- No remote image URLs, no encrypted PDFs, and at most four images or pages per request.
- The model card says scores are model probabilities that you should calibrate against your own acceptance thresholds.
FAQ
Did the Clairic price change on December 1, 2026? Yes. Cloudflare's blog says the promotional discount ends on December 1 and pricing resumes at $0.24 per million input tokens. Clairic-flash stays at $0.10.
Do I need to change my code? No, if you only want the new model: the preview endpoint @cf/cloudflare/clairic now serves the 27B model and the API schema is unchanged. To keep paying $0.10, switch the model ID to @cf/cloudflare/clairic-flash.
Is Clairic open source? The weights and helper code are on Hugging Face under Apache 2.0. Clairic is fine-tuned from Qwen3.8-27B and Clairic-flash from Qwen3.5-9B.
Are output tokens charged? No. Cloudflare bills only input tokens for both models, including the tokens for images and PDF pages on every pass.
Do PDF pages count toward the four-image limit? Yes. Rendered PDF pages and images together must total at most four per request.
Can Clairic forecast? Yes. A forecast field takes a range, a horizon and an interval, and the model card shows options.include_quantiles for returning quantiles.
Related on claudefox
- Malicious GGUF models on Hugging Face hid a Windows trojan and targeted coding agents
- OpenVINO: optimize and deploy AI inference on CPU, GPU and NPU
- Hugging Face Inference Providers now route through OpenRouter: what changes for your code, keys and Claude Code
- llama-modchip runs the 284B DeepSeek-V4-Flash on a 64 GB PC with no GPU, using patched llama.cpp
Source: Cloudflare blog: An updated Clairic and Clairic-flash are now open-weight (Nov 18, 2026), Workers AI docs: clairic, Workers AI docs: clairic-flash, Hugging Face: Cloudflare/clairic, Hugging Face: Cloudflare/clairic-flash
This story first appeared in the claudefox daily briefing for December 1, 2026.