AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help
Video generationSeedance

Configure Seedance asset pre-filtering with CreateAsset

Configure the pre-filtering strategy for Seedance asset ingestion through Moderation.Strategy in a CreateAsset request.

When you upload an asset for Seedance 2.0 or Seedance 2.5 with CreateAsset, you can use Moderation.Strategy to configure the content pre-filtering strategy for that asset-ingestion request.

Scope

This setting applies only to overseas services that support it. Restrictions involving copyrighted IP, public figures, and other categories still apply.

Before you begin

  • You have created an asset group and obtained its GroupId.
  • The server can access the asset URL directly.
  • You have selected Image, Video, or Audio based on the asset content.

Configure CreateAsset

curl -X POST \
  'https://api.agtcloud.cn/v1/assets/doubao/?Action=CreateAsset&Version=2024-01-01' \
  -H 'Authorization: Bearer your-api-key' \
  -H 'Content-Type: application/json' \
  --data '{
    "GroupId": "group-xxxxxxxx",
    "URL": "https://example.com/portrait.png",
    "AssetType": "Image",
    "Moderation": {
      "Strategy": "Skip"
    }
  }'
FieldDescription
GroupIdID of the asset group that receives the asset
URLAsset URL that the server can access
AssetTypeAsset type, such as Image, Video, or Audio
Moderation.StrategyContent pre-filtering strategy for this asset upload; set it to Skip

Setting Strategy to Skip only adjusts content pre-filtering for this asset upload. It does not disable all review or safety restrictions.

Process the upload result

  1. After the request is accepted, save Result.Id from the response as the asset ID.
  2. Call Retrieve an asset to check its processing status.
  3. After the status changes to Active, reference the asset as asset://ASSET_ID in a video generation request. If the status changes to Failed, correct the asset according to the error information and upload it again.

Notes

  • Moderation.Strategy affects only the current CreateAsset request.
  • The server must be able to access the asset URL directly, and the asset content must match AssetType.
  • The asset group, asset, and calling credential should belong to the corresponding account, project, and service region.
  • Restrictions involving copyrighted IP, public figures, and other safety categories still apply.

Official BytePlus reference

Learn more

On this page