English
  • English
  • 中文简体
English
  • English
  • 中文简体
English
  • English
  • 中文简体
  1. Video Asset APIs
  • Model interface
    • Aiide Platform
    • Law and Policy
      • Service Agreement
      • Privacy Policy
    • List of model interfaces
      • Get Models
        • Get Available Models
      • Anthropic (Claude Code)
        • Official API
          • Text Chat (Preferred)
        • OpenAI-Compatible API
          • Text Chat
      • OpenAI (Codex, GPT-Image-2)
        • Official API
          • Text Chat (Officially Recommended / Next Generation)
          • Text Chat (Compatible API)
          • Generate Image (GPT-Image-2)
          • Edit Image (GPT-Image-2)
          • Create Video
          • Get Video Task Status
          • Get Video Content
      • Google (Gemini, Nano Banana)
        • Official API
          • Text Chat (Preferred)
          • Generate Image (Nano Banana)
        • OpenAI-Compatible API
          • Text Chat
          • Generate Image (Nano Banana)
      • xAI (Grok-Image)
        • OpenAI-Compatible API
          • Generate Image (Grok)
      • Images
        • OpenAI-Compatible API
          • Generate Image
        • Qwen-Compatible Format
          • Generate Image
          • Edit Image
      • Videos
        • Qwen Format (Happyhorse)
          • Create Video (Text-to-Video)
          • Create Video (First-Frame Image-to-Video)
          • Create Video (Reference-Image-to-Video)
          • Create Video (Video Editing)
          • Get Video Generation Task Status
        • Volcengine Doubao Format (Seed-2.0)
          • Create Video (Text-to-Video)
          • Create Video (First-Frame Image-to-Video)
          • Create Video (First-and-Last-Frame Image-to-Video)
          • Create Video (Reference-Image-to-Video)
          • Create Video (Multimodal Reference-to-Video)
          • Get Video Generation Task Status
        • OpenAI Format (Google Veo 3.1, Seed-2.0)
          • Google Veo 3.1
            • Create Video (Text-to-Video)
            • Create Video (Reference-Image-to-Video)
            • Get Video Generation Task Status
          • OpenAI Sora Format (Seed-2.0 Special Price)
            • Create Video (Text-to-Video)
            • Create Video (Multimodal Reference-to-Video)
            • Get Video Generation Task Status
            • Get Video Content
    • Video Asset APIs
      • Asset Library API Integration Guide
      • Asset Library API Integration Guide (Volcengine Official Format)
      • Upload Asset
        POST
      • List Assets
        GET
      • Get Asset
        GET
      • Update Asset Description
        PUT
      • Delete Asset
        DELETE
    • Tool Configuration Tutorial
      • CC Switch 配置
      • Claude Code配置
      • Codex配置
      • Gemini CLI配置
      • OpenCode 配置
      • Cursor 配置
      • node 安装教程
  1. Video Asset APIs

Asset Library API Integration Guide

Digital Human Asset Library · API Documentation#

The digital human asset library APIs let you upload digital human assets, query asset status, update descriptions, and delete assets. After a successful upload, the API returns a stable, platform-neutral asset ID (mat_xxx) that you can reference in video-generation requests.
This document covers only APIs related to digital human assets. It does not include video-generation or other APIs.
This asset API supports the following models:
doubao-seedance-2-0-260128
doubao-seedance-2-0-fast-260128
doubao-seedance-2-0-mini-260615
doubao-seedance-2-5-260628
dreamina-seedance-2-0-hc
dreamina-seedance-2-0-fast-hc
dreamina-seedance-2-0-mini-hc
dreamina-seedance-2-5-hc

1. Authentication and Groups#

All APIs are called through the Aggregation API Gateway. Include your API token (with the sk- prefix) in the request header:
Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The gateway rejects requests when the API token is invalid, disabled, or missing.
All asset APIs accept group_id (with the ak- prefix) to specify the asset group to operate on.
group_id is optional. If it is omitted on the first upload, the system automatically creates an asset group for the current user. If the user already has groups, the earliest enabled group is reused. The group_id actually used is returned in the response.
For POST and PUT, place group_id in the JSON request body.
For GET and DELETE, place group_id in the URL query string.
If the group does not exist or has been disabled, the API returns 401 Group does not exist or has been disabled.
When group_id is provided, you can operate only on assets in that group. When it is omitted, the system queries or operates within the asset space of the user associated with the current API token.

2. General Conventions#

Base URL#

https://<Aggregation API Gateway host>
The cURL examples below use these variables:

Response Structure#

All APIs return the following structure:
{
  "success": true,
  "message": "",
  "data": { ... }
}
success: Boolean. true indicates success; false indicates failure.
message: Error description when a request fails. It is normally empty on success.
data: Business data. Its structure is described for each API.

Asset ID#

A successful upload returns an asset_id such as mat_ADyx4iQvkHUy7jDzPKqp. This is a stable, platform-neutral identifier.
Reference the asset in a video-generation request by using either mat_xxx or asset://mat_xxx.

Asset Status (status)#

StatusMeaningUsable for video generation
pendingProcessing; upload or moderation is not completeNo. Try again later.
readyReady; moderation passedYes
failedProcessing failed, for example because moderation failedNo. See failure_reason.
Status advances asynchronously in the background. After upload, an asset may initially be pending and later become ready when queried again.

Idempotency#

Uploading the same URL to the same group_id is idempotent: the service does not create a duplicate and returns the same asset_id. To change the description, use the update API instead of uploading the asset again.
When group_id is omitted, the upload uses the current user's earliest enabled asset group. If the user has no available group, the system creates one automatically. The group_id in the response can be used to explicitly select the group in later requests.

3. API List#

MethodPathDescription
POST/v1/assets/uploadUpload one or multiple assets
GET/v1/assetsList ready assets with pagination
GET/v1/assets/{asset_id}Query the status of one asset
PUT/v1/assets/{asset_id}Update an asset description
DELETE/v1/assets/{asset_id}Delete an asset

4. Upload Assets#

POST /v1/assets/upload
Submit asset URLs to the asset library and receive asset IDs. The API supports either a single URL or multiple URLs in one batch.

Request Parameters#

ParameterTypeRequiredDescription
group_idstringNoAsset group ID with the ak- prefix. If omitted, the user's earliest enabled group is reused; if no group is available, one is created automatically.
urlstringOne of url or urlsPublic URL of a single asset
urlsstring[]One of url or urlsList of asset URLs; up to 10 per request
purposestringYesAsset purpose or description. If missing, the API returns success=false and purpose is required.
typestringNoAsset type: image, video, or audio. The default is image.
Provide either url or urls. If both are provided, urls takes precedence.

URL Requirements#

The URL must be a publicly accessible http(s) address. localhost, private or loopback IP addresses, and local files are not supported.
The extension must be supported and must match type:
Images: jpeg / jpg / png / webp / bmp / tiff / gif / heic
Videos: mp4 / mov
Audio: wav / mp3

Request Example (Single Asset)#

{
  "group_id": "ak-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "url": "https://cdn.example.com/portrait.jpg",
  "type": "image",
  "purpose": "Digital human appearance"
}

Response Example (Single Asset)#

{
  "success": true,
  "message": "",
  "data": {
    "asset_id": "mat_ADyx4iQvkHUy7jDzPKqp",
    "status": "pending",
    "group_id": "ak-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  }
}
When asset processing fails, the response also includes failure_reason:
{
  "success": true,
  "message": "",
  "data": {
    "asset_id": "mat_ADyx4iQvkHUy7jDzPKqp",
    "status": "failed",
    "group_id": "ak-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "failure_reason": "Asset moderation failed: the image may be subject to copyright restrictions"
  }
}
failure_reason appears only when status = failed and gives the client a meaningful reason. If no specific moderation reason is available, the generic message is: "Asset processing failed. Please try again later or use a different asset."

Request Example (Batch)#

{
  "group_id": "ak-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "urls": [
    "https://cdn.example.com/a.jpg",
    "https://cdn.example.com/b.png"
  ],
  "type": "image",
  "purpose": "Batch digital human appearances"
}

Response Example (Batch)#

Results are returned item by item. An invalid item is marked with an error without affecting the other items:
{
  "success": true,
  "message": "",
  "data": {
    "assets": [
      { "url": "https://cdn.example.com/a.jpg", "asset_id": "mat_xxx1", "status": "pending" },
      { "url": "https://cdn.example.com/b.png", "error": "Unsupported URL file type. Ensure that the URL ends with a supported extension." }
    ],
    "group_id": "ak-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  }
}
Successful item: { url, asset_id, status }
Failed item: { url, error }

5. List Assets#

GET /v1/assets
Returns the ready assets that can be used for video generation in the current user's asset space, with pagination. When group_id is provided, only assets in that group are returned. When it is omitted, assets from all enabled groups belonging to the current user are returned.

Query Parameters#

ParameterTypeRequiredDescription
group_idstringNoAsset group ID with the ak- prefix. If omitted, all enabled groups belonging to the current user are queried.
pageintNoPage number; defaults to 1
page_sizeintNoNumber of items per page
purposestringNoFuzzy search by asset description
sort_orderstringNoasc or desc; defaults to desc
Request example:

Response Example#

{
  "success": true,
  "message": "",
  "data": {
    "items": [
      {
        "asset_id": "mat_ADyx4iQvkHUy7jDzPKqp",
        "group_id": "ak-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "type": "image",
        "purpose": "Digital human appearance",
        "original_url": "https://cdn.example.com/portrait.jpg",
        "status": "ready",
        "created_at": 1751270400
      }
    ],
    "total": 1,
    "page": 1,
    "page_size": 10
  }
}
Note: The list contains only ready assets. Use the Get Asset API with asset_id to view pending or failed assets.

6. Get an Asset#

GET /v1/assets/{asset_id}?group_id={group_id}
group_id is optional. When omitted, the query is performed in the asset space of the user associated with the current API token.
Queries the aggregate status by asset ID.

Response Example#

{
  "success": true,
  "message": "",
  "data": {
    "asset_id": "mat_ADyx4iQvkHUy7jDzPKqp",
    "group_id": "ak-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "type": "image",
    "purpose": "Digital human appearance",
    "original_url": "https://cdn.example.com/portrait.jpg",
    "status": "ready",
    "created_at": 1751270400
  }
}
Failed assets also include failure_reason:
{
  "success": true,
  "message": "",
  "data": {
    "asset_id": "mat_ADyx4iQvkHUy7jDzPKqp",
    "group_id": "ak-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "status": "failed",
    "type": "image",
    "purpose": "Digital human appearance",
    "original_url": "https://cdn.example.com/portrait.jpg",
    "created_at": 1751270400,
    "failure_reason": "Asset moderation failed: ..."
  }
}
If the asset does not exist or the current user is not authorized to access it, the API returns 404 asset not found.

7. Update an Asset Description#

PUT /v1/assets/{asset_id}
Updates the asset description (purpose) without changing the asset itself or its status.

Request Parameters#

ParameterTypeRequiredDescription
group_idstringNoAsset group ID. If omitted, the operation is performed in the current user's asset space.
purposestringNoNew asset description. Omitting it or passing an empty string clears the description.

Request Example#

{
  "group_id": "ak-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "purpose": "Updated purpose description"
}

Response Example#

{
  "success": true,
  "message": "",
  "data": {
    "asset_id": "mat_ADyx4iQvkHUy7jDzPKqp",
    "group_id": "ak-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "type": "image",
    "purpose": "Updated purpose description",
    "original_url": "https://cdn.example.com/portrait.jpg",
    "status": "ready",
    "created_at": 1751270400
  }
}
If the asset does not exist or the current user is not authorized to access it, the API returns 404 asset not found.

8. Delete an Asset#

DELETE /v1/assets/{asset_id}?group_id={group_id}
group_id is optional. When omitted, the operation is performed in the asset space of the user associated with the current API token.
Deletes the asset. After deletion, the asset ID can no longer be used to generate videos.

Response Example#

{
  "success": true,
  "message": "",
  "data": {
    "asset_id": "mat_ADyx4iQvkHUy7jDzPKqp",
    "group_id": "ak-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  }
}
If the asset does not exist or the current user is not authorized to access it, the API returns 404 asset not found.

9. Reference Assets in Video Generation#

After obtaining mat_xxx from an upload, place mat_xxx or asset://mat_xxx in an asset field of the video-generation request. The system automatically replaces it with a usable reference. The following fields are supported:
Top-level image or images[]
image_url.url, video_url.url, or audio_url.url in each content[] item
metadata.first_frame_image or metadata.last_frame_image
metadata.reference_images[], metadata.reference_videos[], or metadata.reference_audios[]
Note: first_frame_image, last_frame_image, and reference_* must be placed under metadata, and the field names must match those listed above.
For a one-time temporary asset that does not need moderation or reuse, you can put a public URL directly in any of the fields above. The URL must be publicly accessible and use a supported extension; you do not need to upload it first to obtain mat_xxx.

10. Error Handling#

Failure response:
{
  "success": false,
  "message": "Error description"
}
Common errors:
ScenarioHTTPmessage
Invalid API token401Returned by the Aggregation API Gateway
Asset service configuration error500Asset service is temporarily unavailable. Contact the administrator.
Asset service connection failed502Asset service connection failed. Please try again later.
Group does not exist or has been disabled401Group does not exist or has been disabled
Invalid user identity401Invalid user identity
Missing purpose200purpose is required
Invalid type200invalid type, must be image/video/audio
Missing url200url is required
Batch exceeds 10 items200A batch upload supports at most 10 URLs per request
URL is not publicly accessible200The asset URL must be publicly accessible...
Unsupported extension200Unsupported URL file type...
Asset does not exist or access is denied404asset not found
Business parameter errors follow the current APIs' unified response convention: the HTTP status is 200, and failure is determined from success: false and message in the response body. Authentication errors, group-validation errors, and missing resources use their corresponding HTTP status codes.
Modified at 2026-09-10 03:00:20
Previous
Get Video Content
Next
Asset Library API Integration Guide (Volcengine Official Format)
Built with