Integration docs
Call Karpo Decision from your own code, with curl or either SDK.
Address and authentication
Send requests to https://router.karpo.ai. Authenticate every call with your key in the Authorization header.
https://router.karpo.aiAuthorization: Bearer <API_KEY>Models and prices
| Model id | Name | Price | Released |
|---|---|---|---|
| karpo-decision-31b | Karpo Decision 31BTyped decisions (choice, yes/no, score) over text and images, read in one forward pass. #1 on the Decision Index (Full 73.9, 12 November 2026). | $0.1 per million input tokens | 2026-11-05 |
| karpo-decision-27b-act | Karpo Decision 27B ActWeb actions for browser agents: at each step, one choice among the page's actions and seven endings, read from the numbered page list and a screenshot. The System 1 model of karpo-browser. Reads images only at state.viewport_screenshot (an image_url part) and in images; assets are refused. For general decisions, use karpo-decision-31b. | $0.08 per million input tokens | 2026-11-20 |
| karpo-decision-12b | Karpo Decision 12BTyped choice, yes/no, and score questions over text and images. Images can be sent inline as assets, in the state screenshot, or in the images list. | $0.025 per million input tokens | 2026-11-12 |
| karpo-decision-9b |
Output tokens are free.
Pointing each SDK at the platform
| SDK | Address to set |
|---|---|
| TypeSafe SDK | baseURL: "https://router.karpo.ai" · base_url="https://router.karpo.ai"The SDK adds /v1/systemone and /v1/models itself. |
| OpenRouter SDK | serverURL: "https://router.karpo.ai/v1" · server_url="https://router.karpo.ai/v1"systemOne.create goes to /v1/systemone. |
| OpenRouter SDK · alpha.decisions.create | { serverURL: "https://router.karpo.ai" } · server_url="https://router.karpo.ai"alpha.decisions.create takes its server per call, not from the client, and the SDK adds /api/alpha/decisions. |
Examples
Each example asks the same question and prints the answers and the usage. They read the key from KARPO_API_KEY.
curl https://router.karpo.ai/v1/systemone \
-H "Authorization: Bearer $KARPO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "karpo-decision-31b",
"state": "Order 1182: the customer asks to return a blender bought 45 days ago. Policy: returns within 30 days.",
"questions": {
"eligible": {"type": "noul", "instructions": "Is the return eligible under the policy?"},
"action": {"type": "choice", "instructions": "What should the agent do?",
"criteria": {"refund": "Issue a full refund", "decline": "Politely decline the return",
"escalate": "Escalate to a supervisor"}}
}
}'
Errors
Every error has the body {"error":{"code","type","message"}}. TypeSafe's SDKs retry 408, 429 and 5xx; OpenRouter's retry only 5xx, so a 429 reaches your code as TooManyRequestsResponseError. A retry waits as long as Retry-After says.
| Status | Type | Meaning |
|---|---|---|
| 401 | invalid_api_key | The key is missing, malformed or unknown. |
| 401 | api_key_revoked | The key was revoked. |
Limits
- A request body is at most 32 MiB, before and after decompression.
- A body can be compressed with gzip or zstd (Content-Encoding).
- Send images as assets with the TypeSafe SDK, or as image_url parts.
- The box question type is not supported.
- Each account may make 120 calls per minute, in bursts of up to 20.