All use cases
Decisions APISDKs · Free
Triage with typed decisions instead of chat
Send state and typed questions to /api/v1/decisions and get probabilities back, not generated text. anyrouter/decision is free on Go and up, with a 5-request trial on Free.
Set it up
curl · decisions
curl https://anyrouter.dev/api/v1/decisions \
-H "Authorization: Bearer $ANYROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"state": "Help! My payouts have been failing for 3 days.",
"model": "anyrouter/decision",
"questions": {
"is_urgent": { "type": "noul", "instructions": "Does this convey urgency?" }
}
}'- 1.Send state (text or an object) and a questions map. Each question is noul (yes/no), choice, or score.
- 2.Use model anyrouter/decision. It picks a healthy decision model and falls back if one fails.
- 3.Read answers in the response. The model field names the model that answered.
Why use this
Routing a ticket or flagging urgency with a chat model means prompting for JSON and parsing it. A decision model returns the typed answer directly.
Endpoints and key
- OpenAI-compatible
- https://anyrouter.dev/api/v1
- Anthropic-compatible
- https://anyrouter.dev/api
- Key
- ANYROUTER_API_KEY (sk-ar-…)
Limits
- Do not send decision requests to /chat/completions. They are rejected there.
- A fair-use burst cap of 60 requests a minute per key applies. There is no daily or monthly cap.