Cloudflare has announced open-weight releases of its redesigned 27-billion-parameter Clairic and lighter 9-billion-parameter Clairic-flash extraction models. The update adds PDF support alongside claimed improvements to image reading, tables, lists and dates. Both models are available through Workers AI, with weights on Hugging Face, according to the company. Source
Clairic has a refreshingly specific job: pull requested fields out of unstructured material, such as the supplier, line items and total from an invoice. Cloudflare pitches these task-focused models as a way to supplement more expensive general-purpose LLMs. Not every receipt needs the full chatbot treatment. Source
PDF support, with a page limit worth reading
Cloudflare says a request can include up to four images or PDF pages combined, with information extracted across pages. Line items can come back as rows that keep descriptions, quantities and prices together. That’s four pages, not four PDFs of whatever heroic length the accounting department has produced. Source
The company says the API retains confidence scores, character spans and probabilities. Confidence scores aren’t a guarantee that an extracted answer is correct. Source
Same endpoint, bigger model, different bill
Cloudflare says it is rolling the 27B model into @cf/cloudflare/clairic, replacing the 9B model previously served there. The lighter model moves to @cf/cloudflare/clairic-flash, while the API schemas remain unchanged. Source
Cloudflare announced these Workers AI input-token rates: Source
There’s no separate output-token charge, the company says. Keeping the old endpoint name does not keep the old rate. Cost-sensitive users can switch to the flash endpoint. Source
The architecture changed; the results still need outside testing
Cloudflare says ordinary text and number extraction now uses parallel slot autoregressive generation rather than producing answers in a single pass through the model. Each requested field builds its answer one token, or small unit of text, at a time, using what it has already written to choose the next token. The fields advance together in the same batch. The company credits that redesign with improved extraction accuracy at the cost of a small increase in response time. Source
On its internal test of synthetic receipt fields drawn from text and images, Cloudflare reports scores of 576 out of 576 for both new models, compared with 369 out of 576 for Clairic-preview. Those are fields, not receipts, and Cloudflare explicitly calls its self-reported evaluations directional guidance. A perfect score on that test does not mean receipts have been solved. Source
Cloudflare measured complete HTTP response times from a self-hosted server, using 48 fresh-image requests per model. It reports 95th-percentile times of 976 milliseconds for Clairic and 605 milliseconds for Clairic-flash: roughly 95% of each model’s measured responses finished within its reported time. Those figures don’t mean every response finished within a second, and they don’t establish production Workers AI response times. Source
Hugging Apps also provides demo interfaces for both models, with text and image inputs and a field-schema editor. SourceSource They offer a starting point for trying the extraction workflow. Your application’s awkward documents still deserve their own audition.
Comments