Unify API
Structured answers, not chat.Câu trả lời có cấu trúc, không phải chat.结构化答案,而非聊天。
Send state and typed questions to classify input or score it in one request.Gửi trạng thái và câu hỏi có kiểu để phân loại hoặc chấm điểm đầu vào trong một yêu cầu.在一次请求中发送状态和带类型的问题,对输入进行分类或评分。
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.được upstream của nền tảng phục vụ miễn phí, nên chạy được với mọi key.由平台上游免费提供,任何 key 都能运行。
What worksHỗ trợ已支持
- Yes/no, multiple choice, and score questionsCâu hỏi có/không, trắc nghiệm và chấm điểm支持是非题、选择题和评分题
- Structured answers keyed by question IDCâu trả lời có cấu trúc theo ID câu hỏi按问题 ID 返回结构化答案