统一模型接入与用量管理 立即注册
蓝天
原站参考文档

以下为胜算云公开资料。文中的原站账号、地址、定价和专有服务不属于蓝天;蓝天可用模型以当前 sub2api 配置为准。接入蓝天请先查看 快速开始。

查看原文

POST 运行官方模板行

POST /loom/v1/officialTemplates/{officialTemplate}:runRows 运行官方模板行
所属分组:Official Templates · 官方模板

BASE URLhttps://router.shengsuanyun.com/api
认证方式Authorization: Bearer YOUR_API_KEY

端点列表

← 上一页
预检官方模板工作簿
下一页 →
运行官方模板工作簿

接口参考

以下为原文协议定义与示例,原站地址不代表蓝天已开通对应能力。蓝天接入地址和模型以本地配置为准。

蓝天 API 密钥
POST/loom/v1/officialTemplates/{officialTemplate}:runRowsRun official template rows

请求参数

参数位置 / 类型说明
officialTemplate必填path / anyOfficial template ID

请求体 · 必填

Rows run request

application/json
字段类型说明
callbackUrlstring
clientRequestIdstring
rowsarray
展开结构

array

数组元素

object

{
  "callbackUrl": "string",
  "clientRequestId": "string",
  "rows": [
    {}
  ]
}

请求示例

参考地址:https://loomloom.shengsuanyun.com。路径参数与凭据需替换;非 JSON 请求体需按对应格式准备。

curl -X POST 'https://loomloom.shengsuanyun.com/loom/v1/officialTemplates/{officialTemplate}:runRows' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  --data '{
  "callbackUrl": "string",
  "clientRequestId": "string",
  "rows": [
    {}
  ]
}'

响应

201 Created

application/json

字段类型说明
acceptedAtUnixinteger
runIdstring
statusstring
{
  "acceptedAtUnix": 0,
  "runId": "string",
  "status": "string"
}
400 Bad Request

application/json

字段类型说明
codestring
errorstring
{
  "code": "string",
  "error": "string"
}
401 Unauthorized

application/json

字段类型说明
codestring
errorstring
{
  "code": "string",
  "error": "string"
}
500 Internal Server Error

application/json

字段类型说明
codestring
errorstring
{
  "code": "string",
  "error": "string"
}