Install the SDK
pip install cairn
npm install @cairn/sdk
# no install needed
GOAL: API key in under 5 minutes · AUDIENCE: developers · CTA: Get API key (primary), Open playground, Read the docs. Code first, prose second.
CAIRN API · v2026-09
One endpoint, three models, citations as structured data. OpenAPI spec, typed SDKs and an MCP server included.
$ curl https://api.cairn.example/v1/responses -H "Authorization: Bearer $CAIRN_API_KEY" -d '{"model":"ridge-2.0","input":"Which contracts renew before Q4?"}' { "model": "ridge-2.0", "output_text": "Three vendor contracts auto-renew before October 1…", "citations": [{ "n": 1, "source": "vendor-register.xlsx" }], "verification": "grounded", "usage": { "input_tokens": 1204, "output_tokens": 318 }, "latency_ms": 812 }
pip install cairn
npm install @cairn/sdk
# no install needed
export CAIRN_API_KEY="ck_live_…"
export CAIRN_API_KEY="ck_live_…"
export CAIRN_API_KEY="ck_live_…"
from cairn import Cairn
client = Cairn()
r = client.responses.create(
model="ridge-2.0",
input="Hello, Cairn",
)
print(r.output_text, r.citations)
import Cairn from "@cairn/sdk";
const client = new Cairn();
const r = await client.responses.create({
model: "ridge-2.0",
input: "Hello, Cairn",
});
console.log(r.outputText, r.citations);
curl https://api.cairn.example/v1/responses \
-H "Authorization: Bearer $CAIRN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"ridge-2.0",
"input":"Hello, Cairn"}'
MICRO-CONVERSION: playground run without a key. After the run: “Get the code for this request” converts to signup.
Press Run to see a streamed response. No key needed in the playground.
"citations": [
{"n": 1, "source": "demo://legal-ops/helio-msa.pdf", "span": [212, 318]},
{"n": 2, "source": "demo://legal-ops/vendor-register.xlsx", "row": 14}
]
Quality: Cairn GroundedQA v3, n = 2,400, Aug 2026, 95% CI shown. Latency: p95, 1k in / 300 out, eu-central. Illustrative.
Most capable. Long contracts, multi-step reasoning, agents.
Balanced. The default for assistants and RAG.
Fast and low cost. Classification, extraction, routing.
| Tier | Requests / min | Tokens / min | Unlocks |
|---|---|---|---|
| Free | 20 | 40k | First key |
| Tier 1 | 500 | 400k | $5 paid |
| Tier 2 | 3,000 | 2M | $100 paid + 7 days |
| Enterprise | Custom | Custom | Contract |
429 responses include retry-after. Prices: token pricing and cost estimator →
Responses now return exact spans for every citation, so you can highlight the source text.
No change to quality on GroundedQA v3 (87.2% vs 87.0%).
Move to pebble-1.4. Same price, same limits. Migration guide in the docs.
✓ Almost done. Confirm the link we sent to .
No matches. Try “pricing” or “docs”.