Asset Management

创建素材组

使用 `POST /v1/seedance/asset/CreateAssetGroup` 创建 Seedance 素材组。

POSThttps://duoyuanx.com/v1/seedance/asset/CreateAssetGroup
请求示例
curl -X POST https://duoyuanx.com/v1/seedance/asset/CreateAssetGroup \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '
{
  "Name": "test",
  "Description": "this is description"
}'
响应示例
{
  "state": 1,
  "data": {
    "Id": "group-20260412163933-zwxdc"
  },
  "error": null
}

创建一个新的素材组,用于归类和管理后续上传的素材。上传素材时需传入返回的 GroupId。

请求头

Authorizationstring必填

请求身份认证。使用 Bearer Token,示例值:Bearer YOUR_API_KEY。

Content-Typestring必填

请求内容类型,必须设置为 application/json。

请求体

Namestring必填

素材组名称,最长 64 字符。

Descriptionstring

素材组描述,最长 300 字符。

请求示例

响应示例

响应字段

stateinteger

业务状态码,1 通常表示成功。

dataobject

业务数据。

Idstring

素材组 ID,后续 上传素材 时作为 GroupId 传入。

errorobject | null

错误信息,成功时为 null。

相关页面