Decision Model

NEW
Copy success!
Add to Compare

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 docs

Function Calling

Use function calling to connect large language models with external tools and systems.View docs

Cache

Context Cache stores shared prefixes for long-context requests to reduce repeated computation, improve latency, and lower cost.View docs

Structured Outputs

Structured Outputs help ensure the model returns a JSON string in the expected format.View docs

Batches

Asynchronously process requests in batches to reduce costs.View docs

Web Search

Enable web search so the model can answer with real-time retrieved data.View docs

Fine-tuning

Train models on sample data to better adapt them to specific tasks.View docs

Pricing

  • Input
    FreePer 1M tokens

Rate Limits & Context

  • Max Input
    65K
  • Context
    65K
  • TPMTokens Per Minute
    2M
  • RPMRequests Per Minute
    1K

API Reference

Call API
Copy 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"]}
    }
  }'