1. Asset library (Doubao native)
Ark-Docs
  • Video (Doubao native)
    • Submit a video generation task (Doubao native)
      POST
    • Retrieve a video generation task (Doubao native)
      GET
  • Video (OpenAI compatible)
    • Submit a video generation task (OpenAI compatible)
      POST
    • Retrieve a video generation task
      GET
    • Submit a video generation task (OpenAI Video alias)
      POST
    • Retrieve a video generation task (OpenAI Video alias)
      GET
  • Video content
    • Download the generated video file
      GET
  • Image (Doubao native)
    • Generate an image (Doubao native)
      POST
  • Image (OpenAI compatible)
    • Generate an image (OpenAI compatible)
      POST
    • Edit an image (OpenAI compatible)
      POST
  • Asset library (Doubao native)
    • Manage the asset library (Doubao native)
      POST
  • 数据模型
    • VideoGenerationRequest
    • VideoFormDataRequest
    • VideoMetadata
    • DoubaoNativeVideoRequest
    • DoubaoNativeContentItem
    • VideoTaskResponse
    • DoubaoNativeVideoResponse
    • VideoTaskError
    • DoubaoImageRequest
    • ImageEditFormDataRequest
    • DoubaoImageResponse
    • ErrorResponse
    • DoubaoAssetRequest
    • DoubaoAssetResponse
  1. Asset library (Doubao native)

Manage the asset library (Doubao native)

POST
/doubao/api/
Ark asset-library management, served by the gateway on one path. The
operation is selected by the Action query parameter, and the JSON body
is the one the official Ark API documents for that action.
Two authentication forms
The gateway accepts the same API token as every other endpoint here:
Authorization: Bearer sk-xxxx.
Volcengine AK/SK signatures are accepted as well, so a script written
for the official SDK works after only the endpoint changes. An
administrator configures the AK/SK on the asset library the channel
selects; the gateway signs every forwarded call with it.
Responses
The upstream envelope is returned unchanged:
{ "ResponseMetadata": { ... }, "Result": { ... } }
An action that fails at the upstream still answers with this envelope;
check ResponseMetadata.Error.Code and ResponseMetadata.Error.Message.
No billing
Asset calls reserve and settle no quota. Each call is recorded in the
server log with its action.
One channel per group
A group may contain at most one channel with an asset library selected.
Two of them are rejected rather than routed at random, because an asset
call carries no model field to tell them apart.
Field usage
ActionFields
CreateAssetGroupId, URL, AssetType, Name, Description, ProjectName
GetAssetId, ProjectName
ListAssetsFilter, PageNumber, PageSize, SortBy, SortOrder, ProjectName
UpdateAssetId, Name, ProjectName
DeleteAssetId, ProjectName
CreateAssetGroupName, Description, GroupType, ProjectName
GetAssetGroupId, ProjectName
ListAssetGroupsFilter, NextToken, MaxResults, PageNumber, PageSize, SortBy, SortOrder, ProjectName
UpdateAssetGroupId, Name, Description, ProjectName
DeleteAssetGroupId, ProjectName
CreateAsset is asynchronous: poll GetAsset until Status is Active
before referencing the asset id in a generation request. Only Active
assets may be used.

请求参数

Authorization
JWT Bearer
在 Header 添加参数
Authorization
示例:
Authorization: ********************
or
Query 参数

Body 参数application/json必填

示例
{
    "GroupId": "group-2026**********-*****",
    "URL": "https://example.com/portrait.png",
    "AssetType": "Image",
    "Name": "protagonist",
    "ProjectName": "default"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
cURL
curl --location '/doubao/api/?Action=CreateAsset&Version=2024-01-01' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "GroupId": "group-2026**********-*****",
    "URL": "https://example.com/portrait.png",
    "AssetType": "Image",
    "Name": "protagonist",
    "ProjectName": "default"
}'

返回响应

🟢200
application/json
The upstream envelope, returned unchanged.
Bodyapplication/json

示例
{
    "ResponseMetadata": {
        "RequestId": "20260328000000000000000000000000",
        "Action": "CreateAsset",
        "Version": "2024-01-01",
        "Service": "ark",
        "Region": "cn-beijing"
    },
    "Result": {
        "Id": "Asset-2026**********-*****"
    }
}
🟠400
🔴502
🟠401Unauthorized
修改于 2026-11-02 11:42:45
上一页
Edit an image (OpenAI compatible)
下一页
VideoGenerationRequest
Built with