全部模型

laya

laya

定价详情

元 / 1M Tokens

Input

输入

¥0.20

Output

输出

¥0.00

快速接入

接口地址POST 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"])

模型信息

模型标识laya
计费方式按 Token 计费
输入价格¥0.20 / 1M
输出价格¥0.00 / 1M
缓存读取¥0.20 / 1M
缓存创建¥0.20 / 1M

开始使用 laya

注册即送免费额度,替换接口地址即可接入