Reference assets
Upload reusable media once, then refer to it with an asset:// id in Seedance
requests. Assets are available to the
dreamina-seedance and
doubao-seedance model families.
MiniMax-H3 does not support asset:// references.
Asset lifecycle
The complete flow is:
- Call
CreateAssetwith a public media URL. - Poll
GetAssetuntilStatusisActive. - Use
asset://<Id>in a Seedance task. - Call
DeleteAssetwhen the asset is no longer needed.
CreateAsset is asynchronous. Its response means the asset was accepted, not
that it is ready. Referencing an asset while it is Processing, after it has
Failed, or after it was deleted returns 400 InvalidParameter.
Creating an asset
Every asset action is an authenticated POST to / with Action and
Version in the query string:
curl "https://gw.shineon.dev/?Action=CreateAsset&Version=2024-01-01" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{
"AssetType": "Image",
"URL": "https://example.com/frame.jpg",
"Name": "opening frame"
}'
{"Id":"asset-20260820142055-x9f4p"}
| Field | Required | Notes |
|---|---|---|
URL | Yes | Absolute, publicly reachable http:// or https:// URL. |
AssetType | Yes | Image, Video, or Audio; casing matters. |
Name | No | Display name, up to 64 characters. |
GroupId | No | An asset group owned by the same key. |
ProjectName | No | Optional project label; defaults to default. |
CreateAsset does not accept Base64 or data: URLs. Private, loopback, and
link-local addresses are also rejected. Use an inline data: URL directly in
a generation request when the selected model supports it.
Waiting until active
Poll the returned id:
curl "https://gw.shineon.dev/?Action=GetAsset&Version=2024-01-01" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{"Id":"asset-20260820142055-x9f4p"}'
{
"Id": "asset-20260820142055-x9f4p",
"Name": "opening frame",
"AssetType": "Image",
"Status": "Active",
"URL": "https://example.com/temporary-download-url",
"GroupId": null,
"ProjectName": "default",
"Moderation": {"Strategy": "Default"},
"CreateTime": "2026-08-20T14:20:55.000Z",
"UpdateTime": "2026-08-20T14:21:09.000Z"
}
| Status | Meaning |
|---|---|
Processing | Not ready. Wait and call GetAsset again. |
Active | Ready to reference in a task. |
Failed | Cannot be used. Read the returned Error.Code and Error.Message. |
GetAsset may return a fresh, short-lived URL. ListAssets deliberately
returns URL: null; store the asset Id, not a download URL.
Referencing
Use asset://<Id> anywhere a Seedance content URL would go.
Image reference:
{
"model": "dreamina-seedance-2-5-260628",
"content": [
{
"type": "text",
"text": "the camera pulls back from the doorway"
},
{
"type": "image_url",
"role": "reference_image",
"image_url": {
"url": "asset://asset-20260820142055-x9f4p"
}
}
],
"resolution": "1080p",
"duration": 5
}
Video reference:
{
"model": "doubao-seedance-2-5-260628",
"content": [
{
"type": "text",
"text": "continue the motion and reveal the city skyline"
},
{
"type": "video_url",
"role": "reference_video",
"video_url": {
"url": "asset://asset-20260820142130-v8d2q"
}
}
],
"resolution": "720p",
"duration": 6
}
An asset belongs to the key that created it. Another key cannot read or reference it, even when both keys belong to the same account.
Managing assets
The asset API implements these actions:
| Action | Request body | Result |
|---|---|---|
CreateAsset | URL, AssetType, optional metadata | {"Id":"asset-…"} |
GetAsset | Id | One asset with its latest status |
ListAssets | Optional filters and pagination | Items, TotalCount, PageNumber, PageSize |
UpdateAsset | — | Not implemented |
DeleteAsset | Id | {} |
List assets:
curl "https://gw.shineon.dev/?Action=ListAssets&Version=2024-01-01" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{
"Filter": {
"Statuses": ["Active"],
"Name": "opening"
},
"PageSize": 20,
"PageNumber": 1,
"SortOrder": "Desc"
}'
PageSize is clamped to 1–100 and defaults to 20. Filters also accept
Filter.GroupIds. Deleting is a tombstone: the asset immediately leaves this
key's library and can no longer be referenced.
Asset groups
Groups organise assets and use the same request URL:
| Action | Main request fields |
|---|---|
CreateAssetGroup | Name; optional Description, GroupType, ProjectName |
GetAssetGroup | Id |
ListAssetGroups | Optional Filter, PageSize, PageNumber |
UpdateAssetGroup | Id; optional Name, Description |
DeleteAssetGroup | Id |
An asset group must be empty before deletion. Otherwise the gateway returns
409 ResourceInUse; delete the assets first.
Errors and limits
Asset errors use the same {"error": {...}} envelope as video requests.
| Status | code | Meaning |
|---|---|---|
400 | InvalidParameter | A required field or URL is invalid. |
401 | invalid_api_key | Bearer authentication is missing or invalid. |
404 | ResourceNotFound | The asset or group does not belong to this key. |
405 | — | Asset actions accept POST only. |
409 | ResourceInUse | A non-empty group cannot be deleted. |
503 | assets_not_configured | No suitable asset channel is currently available. |
Asset creation and generation are separate operations. Creating, listing, or deleting an asset does not consume video tokens.