Run this now. No account, no API key, no signup.
curl https://api.getnadir.com/v1/bucket \
-H "Content-Type: application/json" \
-d '{"prompt": "What is the capital of France?"}'{
"bucket": "simple",
"bucket_index": 1,
"confidence": 0.8995180868513469,
"complexity_score": 0.029083276545861736,
"probabilities": {
"simple": 0.9422985315322876,
"medium": 0.05723639205098152,
"complex": 0.00046508052037097514
},
"decode": "argmax",
"prompt_tokens": 7,
"analyzer_hash": "83d427b13dc6",
"request_id": "dcb8e5c2-d544-4f11-84be-34222b8a28bc",
"latency_ms": 98,
"plan": {
"execute": "delegate",
"model": "claude-haiku-4-5",
"effort": null,
"tier": "simple",
"reason": "claude-haiku-4-5 does not accept an effort parameter; omit it; no warm model declared, so there is no inline alternative to price",
"basis": ["bucket", "effort_policy_map", "no_warm_model"],
"inline_cost_usd": null,
"delegate_cost_usd": null,
"delta_usd": null,
"turns": null,
"break_even_turns": null,
"warnings": []
},
"anon": {
"note": "Routed by Nadir, free anonymous tier",
"signup_url": "https://getnadir.com/auth?mode=signup&src=bucket_anon",
"skill_url": "https://getnadir.com/skill"
}
}What that was
A routing decision, on its own, with no model call attached. Nadir read the prompt, classified it, and returned the tier plus the model it would dispatch to. Nothing was generated and nothing was billed.
That separation is the point. Most of Nadir runs as a proxy you put in front of your provider, and for many teams that is the right shape. But the decision is a smaller, faster thing than the request, and you can buy it by itself. Keep your own gateway, your own provider keys, your own logging, and take only the choice of model.
Three calls to a routed request
1. Ask which tier a prompt belongs to
/v1/bucket is the call above. It needs no credentials, so it is the fastest way to see the classifier behave on your own prompts before you commit to anything.
2. Ask which model to dispatch to
/v1/recommend is the keyed version. It runs the full production router against the models configured on your API key and returns one model name.
curl https://api.getnadir.com/v1/recommend \
-H "Content-Type: application/json" \
-H "X-API-Key: $NADIR_API_KEY" \
-d '{"prompt": "What is the capital of France?"}'3. Send the request yourself
Take recommended_model and pass it to your existing provider client. Nadir never sees the prompt content twice and never sees the completion.
import httpx, anthropic
decision = httpx.post(
"https://api.getnadir.com/v1/recommend",
headers={"X-API-Key": NADIR_API_KEY},
json={"prompt": prompt},
).json()
# Your provider, your key, your client.
resp = anthropic.Anthropic().messages.create(
model=decision["recommended_model"],
max_tokens=1024,
messages=[{"role": "user", "content": prompt}],
)The endpoints
POST /v1/bucket
Complexity tier, tier distribution, and a deterministic execution plan. Works with no API key.
POST /v1/recommend
One model name from the production router, scoped to the models on your key. Requires a key.
POST /v1/optimize
Compact a message list and report the tokens removed. Requires a key.
POST /v1/verify
Score a candidate answer with the cascade verifier. Requires a key.
POST /v1/route
Bucket and prompt compaction in one call, with the prompt-cache economics already resolved. Works with no API key.
None of the five invokes an LLM, so none of them bills provider tokens.
Why you might want the decision alone
- Your gateway stays yours. Kong, APISIX, LiteLLM, or your own service keeps owning auth, rate limits, retries, and logs.
- Provider keys never leave your network. Nadir reads the prompt to make the decision and returns a model name. Whether the prompt text is kept follows your account's prompt storage setting: on by default, and only a SHA-256 hash when you turn it off.
- No proxy hop on the generation path, so streaming and tool calls behave exactly as your provider client already does.
- You can adopt on a slice of traffic. Route 5 percent through the decision and compare.
Tip
api.getnadir.com/v1 with model="auto" and Nadir makes the same decision inside the request path. See the Quick Start.