Skip to main content
查询素材列表
查询当前 API Key 用户名下的素材列表,支持按状态、类型、名称过滤,支持分页。

查询参数


示例

响应:
resource_url 是平台保存后的素材访问地址,通常为平台 CDN 地址;它不是视频生成请求使用的 asset:// URI。该字段仅在传入 include_resource_url=1 且素材类型为 imagevideo 时返回。

素材状态

授权

Authorization
string
header
默认值:sk-your-api-key
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

查询参数

status
enum<string>
可用选项:
processing,
active,
failed
asset_type
enum<string>
可用选项:
image,
video,
audio
name
string

按名称模糊搜索。

page
integer
默认值:1
page_size
integer
默认值:20
必填范围: x <= 100
include_resource_url

传入 1 时,图片和视频素材会额外返回 resource_url;默认不返回。

响应

素材列表。

items
object[]
total
integer
page
integer
page_size
integer