All models

laya

laya

Pricing details

CNY / 1M Tokens

Input

Input

¥0.20

Output

Output

¥0.00

Quickstart

Endpoint URLPOST https://www.dxnt.com/v1/predict
cURL
curl https://www.dxnt.com/v1/predict \
  -H "Authorization: Bearer sk-your-key" \
  -H "Content-Type: application/json" \
  -d '{
    "state": "客户投诉:订单#8812被重复扣款两次,要求今天退款。",
    "questions": {
      "route": {"type": "choice", "instructions": "应该派给哪个团队?",
                "criteria": {"billing": "支付/退款问题", "tech": "技术故障"}},
      "urgency": {"type": "score", "instructions": "紧急程度0-4级?",
                  "criteria": ["0 不紧急", "1 低", "2 中", "3 高", "4 危急"]},
      "needs_human": {"type": "noul", "instructions": "是否需要人工介入?"}
    }
  }'
Python (requests)
import requests

r = requests.post("https://www.dxnt.com/v1/predict",
    headers={"Authorization": "Bearer sk-your-key"},
    json={
        "state": "客户投诉:订单#8812被重复扣款两次,要求今天退款。",
        "questions": {
            "route": {"type": "choice", "instructions": "应该派给哪个团队?",
                      "criteria": {"billing": "支付/退款问题", "tech": "技术故障"}},
            "urgency": {"type": "score", "instructions": "紧急程度0-4级?",
                        "criteria": ["0 不紧急", "1 低", "2 中", "3 高", "4 危急"]},
            "needs_human": {"type": "noul", "instructions": "是否需要人工介入?"}
        }
    }, timeout=10)
print(r.json()["answers"])

Model info

Model identifierlaya
Billing methodBilled per token
Input price¥0.20 / 1M
Output price¥0.00 / 1M
Cache read¥0.20 / 1M
Cache creation¥0.20 / 1M

Start using laya

Sign up for free quota — just swap the endpoint URL to integrate.