开发者 / LayaModel
LayaModel API 接入
创建 LayaModel API 密钥,通过本站服务运行类型化判断。
身份认证
注册并验证邮箱,在 Console → API 密钥中创建本站服务密钥。Gateway 凭据由站点管理员管理,仅保存在服务器。
类型化判断
提交 state 和 1–8 个 choice、score 或 noul 问题。本站序列化请求上限为 8,000 字符,上游模型上下文为 8K tokens,两者单位不同。
curl https://www.layamodel.xyz/api/v1/systemone \
-H "Authorization: Bearer YOUR_LAYAMODEL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"state":"Please refund my duplicate payment.","questions":{"queue":{"type":"choice","instructions":"Choose the right support queue.","criteria":{"billing":"Payments and refunds","technical":"Technical issues"}}}}'Flow 计费
向 /api/v1/flows/{id}/run 提交 state。一次成功免费 Flow 扣 2 次每日额度;任何失败都退回 2 次。不足时返回 FLOW_FREE_QUOTA_INSUFFICIENT。用户明确同意按实际输入 tokens 付费后,才设置 useTokens: true;后续失败时已完成的付费节点仍扣费。
本站通过 Vercel AI Gateway 和 Boundless 运行 Convai Innovations 的 Laya,与上述提供方相互独立。
