Skip to content

Credit

Request

ParametersTypeRequiredDesc
creditobjectfalse本次请求消耗的代币数量
......trueother AI platform Parameters

说明:quantity 为本次请求消耗的代币数量,asset 列表表示消耗的顺序。 顺序中的资产名称必须在 console 上对应的策略中配置

json
{
  "credit": {
    "quantity": 10,
    "asset": [
      {
        "type": "consumable",
        "name": "vip1"
      },
      {
        "type": "subscription",
        "name": "vip2"
      }
    ]
  }
}

Response

json
{
  "credit": {
    "asset": [
      {
        "asset_name": "vip",
        "quantity": 10
      }
    ]
  }
}

京ICP备19011570号-2