Cloudflare Clairic
Chat model from cloudflare. One API key reaches this provider and every other model in the catalog.
No card required. Start with 1 million free tokens.
About Cloudflare Clairic
Cloudflare Clairic is a chat model published by cloudflare, with a 65,536-token context window. Through TrustedRouter it runs on 1 provider, with options in the US, from $0.11 per million input tokens.
- Model ID
cloudflare/clairic- Publisher
- cloudflare
- Modes
- chat
- Billing
- Credits
Set it up with your agent
Paste this into Claude Code, Cursor or any coding agent.
Use Cloudflare Clairic through TrustedRouter in this project.
1. Read https://trustedrouter.com/llms.txt
2. Point the OpenAI-compatible client at
https://api.trustedrouter.com/v1 and read the key from
TRUSTEDROUTER_API_KEY.
3. Set the model to cloudflare/clairic.
4. Run the tests, then show me the diff before committing.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.trustedrouter.com/v1",
api_key=os.environ["TRUSTEDROUTER_API_KEY"],
)
response = client.chat.completions.create(
model="cloudflare/clairic",
messages=[{"role": "user", "content": "What is the capital of France?"}],
)
print(response.choices[0].message.content)
curl https://api.trustedrouter.com/v1/chat/completions \
-H "Authorization: Bearer $TRUSTEDROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "cloudflare/clairic",
"messages": [{"role": "user", "content": "What is the capital of France?"}]
}'
Providers
Open the row for retention, location and weight format, or see how we check privacy claims and the live speed leaderboard.
| Provider | Input | Cached | Output | Cost per 1M in + out | Details |
|---|---|---|---|---|---|
|
|
$0.106 | — | $0 | $0.11 | |
|
Retention Verification: privacy unknown. Workers AI documents no input/output retention after ordinary stateless inference and no model training. Stateful features, customer-enabled logging/caching, and safety, security or legal exceptions may retain content. No exception-free commitment is verified for this account; these routes remain outside strict ZDR. Location Operator country: US Headquarters / registered office: Not verified. Inference: Inference location not verified; no country-specific residency commitment. No inference-location declaration has been verified for this provider. Region pinning through TR: No verified provider-specific location pin documented here. Weight format Unknown Price and speed Input $0.1055/1M · Cached input Not published · Output $0/1M TTFT: insufficient data Speed: insufficient data Last sample: |
|||||
How to use Cloudflare Clairic
Preview typed extraction model: extract, compute, estimate or forecast values. Input-only billing, with confidence scores and distributions. Not a conversational model. Weights are not yet public.
- Input
- POST /v1/chat/completions with cloudflare/clairic. Put native task JSON in exactly one user message: state, fields, and optionally reference_date, options and embedded images (PNG/JPEG/WebP, up to 4). Field types: text, number, date, time, datetime, duration, list, estimate, forecast. No tools, response_format or chat history. Native schema: https://developers.cloudflare.com/workers-ai/models/clairic/
- Output
- JSON in choices[0].message.content: answers, confidence/probability metadata, truncated and native usage. Streaming delivers the completed extraction as one result. prompt_tokens is the provider's billable input_tokens across all passes; completion_tokens is zero. A null value means insufficient evidence. Check truncated before relying on the result.
Example input
{"state": "Invoice INV-2291: total USD 1080.", "fields": {"invoice_number": {"type": "text"}, "total": {"type": "number"}}}
Example output
{"answers": {"invoice_number": {"type": "text", "value": "INV-2291", "confidence": 0.99}, "total": {"type": "number", "value": 1080, "confidence": 0.99}}, "truncated": false}
Questions
What model ID should I use for Cloudflare Clairic?
Use cloudflare/clairic as the model field with the TrustedRouter OpenAI-compatible API. Credits routing and provider fallback happen behind that model ID.
Do you log my prompts or outputs?
No. Prompt and output content are intentionally excluded from the control plane and metadata systems. Optional content export requires explicit destination-level configuration.
Which providers serve Cloudflare Clairic?
TrustedRouter currently lists Cloudflare Workers AI for Cloudflare Clairic. Provider availability and routing eligibility can change as catalog and health data update.
How much does Cloudflare Clairic cost through TrustedRouter?
The current lowest Credits input price is $0.1055/1M and the lowest Credits output price is $0/1M. Prices are per one million tokens and come from the current route catalog.
How do I require zero data retention for Cloudflare Clairic?
Set provider.min_privacy to zdr on the request. TrustedRouter considers only routes with a recorded zero-data-retention posture and fails closed if no eligible route remains.
Cloudflare Clairic vs other models
Start building with Cloudflare Clairic.
No card required. Start with 1 million free tokens.