Skip to content

Seedance Resource Management API Error Code Guide ​

Error code guide for the seedance resource management API, for API callers, organized by HTTP status code.

Response Format Conventions ​

  • Management APIs (the /api/model-resources series) uniformly return HTTP 200 for business errors, and the response body contains only two fields:

    json
    { "success": false, "message": "APIkey 对应的分组通道与资源分组不一致,请检查令牌的seedance分组!" }
  • Management APIs do not return a code field; callers should rely on the Chinese hint in message.

  • Task submission and resource reference APIs return errors with standard HTTP status codes (OpenAI-compatible format, including a code field).

  • When a task is submitted successfully but generation fails, querying the task returns a task failure status code (see the appendix table at the end).


HTTP 200 · Business Errors (Resource Management APIs) ​

1. Authentication & Session ​

messageReasonSolution
Session expiredLogin state is invalid, or a management API was called without valid credentialsLog in again and retry, or switch to API Key authentication
The API Key does not belong to the current userThe API Key used in the request does not match the logged-in userUse the current user's own API Key
The API Key does not exist or has been deletedThe API Key used has been deleted or is invalidRegenerate an API Key and retry

2. Parameter Validation ​

messageReasonSolution
Invalid resource group IDgroup_id is not a positive integer, or the route :id is invalidCheck and correct the group_id parameter
Invalid resource IDThe uuid parameter is emptyPass a valid resource UUID (starting with tkres_)
Resource group name cannot be emptyNo name was passed when creating/updating a groupAdd the name field
Resource group name cannot exceed 64 charactersThe group name is too longShorten it to within 64 characters
Resource group description cannot exceed 300 charactersThe group description is too longShorten it to within 300 characters
Resource name cannot be emptyNo name was passed when creating/updating a resourceAdd the name field
Resource name cannot exceed 128 charactersThe resource name is too longShorten it to within 128 characters
Resource description cannot exceed 500 charactersThe resource description is too longShorten it to within 500 characters
metadata is not valid JSONThe metadata field format is invalidPass a valid JSON string
Invalid resource_typeOnly image/video/audio/document/archive/other are supportedCheck the value
Invalid source_typeOnly upload/model_generated/external_import are supportedCheck the value
Invalid storage_typeOnly local/s3/url/provider are supportedCheck the value
busi_type only supports 0 (personal), 1 (organization), 2 (enterprise)busi_type is out of rangeUse 0/1/2
group_id is invalidgroup_id is negative when updating a resourceUse a valid group ID
Synchronizing provider resources requires specifying group_idNo group was specified when creating a resourceCreate a group first, then pass group_id
Synchronizing provider resources requires a urlThe url is empty when creating a resourceProvide an accessible resource URL
Organization resources require organization_idAn organization-level resource is missing department ownershipAdd organization_id, or use a personal resource

3. Data Not Found ​

messageReasonSolution
Resource group does not existThe group has been deleted or is not visibleConfirm the group ID, or query it via the list API
Resource does not existThe resource has been deleted or is not visibleConfirm the UUID, or query it via the list API
Department does not existThe specified department does not existCheck organization_id

4. Permissions & Ownership ​

messageReasonSolution
Only resource group creators may maintain itOnly the creator can modify/delete a groupUse the creator's account or API Key
No permission to maintain this resource groupNot the creator and not in the same tenant scopeContact the administrator who owns the group
Only resource creators may maintain itOnly the creator can modify/delete a resourceUse the creator's account or API Key
No permission to maintain this resourceNot the creator and not in the same tenant scopeContact the administrator who owns the resource
Resource reference requires API Key accessNo API Key was carriedSwitch to API Key authentication
API Key is missing department membership informationA department-member API Key is missing ownership infoRecreate/configure the API Key
API Key is missing enterprise or department ownership informationAn enterprise-direct-connection Key is missing ownership infoRecreate/configure the API Key
API Key busi_type is invalidThe Key's business type is invalidRecreate the API Key
User does not belong to the departmentThe user is not in the department member listJoin the department, or adjust the request scope
No permission to access this enterpriseThe user has no permission to access the target enterpriseRequest enterprise access permission
API Key is not bound to an available groupThe Key is not bound to a model groupBind a group to the Key in the admin console
APIkey 对应的分组通道与资源分组不一致,请检查令牌的seedance分组!The provider of the available channel under the Key's group does not match the provider bound to the groupUse an API Key bound to the same provider, or put the resource into a group consistent with the Key's provider

5. Provider & Credential Configuration ​

messageReasonSolution
Unconfigured enabled Volcano resource provider / no available Volcano/Doubao video channel under the group / channel has no resource provider configuredNo provider configured, or no available channel under the Key's groupContact the administrator to configure the provider and AK/SK
Resource provider configuration does not exist or is not enabledThe provider configuration is disabled or missingAsk the administrator to enable the configuration
The channel associated with the resource provider does not existThe associated channel has been deletedAsk the administrator to rebind the channel
Remote sync of asset groups currently only supports the Volcano providerCurrently only the Volcano asset library is supportedUse the Volcano engine channel
The Volcano resource provider config is not valid JSONThe provider config is corruptedAsk the administrator to fix the config
Volcano asset library AK/SK not configuredNeither the provider nor the channel has a valid AK/SKAsk the administrator to configure the AK/SK
The channel associated with the resource provider has no valid Volcano AK/SKNo AK/SK can be parsed from the channel KeyAsk the administrator to check the channel credentials

6. Upstream Sync & Binding ​

messageReasonSolution
The resource group is not bound to the corresponding provider groupThe group has not completed its upstream bindingRecreate the group, or contact the administrator
Records already bound to a provider resource do not support modifying group_idA resource bound to a provider cannot change groupsCreate a new resource and specify the target group
The resource group is not bound to a Volcano group idThe upstream group id is missing when updating a groupAsk the administrator to check the binding data
The resource is not bound to a Volcano asset idThe upstream asset id is missing when updating a resourceAsk the administrator to check the binding data
The asset id returned by the Volcano asset library is emptyThe upstream resource creation did not return an IDRetry later; if it still fails, contact the administrator
The group id returned by the Volcano asset library is emptyThe upstream group creation did not return an IDRetry later; if it still fails, contact the administrator
The asset returned by the Volcano asset library is emptyThe upstream status query returned emptyRetry later; if it still fails, contact the administrator
The Volcano asset library returned emptyThe upstream API did not respondRetry later; if it still fails, contact the administrator

7. Upstream Asset Library Passthrough Errors (within HTTP 200) ​

messageReasonSolution
Volcano asset library call failed: {Code}Volcano Ark API error (credentials/parameters/permissions)Fix based on the upstream Message, or ask the administrator to check AK/SK permissions
Volcano asset library resource status query timed out: asset_id=xxxThe resource was not ready within 2 minutesCheck the status in the resource list later
Volcano asset library resource processing failed:Upstream failed to process the assetCheck the resource URL and recreate it
Volcano asset library resource is available but the URL is empty: asset_id=xxxUpstream anomalyAsk the administrator to investigate

Note: Creating a resource is "persist first, sync asynchronously afterwards" — a failed upstream sync does not cause the create API to error, but instead shows up as status=failed, message=<failure reason> on the resource. Check it in the resource list.


HTTP 400 · Bad Request (seedance task submission) ​

The response is OpenAI-compatible and includes a code field.

codemessageReasonSolution
invalid_requestRequest body parsing failedThe request body is invalid JSON or missing required fields (such as prompt)Check the request body format and required fields
invalid_multipart_formmultipart form parsing failedThe form format is incorrectCheck the file fields and request format

HTTP 403 · Forbidden (tkres_ resource reference) ​

codemessageReasonSolution
access_deniedResource {uuid} does not existThe referenced resource UUID does not existConfirm the UUID via the resource list
access_deniedThe API Key has no permission to use resource {uuid}The resource ownership does not match the Key's tenant scopeUse a Key from the resource's tenant
access_deniedResource {uuid} is not enabledThe resource is syncing or its sync failedWait until it is available, or check the resource message failure reason
access_deniedResource {uuid} is not bound to the current channelThe current channel has no mapping for this resourceUse the channel corresponding to the resource's provider
access_deniedThe provider resource ID of resource {uuid} is emptyThe binding data is abnormalContact the administrator
access_deniedResource reference requires API Key accessNo API Key was carriedSwitch to API Key authentication
access_deniedResource reference replacement is missing channel_idThe request did not hit a valid channelCheck the model/channel configuration and retry

HTTP 500 · Internal Server Error (seedance task submission) ​

codemessageReasonSolution
read_response_body_failedFailed to read the upstream responseThe upstream returned anomaliesRetry later; if it keeps failing, contact the administrator
unmarshal_response_body_failedFailed to parse the upstream responseThe upstream response format is abnormalRetry later; if it keeps failing, contact the administrator
invalid_responsetask_id is emptyThe upstream did not return a valid task IDRetry later; if it keeps failing, contact the administrator

Appendix: Task Failure Status Codes (returned when querying a task, not an API call error) ​

codeMessage meaningReasonSolution
content_moderationContent moderation failedThe prompt/asset hit the moderation rulesModify the prompt or asset and retry
invalid_paramsInvalid parametersA parameter is not supported by the upstreamAdjust the parameter according to the error message
generation_failedGeneration failedUpstream generation failedRetry later
upload_failedUpload failedThe asset upload failedCheck the asset URL and retry
model_unavailableModel unavailableThe model resource is temporarily unavailableRetry later, or contact the administrator
connection_failedConnection failedAnomaly connecting to the upstreamRetry later; if it keeps failing, contact the administrator
config_errorConfiguration errorUpstream proxy/configuration anomalyContact the administrator
timeoutTask timed outUpstream generation timed outRetry later
auth_failedAuthentication failedUpstream AK/SK authentication failedAsk the administrator to check the credentials
rate_limitedRate limitedCall frequency exceeded or upstream rate limitingReduce call frequency and retry