Skip to main content
查询素材详情
查询单个素材的状态和详细信息。
id 为创建素材返回的 asset_xxx不要带 asset:// 前缀 通常用于轮询素材处理状态,等待 status=active 后再提交视频生成任务。

示例

处理中响应:
可用响应(status=active,可用于视频生成):

素材状态

错误码

授权

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

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

路径参数

id
string
必填

素材 ID,格式为 asset_xxx,不带 asset:// 前缀。

响应

素材详情。

id
string

平台素材 ID,格式 asset_xxx

示例:

"asset_6f9a4c2b8d1e3a90"

uri
string

素材 URI,格式 asset://asset_xxx,视频生成请求中使用此值。

示例:

"asset://asset_6f9a4c2b8d1e3a90"

object
enum<string>
可用选项:
asset
asset_type
enum<string>
可用选项:
image,
video,
audio
name
string
status
enum<string>

素材状态:processing(处理中,不可用于生成)、active(可用)、 failed(处理失败)、disabled(已禁用)。

可用选项:
processing,
active,
failed,
disabled
resource_url
string<uri>

平台保存后的素材访问地址,通常为平台 CDN 地址;仅在列表接口传入 include_resource_url=1 且素材类型为图片或视频时返回。

created_at
integer
updated_at
integer