# OpenRouter APIs — Cloudflare: Clairic (cloudflare/clairic)

Guide for calling every confirmed OpenRouter API that serves `cloudflare/clairic`.

Model page: https://openrouter.ai/cloudflare/clairic
Create an API key: https://openrouter.ai/settings/keys

## Pricing

Standard-variant prices for `cloudflare/clairic`, per provider, in the unit each provider bills (tokens, images, seconds of video, or characters of audio). Pay-as-you-go with no markup on the provider's price.

- Cloudflare: $0.10/M tokens input, $0/M tokens output

Full price table, including other variants and per-request charges: https://openrouter.ai/cloudflare/clairic
How OpenRouter prices requests: https://openrouter.ai/pricing

## EU in-region routing

`cloudflare/clairic` is not currently available through EU in-region routing.

Docs: https://openrouter.ai/docs/guides/features/in-region-routing

## Authentication

Send this header with every request:

- Authorization: Bearer $OPENROUTER_API_KEY

## Extractions API

Read typed field values out of text with `cloudflare/clairic` through OpenRouter's Extractions API.

Docs: https://openrouter.ai/docs/guides/community/extractions

### Endpoint

POST https://openrouter.ai/api/alpha/extractions

Headers:
- Content-Type: application/json

### Request fields (cloudflare/clairic)

- model: string (required) — `"cloudflare/clairic"`
- state: string (optional) — the text to read from; omit it, or send only an asset key, to read just the assets
- fields: object (required) — at least one field, keyed by field name; each has a `type` (such as `text`, `number` or `date`) and `instructions`; see the example and the docs for every field type
- assets: object (optional) — files keyed by a reference string, each `{ format, data_base64 }`; write the key in `state` or a field `instructions` where the file belongs
- reference_date: string (optional, model-specific) — ISO date (YYYY-MM-DD) that anchors dates written without a year; some models reject it, so send it only when the docs list it for this model

### Response

JSON with one answer per requested field; `value` is null when the text does not determine the field. See the docs for the response schema.

### Examples

#### Extract fields

```bash
curl https://openrouter.ai/api/alpha/extractions \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer $OPENROUTER_API_KEY" \
            -d '{
              "model": "cloudflare/clairic",
              "state": "INVOICE 2041 from Meridian Office Supply, dated March 2, 2026. Subtotal $630.00, tax $52.00, total due $682.00. Payment due 30 days from the invoice date.",
              "fields": {
                "vendor": {
                  "type": "text",
                  "instructions": "The business that issued the invoice"
                },
                "invoice_number": {
                  "type": "text",
                  "instructions": "The invoice number as printed"
                },
                "payment_terms": {
                  "type": "text",
                  "instructions": "When payment is due, in the words of the invoice"
                }
              }
            }'
```

## Errors

Failures return `{"error": {"code": <number>, "message": <string>}}` with the HTTP status:

- 400 — malformed request or an unsupported parameter
- 401 — missing or invalid API key
- 402 — insufficient credits
- 403 — spend limit reached, key disabled, or access blocked
- 404 — unknown model or no provider can serve the request
- 429 — rate limited; retry with backoff
- 502 — the operation failed upstream; failed generations are not billed

---

Canonical version of this document: https://openrouter.ai/cloudflare/clairic/llms.txt
