Decision Model
NEWCopy success!
Overview
A structured decision model designed for high-frequency business decisions. It performs classification, yes-or-no decisions, and scoring in parallel based on text or business context, returning probability distributions and confidence scores for scenarios such as ticket routing, content moderation, agent routing, and result validation.
Input
Text
Output
Text
Features
Prefix Completion
Enable Partial Mode when calling the Qwen API to make the model continue strictly from your provided prefix text.View docsFunction Calling
Use function calling to connect large language models with external tools and systems.View docsCache
Context Cache stores shared prefixes for long-context requests to reduce repeated computation, improve latency, and lower cost.View docsStructured Outputs
Structured Outputs help ensure the model returns a JSON string in the expected format.View docsPricing
- InputFreePer 1M tokens
Rate Limits & Context
- Max Input65K
- Context65K
- TPMTokens Per Minute2M
- RPMRequests Per Minute1K
API Reference
Call APICopy success!
12345678910111213141516
curl -sS -X POST https://maas.qwencloudapi.com/compatible-mode/v1/systemone \
-H "Authorization: $DASHSCOPE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "decision-model-preview",
"state": {"ticket_id": "T-1001", "content": "More than 24 hours have passed since the order was paid, but the funds have still not been credited. The user cannot continue using the core service and requests immediate handling."},
"questions": {
"department": {"type": "choice", "instructions": "Which team should handle this?",
"criteria": {"billing": "Payment, refund, and billing issues", "technical": "Product malfunctions and integration issues"}},
"escalate": {"type": "noul", "instructions": "Does the on-call staff need to be notified immediately?"},
"severity": {"type": "score", "instructions": "How severe is this issue?",
"criteria": ["Minor issue, does not affect functionality", "Partial functionality affected, but a workaround exists",
"Core functionality unavailable, no workaround", "Causes severe business or security impact"]}
}
}'