Video Gen API 开发者文档
使用指南火山兼容APIOpenAI 兼容API在线调试帮助支持
素材 Action

查询素材列表

ListAssets - 按素材组、类型、状态或名称分页查询素材

POST
/
AuthorizationBearer <token>

兼容网关 API Key,例如 sk-...。

In: header

Query Parameters

Action*string
Default"ListAssets"
Version*string
Default"2024-01-01"

Header Parameters

X-Date?string

使用 HMAC-SHA256 时必填,格式为 YYYYMMDDTHHMMSSZ。

X-Content-Sha256?string

使用 HMAC-SHA256 时必填,请求体 SHA-256 小写十六进制。

Request Body

application/json

Filter?
PageNumber?integer
Default1
Range1 <= value
PageSize?integer
Default20
Range1 <= value <= 100
SortBy?string
Default"CreateTime"
Value in"CreateTime" | "UpdateTime" | "GroupId"
SortOrder?string
Default"Desc"
Value in"Desc" | "Asc"
ProjectName?string

资源所属项目名称,大小写敏感。省略时使用 default。

Default"default"

Response Body

application/json

application/json

curl -X POST "https://jieyun.cc/?Action=ListAssets&Version=2024-01-01" \  -H "Content-Type: application/json" \  -d '{    "Filter": {      "GroupIds": [        "group-202607210001-example"      ],      "Statuses": [        "Active"      ]    },    "PageNumber": 1,    "PageSize": 20,    "SortBy": "CreateTime",    "SortOrder": "Desc",    "ProjectName": "default"  }'
{
  "ResponseMetadata": {
    "RequestId": "20260721000000000000000000000000",
    "Action": "ListAssets",
    "Version": "2024-01-01",
    "Service": "ark",
    "Region": "cn-beijing"
  },
  "Result": {
    "Items": [
      {
        "Id": "asset-202607210001-example",
        "Name": "产品主图",
        "URL": "https://example.com/temporary/product.png",
        "GroupId": "group-202607210001-example",
        "AssetType": "Image",
        "Status": "Active",
        "Moderation": {
          "Strategy": "Default"
        },
        "Error": {
          "Code": "",
          "Message": ""
        },
        "ProjectName": "default",
        "CreateTime": "2026-07-21T00:00:00Z",
        "UpdateTime": "2026-07-21T00:00:00Z"
      }
    ],
    "TotalCount": 1,
    "PageNumber": 1,
    "PageSize": 20
  }
}
{
  "ResponseMetadata": {
    "RequestId": "string",
    "Action": "ListAssets",
    "Version": "2024-01-01",
    "Service": "ark",
    "Region": "cn-beijing",
    "Error": {
      "Code": "string",
      "Message": "string"
    }
  }
}
Empty
Empty
Empty
Empty

最后更新于