API Referencehttps://gw.shineon.dev

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:

  1. Call CreateAsset with a public media URL.
  2. Poll GetAsset until Status is Active.
  3. Use asset://<Id> in a Seedance task.
  4. Call DeleteAsset when 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:

bash
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"
  }'
json
{"Id":"asset-20260820142055-x9f4p"}
FieldRequiredNotes
URLYesAbsolute, publicly reachable http:// or https:// URL.
AssetTypeYesImage, Video, or Audio; casing matters.
NameNoDisplay name, up to 64 characters.
GroupIdNoAn asset group owned by the same key.
ProjectNameNoOptional 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:

bash
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"}'
json
{
  "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"
}
StatusMeaning
ProcessingNot ready. Wait and call GetAsset again.
ActiveReady to reference in a task.
FailedCannot 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:

json
{
  "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:

json
{
  "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:

ActionRequest bodyResult
CreateAssetURL, AssetType, optional metadata{"Id":"asset-…"}
GetAssetIdOne asset with its latest status
ListAssetsOptional filters and paginationItems, TotalCount, PageNumber, PageSize
UpdateAsset—Not implemented
DeleteAssetId{}

List assets:

bash
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:

ActionMain request fields
CreateAssetGroupName; optional Description, GroupType, ProjectName
GetAssetGroupId
ListAssetGroupsOptional Filter, PageSize, PageNumber
UpdateAssetGroupId; optional Name, Description
DeleteAssetGroupId

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.

StatuscodeMeaning
400InvalidParameterA required field or URL is invalid.
401invalid_api_keyBearer authentication is missing or invalid.
404ResourceNotFoundThe asset or group does not belong to this key.
405—Asset actions accept POST only.
409ResourceInUseA non-empty group cannot be deleted.
503assets_not_configuredNo suitable asset channel is currently available.

Asset creation and generation are separate operations. Creating, listing, or deleting an asset does not consume video tokens.