Skip to main content
POST
/
volc
/
asset
/
CreateAsset
创建素材
curl --request POST \
  --url https://www.anyfast.com.cn/volc/asset/CreateAsset \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "GroupId": "group-20260319072926-rrnmg",
  "Name": "character-reference",
  "AssetType": "Image",
  "URL": "https://example.com/image.jpg",
  "model": "volc-asset"
}
'
{
  "Id": "asset-20260320120147-pqwhc"
}

Authorizations

Authorization
string
header
required

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

Body

GroupId
string
required

素材组 ID。

Example:

"group-20260319072926-rrnmg"

Name
string
required

素材名称。

Example:

"character-reference"

AssetType
enum<string>
required

素材类型。

Available options:
Image
Example:

"Image"

URL
string
required

图片 URL、Data URI(data:image/png;base64,...)或纯 Base64 字符串。Base64/Data URI 会自动上传到对象存储。

Example:

"https://example.com/image.jpg"

model
string
default:volc-asset

模型名称,用于计费。默认 volc-asset

Example:

"volc-asset"

Response

素材创建成功

Id
string

素材 ID。在 Seedance 请求中以 Asset://<ID> 格式引用。

Example:

"asset-20260320120147-pqwhc"