Skip to content

Unify API

Structured answers, not chat.

Send state and typed questions to classify input or score it in one request.

POST /api/v1/decisions
cURL
curl https://anyrouter.dev/api/v1/decisions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anyrouter/decision",
    "state": "Where can I find my receipt?",
    "questions": {
      "is_billing": {
        "type": "noul",
        "instructions": "Is this question about billing?"
      }
    }
  }'

anyrouter/decisionis served free by a platform upstream, so this runs on any key.

What works

  • Yes/no, multiple choice, and score questions
  • Structured answers keyed by question ID

Related docs and use cases

Next