Error codes
This topic describes common error messages you might encounter when using Alibaba Cloud Model Studio and provides solutions.
Quick troubleshooting
When a call fails, use the following table to locate common issues, then check the error code and error message in the response to find the specific cause and solution.
1. Locate the error cause
| FAQ | Error Details | Troubleshooting and handling |
|---|---|---|
| 401: Authentication failure | InvalidApiKey/invalid_api_key | Check whether the API Key is valid and whether the API Key, region, and Base URL match. Correct them and call again. |
| 403: Access denied | AccessDenied/access_denied | Based on the error message, check access permissions, service activation status, and whether the API supports synchronous or asynchronous calls. If the message involves overdue payment, see Arrearage. |
| 404: Model, resource, or API path not found | ModelNotFound, NotFound | Check whether the model name, deployment name, or resource ID is correct, whether the target model is available in the region, and whether the request path and calling method meet the API requirements. |
| 429: Throttling or quota limit triggered | Throttling.RateQuota, Throttling.AllocationQuota/insufficient_quota | Identify the specific limit based on the error message. When throttled, reduce the request frequency, concurrency, or token usage per unit of time. If the free quota is exhausted or the number of resources reaches the upper limit, follow the corresponding entry before calling again. |
| 400: Invalid request | InvalidParameter | Based on the error message, check the specific parameters, request format, and API requirements, then correct them and call again. |
| 5xx: Service processing failure | InternalError, ServiceUnavailable | Follow the solution in the corresponding error entry: if input or configuration must be corrected, correct it and call again; if a retry is recommended, wait and retry. |
| No HTTP response: connection failure or timeout | Client connection error | Based on the client exception, check network connectivity, proxy, and timeout settings. For how to handle timeouts that occur after submitting a task or creating a resource, see below. |
2. Resume calls
- Parameter, authentication, permission, or quota issues: After making the corrections, send one request first and confirm that the response is normal.
- Throttling or retryable transient errors: When throttled, reduce the request frequency or concurrency. When retrying, gradually increase the interval and set a maximum number of retries and a total time limit; stop retrying once either limit is reached.
- Requests with unknown execution status: If an operation such as creating a resource or submitting a task times out or the connection is interrupted, and the API supports queries, query the execution result first (for example, using the returned task ID), then decide whether to resubmit. If the execution status cannot be confirmed, contact technical support to avoid creating duplicate resources or executing duplicate tasks.
- Resume business calls: After confirming that request results are normal, gradually restore the call volume and watch for the same error. For asynchronous tasks, confirm the final status and output.
3. Contact technical support
If the issue persists after following the steps above, or if you cannot confirm the execution status of a request, stop automatic retries and contact technical support. Provide the following information:
- Error information: HTTP status code, error code, error message, and the Request ID in the response (if any). For how to read response information when using Python Requests, see Bad Request for url.
- Occurrence time and calling environment: The occurrence time with its time zone, region, model or deployment name, endpoint and path of the request, SDK or client version, and whether streaming or asynchronous calls were used.
- Client exceptions: When no HTTP response is received, provide the exception type, the calling phase where the exception occurred, and related logs.
- Actions already taken: Configuration changes made, retry behavior, and results after handling.
Before submitting, remove the API Key, access tokens, Authorization credentials, and signature parameters in URLs, and desensitize business data in logs, requests, and responses.
Use the Alibaba Cloud AI Assistant
We recommend using the Alibaba Cloud AI Assistant. Its knowledge base integrates official Alibaba Cloud help documentation; enter an error message to get a solution.
Example questions:
报错信息:'code': 'Arrearage', 'param': None, 'message': 'Access denied, please make sure your account is in good standing.', 'type': 'Arrearage'}帮我看下什么原因
Example analysis result:
The analysis shows that access was denied because the account is in overdue payment. Possible causes include account arrears, insufficient balance, or a delayed top-up. Log on to the Alibaba Cloud console, go to the Expenses and Costs page to check the account status, and complete the top-up. After waiting a few minutes for the system to update, normal access will be restored.
How do I get the Request ID?
The Request ID is a UUID (for example, 649b2bbc-c541-9e16-9845-db7fe4fe5b2d) and is included in the Header or Body of the API response. We recommend recording it when a call fails, so it is available for self-service troubleshooting or when submitting a ticket.
If you did not record the Request ID, log on to the Monitoring page and query the call records on the Logs tab of the target model (including the Request ID, status code, error code, and request and response content).
Prerequisites:
- Inference logs must be enabled first by the primary account or an authorized sub-account.
- Only some models in the China (Beijing), Singapore, and US (Virginia) regions are supported.
- Data is delayed at the minute level, and historical call records from before activation cannot be traced back.
For more information, see the Monitoring documentation.
200
BailianGateway.Workspace.NotAuthorised
Some Features Restricted
An error message "Some Features Restricted" appears in the console.Reason: This error may be caused by the following reasons: (1) The access URL contains special characters or a non-standard format, causing workspace authorization verification to fail. (2) The RAM sub-account operates a workspace it has no permission for.
Solutions: (1) Revisit the Model Studio console homepage and then navigate to the target page. (2) The primary account or a RAM account with administrator permissions must grant the sub-account permissions for the corresponding workspace.
BailianGateway.Team.NotAuthorised
Reason: The current RAM sub-account does not have permission for the team (organization) being accessed. When a RAM sub-account accesses team (organization) resources it is not authorized for, the gateway's team-level authorization check fails and returns this error.
Solutions: Have the primary account or a RAM account with administrator permissions add the RAM sub-account to the corresponding team (organization) in permission management and grant the appropriate permissions.
400
InvalidParameter
parameter.enable_thinking must be set to false for non-streaming calls/ parameter.enable_thinking only support stream call
Reason: A thinking mode model was called in non-streaming output mode.
Solutions: Set the enable_thinking parameter to false, or call the thinking mode model in streaming output mode instead.
The thinking_budget parameter must be a positive integer and not greater than xxx
Reason: The thinking_budget parameter is not within the range of valid values.
Solutions: For more information, see the maximum chain-of-thought length of the model in the model list, and specify a value greater than 0 that does not exceed that length.
This model only support stream mode, please enable the stream parameter to access the model. / current user api does not support http call.
Reason: The model only supports streaming output, but streaming output was not enabled when calling it.
Solutions: Call the model in streaming output mode.
This model does not support enable_search.
Reason: The current model does not support the web search capability, but the enable_search parameter was specified as true.
Solutions: Call a model that supports the web search capability.
The currently configured language is not supported!
Reason: When using a Qwen-MT model, the source_lang or target_lang passed in is in an invalid format, or is not in the supported languages.
Solutions: Pass in the English name or language code in the correct format.
The incremental_output parameter must be "true" when enable_thinking is true
Reason: When thinking mode is enabled, the model only supports incremental streaming output, but the incremental_output parameter was not set to true.
Solutions: Set the incremental_output parameter to true before calling, and the API will return incremental content.
The incremental_output parameter of this model cannot be set to False.
Reason: The model only supports incremental streaming output, but the incremental_output parameter was not set to true.
Solutions: Set the incremental_output parameter to true before calling, and the API will return incremental content.
Range of input length should be [1, xxx](InternalError.Algo.InvalidParameter)
Reason: The input length exceeds the model limit when calling the model.
Solution:- If you call by code, keep the number of tokens in the messages array within the model's maximum input token limit;
- When using a chat client (such as Chatbox) or the Alibaba Cloud Model Studio console for continuous conversations, each request carries the conversation history, which can easily exceed the model limit. If the limit is exceeded, start a new conversation.
Range of max_tokens should be [1, xxx]
Reason: The max_tokens parameter is not within the range of [1, the model's maximum output tokens].
Solutions: For the max_tokens upper limit, see "maximum output tokens" in the model list documentation.
Temperature should be in [0.0, 2.0)/'temperature' must be Float
Reason: The temperature parameter is not within the range of [0.0, 2.0).
Solutions: Set the temperature parameter to a number greater than or equal to 0 and less than 2.
Range of top_p should be (0.0, 1.0]/'top_p' must be Float
Reason: The top_p parameter is not within the range of (0.0, 1.0].
Solutions: Set the top_p parameter to a number greater than 0 and less than or equal to 1.
Parameter top_k be greater than or equal to 0
Reason: The top_k parameter is set to a number less than 0.
Solutions: Set the top_k parameter to a number greater than or equal to 0.
Repetition_penalty should be greater than 0.0
Reason: The repetition_penalty parameter is set to a number less than or equal to 0.
Solutions: Set the repetition_penalty parameter to a number greater than 0.
Presence_penalty should be in [-2.0, 2.0]
Reason: The presence_penalty parameter is not within the [-2.0,2.0] range.
Solution: Set the presence_penalty parameter within the [-2.0,2.0] range.
Range of n should be [1, 4]
Reason: The n parameter is set outside the range [1, 4].
Solution: Set the n parameter within the range [1, 4].
Range of seed should be [0, 9223372036854775807]
Reason: When using the DashScope protocol, the seed parameter is set outside the range [0, 9223372036854775807].
Solution: Set the seed parameter within the range [0, 9223372036854775807].
Request method 'GET' is not supported.
Reason: The current API does not support the GET request method.
Solution: Refer to the API documentation and resend the request using a request method supported by the API (such as POST).
messages with role "tool" must be a response to a preceeding message with "tool_calls"
Reason: No Assistant Message was added to the messages array during tool calls.
Solution: Add the Assistant Message from the model's first-round response to the messages array before adding the Tool Message.
An assistant message with "tool_calls" must be followed by tool messages responding to each "tool_call_id"
Reason: When an assistant message contains tool_calls, it must be followed by tool role messages to respond to each tool_call_id. This commonly occurs when the message sequence format is incorrect while using tool calls with the Model Studio API, for example, appending a user message directly after an assistant message with tool_calls.
Solution: After the assistant message with tool_calls and before sending the next user message, insert the corresponding tool role messages (each containing the matching tool_call_id and the execution result of that tool). Each tool_call_id in the assistant message must correspond to exactly one tool message.
Required body invalid, please check the request body format.
Reason: The request body format does not meet the API requirements.
Solution: Check the request body and make sure it is a valid JSON string. Common issues include: extra ,, unclosed brackets, unclosed quotes, etc.
Incorrect example (the text field is missing a closing quote, making the request body invalid JSON):
{"model":"qwen-image-3.0-pro","input":{"messages":[{"role":"user","content":[{"image":"https://example.com/img.png"},{"text":"请将图片背景改为蓝色}]}]}}
Correct example:
{"model":"qwen-image-3.0-pro","input":{"messages":[{"role":"user","content":[{"image":"https://example.com/img.png"},{"text":"请将图片背景改为蓝色"}]}]}}
Before submitting the request, you can use JSON validation tools such as jsonlint.com to check the request body syntax. You can also use the Alibaba Cloud AI Assistant to help fix the request body format.
input content must be a string.
Reason: Text-only models do not support setting content in messages to a non-string type.
Solution: Do not set content to an array type such as [{"type": "text","text": "Who are you?"}].
The content field is a required field.
Reason: When making a request, the content parameter is not specified, for example {"role": "user"}.
Solution: Specify the content parameter, for example {"role": "user","content": "Who are you"}.
Either "prompt" or "messages" must exist and cannot both be none
Reason: When calling a large model, neither the messages parameter nor the prompt parameter (to be deprecated) is specified. If the error persists after specifying the messages parameter, it may be due to a format error. For example, with DashScope-HTTP, messages must be placed inside the input object rather than at the same level as the model parameter.
Solution: Specify the messages parameter. If it is already specified but the error persists, see the text generation API documentation to check whether it is placed correctly.
'messages' must contain the word 'json' in some form, to use 'response_format' of type 'json_object'.
Reason: When using structured output, the prompt does not contain the json keyword.
Solution: Add json (case-insensitive) to the prompt, for example: "Please output in json format".
Json mode response is not supported when enable_thinking is true
Reason: The model's thinking mode is enabled while using structured output.
Solution: When using structured output, set enable_thinking to false to disable thinking mode. For which models support structured output only in non-thinking mode, see Supported models.
Tool names are not allowed to be [search]
Reason: The tool name cannot be set to search.
Solution: Set the tool name to a value other than search.
Unknown format of response_format, response_format should be a dict, includes 'type' and an optional key 'json_schema'. The response_format type from user is xxx.
Reason: The specified response_format parameter does not conform to the specification.
Solution: To use the structured output feature, set the response_format parameter to {"type": "json_object"}.
The value of the enable_thinking parameter is restricted to True.
Cause: Some models (such as qwen3.7-plus) do not allow setting the enable_thinking parameter to false.
- If you call the model through a third-party tool (such as Cherry Studio), enable the thinking switch in the input box.
- If you call the model through code, set
enable_thinkingtotrue.
'audio' output only support with stream=true
Cause: Audio output is requested, but streaming output is not enabled.
Solution: Set the stream parameter to true to enable streaming output.
tool_choice is one of the strings that should be ["none", "auto"]
Cause: The tool_choice parameter specified when initiating Function Calling is invalid.
Solution: Specify "auto" (the model decides which tool to use) or "none" (force no tool usage).
Model not exist.
Cause: The specified model parameter does not exist or has an incorrect format.
- Check the model name format: Verify that the
modelparameter uses the correct case and contains no extra spaces. - Use the correct model name: Check the entered
modelagainst the model names in the Models list. Do not mix model names from the open-source community with Model Studio model IDs; for example, useqwen3.7-plusinstead ofQwen/Qwen3.7-Plus.
The product is not activated, please confirm that you have activated products and try again after activation.
Cause: The model service being called is not activated. When calling through the OpenAI-compatible interface, if the target model is not activated in the model market, the gateway returns this error with the error code invalid_parameter_error.
- In Models, verify that the target model (for example,
kimi-k3) is activated, then call the model. - Activate Model Studio: If you have not activated Model Studio yet, log on to the Model Studio console with an Alibaba Cloud primary account or a RAM account that has the
AliyunBailianFullAccesspermission. The service is activated automatically once the usage requirements are met; then retry the call.
The result_format parameter must be "message" when enable_thinking is true
Cause: When calling a thinking-mode model, the result_format parameter is not set to "message".
Solution: Set the result_format parameter to "message".
The audio is empty
Cause: The input audio is too short, resulting in insufficient sampling points.
Solution: Increase the audio duration.
File parsing in progress, please try again later.
Cause: When using the Qwen-Long model, file parsing is not complete.
Solution: Wait until file parsing is complete and try again.
The "stop" parameter must be of type "str", "list[str]", "list[int]", or "list[list[int]]", and all elements within the list must be of the same type.
Cause: The stop parameter does not conform to the str, list[str], list[int], or list[list[int]] format.
Solution: See the text generation API documentation and set the stop parameter to the correct format.
Value error, batch size is invalid, it should not be larger than xxx.
Cause: When calling an Embedding model, the number of texts exceeds the model limit.
Solution: Refer to the batch size information of models in the Embedding documentation to control the number of input texts.
Invalid file [id:file-fe-**********].
Cause: The provided file-id is invalid. For example, it was entered incorrectly, or a file-id that belongs to a different Alibaba Cloud account was used.
Solution: Use OpenAI-compatible File to check whether the file-id is valid, or call OpenAI-compatible File again to obtain a new file_id, then make the call.
[] is too short
Cause: The input messages is an empty array.
Solution: Add a message before initiating the request.
The tool call is not supported.
Cause: The model in use does not support the tools parameter.
Solution: Switch to a Qwen or DeepSeek model that supports Function Calling.
Repetitive tool calls detected in the conversation history. The same tool call with identical name and arguments has been repeated across multiple consecutive rounds. Please modify your request or adjust the tool call arguments to avoid infinite loops.
Cause: Repetitive tool calls are detected in the conversation history: tool calls with exactly the same name and parameters appear repeatedly across multiple consecutive turns, and the model may be stuck in a loop. The corresponding HTTP status code is 400 and the error code is InternalError.Algo.InvalidParameter.
- After each round of tool calls, append the tool execution results to the
messagesarray as a Tool Message before initiating the next request, so the model can proceed accordingly instead of repeatedly making the same call. - Check whether the tool returns results normally; if the tool keeps returning the same or invalid results, add a tool call limit or termination logic on the application side to avoid infinite loops.
- If necessary, optimize the prompt to specify the conditions for task completion, preventing the model from repeatedly making the same tool call.
The provided messages input is invalid. The error info is [Unexpected item type in content] / Input should be a valid string / Input should be a valid dictionary or instance of ... (input.messages.x.content...)
Cause: The content field of a message in the messages array contains an unsupported element type. When content is an array, each element must be a string or a compliant object (such as {"type": "text", "text": "..."}, {"type": "image_url", ...}, etc.); the error is triggered if the array contains numbers, Boolean values, nested arrays, or objects with unsupported type values. The corresponding HTTP status code is 400 and the error code is InternalError.Algo.InvalidParameter.
Common scenario: When using a text-only model (such as the Qwen-Max text series, including qwen3.7-max), if messages (especially multi-turn conversation history) contains multimodal content elements such as images (image_url), this error will also be triggered because text-only models do not support image or other modality inputs (in some integration tools/agents, this error may be reported as "the model service provider returned empty content" or similar messages).
- Text-only models: Set
contentto a string; do not pass in an array or other types. If your business requires multimodal inputs such as images, switch to a multimodal model (such as Qwen-VL or Qwen3-VL series); if you must continue using a text-only model, remove multimodal elements such as images (image_url) frommessagesand the conversation history before the call. - Multimodal models: Each element in the
contentarray must be a valid object, andtypeonly supports modality types supported by the model, such astext,image_url,video_url, andvideo. Do not mix in numbers, booleans, or nested arrays, or elements that lacktypeor have an invalidtypevalue.
Required parameter(xxx) missing or invalid, please check the request parameters.
Reason: Invalid API call parameters.
Solutions: Check the request parameters to ensure that all required parameters are provided and in the correct format.
When the parameter name in the error message is data_sources, it is usually because the required parameter SourceType was not specified when calling the CreateIndex API, causing a subsequent SubmitIndexJob API error. When creating a knowledge base based on given documents, this parameter must be set to DATA_CENTER_FILE; when creating a knowledge base based on given categories, this parameter must be set to DATA_CENTER_CATEGORY. For more information, see the CreateIndex documentation.
input must contain file_urls
Reason: When using the recorded file recognition of speech recognition (Paraformer), the request parameter file_urls was not assigned a value.
Solutions: Include the file_urls parameter in the request and assign a value to it.
The provided URL does not appear to be valid. Ensure it is correctly formatted.
Reason: When using a vision understanding, omni-modal, or audio understanding model, the URL or local path of the input data is invalid or does not meet the requirements.
Solution:-
URL input: Must start with
http://,https://, ordata:. If it starts withdata:, the Base64-encoded data must be preceded by"base64". -
Local path input: Must start with
file://. -
Temporary URL input:
- When calling via HTTP, make sure the request Header includes the parameter
X-DashScope-OssResourceResolve: enable. - When calling via SDK: Only the DashScope SDK is supported; do not use the OpenAI SDK.
- When calling via HTTP, make sure the request Header includes the parameter
Input should be a valid dictionary or instance of GPT3Message
Reason: The messages field is not constructed in the required format, for example, mismatched brackets or missing required key-value pairs.
Solutions: Check whether the JSON structure of the messages field is correct.
Value error, contents is neither str nor list of str. : input.contents
Reason: When using an Embedding model, the input is neither a string nor an array of strings.
Solutions: Change the input format to a string or a list of strings.
No backend server available
Reason: The backend service of the Model Studio platform is temporarily unavailable, possibly due to service updates, scale-out, resource scheduling, or temporary faults.
Solution:- Go to the Expenses and Costs page in the Alibaba Cloud console to confirm that the account has no overdue payments. If the account is overdue, top it up in time; the top-up takes effect a few minutes after payment.
- Use
curlorpingto test the connectivity from the local network todashscope.aliyuncs.comto rule out network or firewall blocking. - Log on to the Alibaba Cloud Model Studio console and check whether the status of the service being called is normal.
- After confirming that both the account and the network are normal, wait a few minutes and call the API again.
File [id:file-fe-xxx] format is not supported.
Reason: The Qwen-Long model can only process plain text files (TXT, DOCX, PDF, EPUB, MOBI, MD) and does not support images or scanned documents.
Solutions: To extract, analyze, and summarize text from image content, you can use the Qwen-VL model.
File [id:file-fe-**********] cannot be found.
Reason: This occurs only in Qwen-Long model conversation scenarios, when the OpenAI file-compatible API is called to delete the relevant file within a very short time after a conversation request is initiated.
Solutions: Wait for the model to complete the conversation before deleting the relevant files.
Too many files provided.
Reason: The number of provided file-ids exceeds the limit.
Solutions: Ensure the number of file-ids is less than 100.
File [id:file-fe-**********] exceeds size limit.
Reason: File size exceeds the limit.
Solutions: Ensure the file is smaller than 150 MB.
File [id:file-fe-**********] exceeds page limits (15000 pages).
Reason: The number of file pages exceeds the limit.
Solutions: Ensure the file has fewer than 15,000 pages.
File [id:file-fe-**********] content blank.
Reason: The file content is blank.
Solutions: Ensure the file content is not empty.
Total message token length exceed model limit (10000000 tokens).
Reason: The total input length exceeds 10,000,000 tokens.
Solutions: Ensure the message length meets the requirements.
The video modality input does not meet the requirements because: the range of sequence images shoule be (4, 512)./(4,80).
Reason: When inputting a video as an image list to Qwen VL models, the number of images does not meet the requirements.
Solutions: For Qwen3-VL and Qwen2.5-VL series models, 4-512 images must be passed in; for other models, 4-80 images must be passed in. For more information, see Image and video understanding.
Exceeded limit on max bytes per data-uri item : 10485760'. / Multimodal file size is too large
Reason: The local image or video passed to multimodal models (Qwen-VL, QVQ, Qwen-Omni) exceeds the size limit.
Solution:-
Local file: After Base64 encoding, a single file must not exceed 10 MB.
-
File URL: Image files must not exceed 10 MB; for video files,
- Qwen3-VL, qwen3-vl-max: no more than 2GB;
- qwen3-vl-plus series: no more than 1GB;
- Other models: no more than 150MB.
For how to compress files, see How do I compress an image or video to the required size?
Input should be 'Cherry', 'Serena', 'Ethan' or 'Chelsie': parameters.audio.voice
Reason: The voice parameter is incorrectly specified when using Qwen-Omni or Qwen-TTS.
Solutions: Please specify one of 'Cherry', 'Serena', 'Ethan', or 'Chelsie'.
The image length and width do not meet the model restrictions.
Reason: The image dimensions (length and width) passed to Qwen VL models do not meet the model's requirements.
Solutions: Image dimensions must meet the following requirements: both width and height must be at least 10 pixels, and the aspect ratio must not exceed 200:1 or 1:200.
Failed to decode the image during the data inspection.
Reason: Image decoding failed.
Solutions: Please confirm that the image is not corrupted and that the image format meets the requirements.
The file format is illegal and cannot be opened. / The audio format is illegal and cannot be opened. / The media format is not supported or incorrect for the data inspection.
Reason: The file format is not supported or the file cannot be opened.
Solutions: Please confirm that the file is not corrupted, that the file extension matches the actual format, and that the file format is supported.
The input messages do not contain elements with the role of user.
Reason:- When calling the model, no User Message is passed to the model;
- Or, when calling an Alibaba Cloud Model Studio workflow application via API, the parameters passed in the start node must be passed via the
biz_paramsparameter (notuser_prompt_params).
Solutions: Please ensure that a User Message is passed to the model, or that custom parameters are passed correctly.
Failed to download multimodal content. / Download the media resource timed out during the data inspection process. / Unable to download the media resource during the data inspection process.
Reason: The server failed to download the media file pointed to by the public URL, possibly due to the following reasons.
- Connectivity issue: An internal endpoint of Alibaba Cloud Object Storage Service is used.
- Network latency: Cross-region access causes a timeout.
- Unstable service: The source storage service responds slowly or is unreachable.
- Security policy interception: The User-Agent carried by the server when downloading the public URL contains the
DashScopeUserBotidentifier, which may be intercepted by the security policy of the third-party server, causing the download to fail.
-
Change the storage service
It is recommended to use a storage service in the same region as the model service. We recommend using Alibaba Cloud Object Storage Service to generate public links (do not use internal endpoints).
-
Adjust the transfer method
If passing a public URL fails, refer to Pass in local files (Base64-encoded or file path) to switch to the recommended method:
File Type
File specifications
DashScope SDK(Python、Java)
OpenAI compatible / DashScope HTTP
Image
Greater than 7MB and less than 10MB
Pass in a local path
Only public URLs are supported; it is recommended to use Alibaba Cloud Object Storage Service
Less than 7MB
Pass in a local path
Base64 encoding
Video
Greater than 100 MB
Only public URLs are supported; it is recommended to use Alibaba Cloud Object Storage Service
Only public URLs are supported; it is recommended to use Alibaba Cloud Object Storage Service
Greater than 7MB and less than 100 MB
Pass in a local path
Only public URLs are supported; it is recommended to use Alibaba Cloud Object Storage Service
Less than 7MB
Pass in a local path
Base64 encoding
Audio
Greater than 10 MB
Only public URLs are supported; it is recommended to use Alibaba Cloud Object Storage Service
Only public URLs are supported; it is recommended to use Alibaba Cloud Object Storage Service
Greater than 7MB and less than 10 MB
Pass in a local path
Only public URLs are supported; it is recommended to use Alibaba Cloud Object Storage Service
Less than 7MB
Pass in a local path
Base64 encoding
Base64 encoding increases the data size, so the original file size should be less than 7 MB.
Using Base64 or a local path can avoid server-side download timeouts and improve stability.
-
Allow
DashScopeUserBotIf the images are hosted on a server under your control, allow requests whose User-Agent contains
DashScopeUserBotin your security policy. Alternatively, use local file input (Base64 encoding or file path) to avoid the server downloading public URLs.
Failed to find the requested media resource during the data inspection process.
Cause: The provided resource URL is invalid or inaccessible.
Solution:- Verify that the URL is correctly formatted and accessible
- Verify that the resource file has not been deleted or moved
- Verify that the URL has not expired (for example, if you use an OSS signed URL, check its validity period)
url error, please check url!
-
Cause 1: The model name does not match the API endpoint: For example, using a multimodal API to call a text-only model, or using a text-only API to call a multimodal model.
Solution:-
When using multimodal models such as qwen3.7-plus, qwen3-vl-plus, qwen3.8-max, and qwen3.8-flash through DashScope: use client.multimodal.chat.create() or the multimodal-generation endpoint. For more information, see Image and Video Understanding. When switching from a text-only model (such as qwen3.7-max) to a multimodal model (such as qwen3.8-max), change the invocation method from client.chat.completions.create() to client.multimodal.chat.create(); otherwise, a url error will be returned.
If you use the spring-ai-alibaba framework, check whether the multimodal parameter withMultiModel is set.
-
When using text-only models such as qwen3.7-max, qwen-plus, and deepseek-v4-pro through DashScope, use client.chat.completions.create() or the text-generation endpoint. For more information, see Overview.
-
When using the CosyVoice Voice Cloning API through DashScope: this API includes the
modelandtarget_modelparameters: setmodeltovoice-enrollmentandtarget_modelto the specific CosyVoice model. For more information, see CosyVoice Voice Cloning/Design API.
-
-
Cause 2: The DashScope SDK version is too low: When calling image/video generation models, an outdated SDK cannot recognize the correct server address;
Solution: Upgrade the SDK version
Don't have authorization to access the media resource during the data inspection process.
Cause: The signed OSS file URL provided when calling the model has expired.
Solution: Make sure to access the file within the validity period of the file URL.
The item of content should be a message of a certain modal.
Cause: When using the DashScope SDK to call a multimodal model, the key of each element in the content array must be one of the following: image, video, audio, or text.
Solution: Use the correct content parameter.
Invalid video file.
Cause: The provided video file is invalid.
Solution: Check whether the video file is corrupted or in the correct format.
The video modality input does not meet the requirements because: The video file is too long.
Cause: The duration of the video passed to a Qwen VL or Qwen-Omni model exceeds the limit.
Solution:- The video duration supported by Qwen2.5-VL models should be between 2 seconds and 10 minutes.
- The video duration supported by other Qwen VL or Qwen-Omni-Turbo models should be between 2 seconds and 40 seconds.
For video limits of other Qwen-Omni models, see Single-modal input.
Field required: xxx
Cause: Required input parameters are missing.
Solution: Add the corresponding parameter based on the error message xxx.
The request is missing required parameters or in a wrong format, please check the parameters that you send.
Cause: Required parameters are missing, or the parameter format is invalid.
Solution: Check whether the request parameters are complete and in the correct format.
Missing training files.
Cause: Parameter errors, such as missing parameters or incorrect parameter formats.
The style is invalid.
Cause: The style is not within the enumeration range.
Solution: Check whether the value of the style parameter is correct.
The style_level is invalid.
Cause: The style_level is not within the enumeration range.
Solution: For more information, see EMO video generation.
parameters.video_ratio must be 9:16 or 3:4.
Cause: The video_ratio parameter can only be 9:16 or 3:4.
Solution: Change the video_ratio parameter to "9:16" or "3:4".
the xxx parm is invalid!
Cause: The input parameter is out of range.
Solution: For more information, see Video style transfer.
input json error.
Cause: The input JSON is invalid.
Solution: Check whether the JSON format of the request is correct.
read image error.
Cause: Failed to read the image.
Solution: Check whether the image file is corrupted or in the correct format.
the parameters must conform to the specification: xxx.
Cause: The input parameter value is out of range.
Solution: Check and correct the parameter value based on the error message xxx.
The size of person image and coarse_image are not the same.
Cause: The resolution of coarse_image is inconsistent with that of person_image.
Solution: Ensure that the resolutions of coarse_image and person_image are consistent.
The request is missing required parameters or the parameters are out of the specified range, please check the parameters that you send.
Cause: Required parameters for the API call are missing or out of range.
Solution: Check and correct the request parameters.
image format error
Cause: Invalid image format.
Solution: An image URL or Base64 string is required.
No messages found in input
Cause: The messages field is required in the request parameters.
Solution: For more information, see Qwen-Image Editing.
Invalid image format or corrupted file
Cause: The input image format is invalid or the file is corrupted.
Solution: Check whether the file can be opened and downloaded normally, and ensure that the file is complete and in a valid format.
download image failed
Cause: The image cannot be downloaded.
Solution: Check whether the file can be downloaded normally.
messages length only support 1
Cause: The messages array supports a length of 1 only.
Solution: That is, only one conversation message can be passed in. For more information, see Qwen-Image Editing.
content length only support 2
Cause: The content array supports a length of 2 only.
Solution: That is, only one pair of text and image can be passed in. For more information, see Qwen-Image Editing.
lack of image or text
Cause: The request parameters are missing the image or text field.
Solution: For more information, see Qwen-Image Editing.
num_images_per_prompt must be 1.
Cause: Invalid request parameter. The parameter n (number of images generated) can only be set to 1.
Solution: Set the value of the parameter n to 1.
Input files format not supported.
Cause: The audio or image format does not meet the requirements.
Solution: Supported audio formats are mp3, wav, aac; supported image formats are jpg, jpeg, png, bmp, webp. For more information, see LivePortrait video generation.
Failed to download input files.
Cause: Failed to download the input file.
Solution: Check whether the file URL is accessible and the network is working properly.
oss download error.
Cause: Failed to download the input image.
Solution: Check whether the OSS link of the image is correct and accessible.
The image content does not comply with green network verification.
Cause: The image content does not comply with regulations.
Solution: Replace the image with one that complies with content safety standards.
read video error.
Cause: Failed to read the video.
Solution: Check whether the video file is corrupted or in an unsupported format.
the size of input image is too small or too large.
Cause: The input image size is too small or too large.
Solution: Adjust the image size to meet the API requirements.
The request parameter is invalid, please check the request parameter.
Cause: This error is a generic error for multiple scenarios: the clothes_type parameter may be invalid (AI try-on - image segmentation), or the aspect ratio parameter may be invalid.
Solution: For more information, see AI try-on - image segmentation; if the issue is with the aspect ratio parameter, use "1:1" or "3:4".
The type or value of {parameter} is out of definition.
Cause: The parameter type or value does not meet the requirements.
Solution: For more information, see LivePortrait video generation.
request timeout after 23 seconds.
Cause: No data has been sent to the service for more than 23 seconds. This error occurs when using Real-time speech synthesis (Sambert), Speech recognition (Paraformer), and Real-time speech synthesis (Qwen-Audio-TTS/CosyVoice).
Solution: Check why no data has been sent to the server for a long time. If no message will be sent to the server for a long time (more than 23 seconds), end the task promptly.
Please ensure input text is valid.
Cause: If you are using Real-time speech synthesis (Qwen-Audio-TTS/CosyVoice), this error is usually caused by not sending the text to be synthesized. Possible causes include: missing parameter (no value assigned to the text parameter) or code exception (the assignment to the text parameter failed).
Solution: Check the code to ensure the text parameter is correctly assigned and sent.
Missing required parameter 'xxx'! Please follow the protocol!
Error example:
- Missing required parameter 'payload.model'! Please follow the protocol!
- Missing required parameter 'payload.task_group'! Please follow the protocol!
-
The WebSocket event JSON format is invalid (common cause).
When calling a model using the WebSocket protocol, the JSON sent is in an incorrect format. Common issues include:
- Incorrect JSON structure hierarchy: parameters are not placed at the correct nesting level.
- Parameter name misspelled, for example
task_groupwritten astaskgroup. - Parameter value is empty or not correctly assigned.
-
The call method is not called again after stop (specific scenario).
Only applies to the following scenario: the DashScope Java SDK for Fun-ASR or Paraformer real-time speech recognition.
After the
stop()method is called to end the current recognition, data continues to be sent without calling thecall()method again, causing an abnormal session state and triggering this error.Differences between SDK users and WebSocket users: "Missing required parameter" is a protocol-level error returned by the server and only occurs when the WebSocket protocol is used directly. If you use the Recognition class of the DashScope Java SDK, the SDK intercepts such operations on the client side and throws an "Invalid state: the expected recognition state should be started, but the current state is idle" (Invalid state) exception, instead of returning a "Missing required parameter" error.
- For cause 1, check the JSON format and parameters.
- For cause 2, make sure that after each
stop()call, you must call thecall()method again before the next round of recognition. If you use the DashScope Java SDK, watch for the "Invalid state" exception thrown by the client; if you use the WebSocket protocol directly, you will receive a "Missing required parameter" error.
[tts:]Engine return error code: 418
Cause: When using Real-time Speech Synthesis (Qwen-Audio-TTS/CosyVoice), the request parameter voice (voice) is incorrect, or the model (model) and voice (voice) versions do not match.
-
Check the
voiceparameter value:- If you use the default voice, check it against the "voice parameter" in the Python SDK.
- If you use a voice cloning voice, use the CosyVoice Voice Cloning/Design API to confirm that the voice status is "OK" and that the account the voice belongs to is the same as the calling account.
-
Check version compatibility: v2 models can only use v2 voices, and v1 models can only use v1 voices. The two cannot be mixed.
Request voice is invalid!
Cause: If you use Real-time Speech Synthesis (Qwen-Audio-TTS/CosyVoice), this error usually occurs because no voice is set.
Solution: Please check whether the voice parameter is set. If you use the WebSocket API reference, follow the API documentation to configure parameters in the correct JSON format.
ref_images_url and obj_or_bg must be the same length.
Cause: When using the multi-image reference feature of Wanx-Video Editing (2.1), the array lengths of ref_images_url and obj_or_bg are inconsistent.
Solution: Please make sure that the array lengths of ref_images_url and obj_or_bg are the same.
check input data style.
Cause: The input parameters do not meet the input requirements.
Solution: Please check and correct the input parameters.
An error during model pre-process.
Cause: A content field in an incorrect format was passed in.
Solution:- If you call by code, do not set content to an array type such as
[{"type": "text", "text": "Who are you?"}]. - If you use Cline, click
MODEL CONFIGURATIONin the settings page and select Enable R1 messages format.
The image size is not supported for the data inspection.
Reason:- The image size (length and width) passed to the Qwen-VL model does not meet the model requirements.
- The output image size exceeds the limit (10MB).
-
The image size must meet the following requirements:
- The image width and height must both be at least 10 pixels.
- The aspect ratio must not exceed 200:1 or 1:200
-
Adjust the parameters for image generation.
Wrong Content-Type of multimodal url
Cause: The Content-Type field in the response header of the URL request is incorrect.
The Content Types supported by the Qwen-VL model are: image/bmp, image/bmp, image/icns, image/x-icon, image/jpeg, image/jp2, image/png, image/sgi, image/tiff, image/webp. For more information, see Images supported by Qwen-VL models.
Solution:
View the Content-Type field
- Open a browser (such as Chrome or Firefox).
- Open the developer tools (usually press F12 or right-click and select "Inspect").
- Switch to the Network tab.
- Enter the image URL in the address bar and access it.
- Find the corresponding request, view the Headers section, and look for the Content-Type field in the "Response Headers" section.
Field required: image_url
Cause: The image_url parameter is missing.
Solution: Please refer to Emoji video generation and pass in the image_url parameter.
Field required: driven_id
Cause: The driven_id parameter is missing.
Solution: Please refer to Emoji video generation and pass in the driven_id parameter.
Invalid ext_bbox
Cause: The input ext_bbox parameter is invalid.
Solution: Please refer to Emoji video generation and pass in a valid ext_bbox.
Driven not exist: driven_id
Cause: The input driven_id does not exist.
Solution: Please refer to Emoji video generation and pass in a valid driven_id.
Text request limit violated, expected 1.
Cause: When calling the WebSocket API reference of CosyVoice speech synthesis, the continue-task instruction was sent multiple times after enable_ssml was set to true.
Solution: After enable_ssml is set to true, the continue-task instruction can only be sent once.
SSML text is not supported at the moment!
Cause: When using the CosyVoice speech synthesis feature, the current model or voice does not support SSML, or the SSML feature is not correctly enabled.
Solution: Troubleshoot according to Limits and constraints
[tts:]Engine return error code: 428
Cause: The CosyVoice speech synthesis instruction parameter is used incorrectly. Possible causes include the following
-
Length exceeds the limit:
instructioncannot exceed 100 characters (Chinese characters count as 2 characters, and other characters count as 1 character each) -
Invalid format or invalid language: Only the following models support
instruction, and the rules differ:-
cosyvoice-v3.5-flash, cosyvoice-v3.5-plus: You can freely enter any instructions (such as emotion, speech rate, etc.)
-
cosyvoice-v3-flash:
- Must be written in a fixed format
- Only Chinese
instructionis supported - Different voices support different
instructions. For more information, see CosyVoice voice list
-
- Check whether the
instructioncharacter length exceeds 100 - Confirm whether the model you use supports the
instructionparameter - When using cosyvoice-v3-flash, make sure
instructionis in Chinese and follows the fixed format of the corresponding voice
At least one of 'lyrics' or 'prompt' must be provided.
Cause: When using the Fun-Music model, the request does not provide the lyrics or prompt parameter.
Solution: Provide at least one of the lyrics or prompt parameters in the request.
Lyrics content is illegal and cannot be used for music generation.
Cause: When using the Fun-Music model, the lyrics content fails the check and may contain infringing content.
Solution: Modify the lyrics content to ensure it contains no infringing or prohibited content, and try again.
invalid_request_error-invalid_value
-1 is lesser than the minimum of 0 - 'seed'/'seed' must be Integer
Cause: When using the OpenAI-compatible protocol, the seed parameter is not set within the range of [0, 231-1].
Solution: Set the seed parameter within the range of [0, 231-1].
invalid_request_error
you must provide a model parameter.
Cause: The model parameter is not provided in the request.
Solution: Add the model parameter to the request.
InvalidParameter.NotSupportEnableThinking
The model xxx does not support enable_thinking.
Cause: The current model does not support the enable_thinking parameter.
Solution: Remove the enable_thinking parameter from the request, or use a model that supports the thinking mode.
invalid_value
The requested voice 'xxx' is not supported.
Cause: When performing Qwen-TTS real-time speech synthesis, the selected voice is generated through the Qwen-TTS voice cloning feature, but the two use different models.
Solution: Check whether the target_model request parameter used for voice cloning is the same as the model request parameter used for speech synthesis.
Arrearage
Access denied, please make sure your account is in good standing.
Cause: The Alibaba Cloud account that the API Key belongs to has overdue payments, causing access to be denied.
Solution: Go to Expenses and Costs to check whether there are overdue payments:
- No overdue payments: Confirm whether the API Key belongs to the current account. If the account has no overdue payments, the account may be abnormal. For more information, contact customer service for further troubleshooting.
- Overdue payments: Top up in time. After the top-up, the system balance may be delayed. Wait a moment and try again.
NoteQ: I purchased a resource plan and only called models covered by the resource plan. Why are there overdue payments?
A: Check the deduction scope of the resource plan. Take the qwen-plus/qwen-plus-latest series resource plans as an example:
The resource plan only covers the input tokens and output tokens fees of the qwen-plus and qwen-plus-latest models, and only covers real-time inference fees (non-thinking mode) generated when the input of a single request falls within the 0<Token≤128K tier range
Fees that cannot be deducted include:
- Fees generated when the input of a single request falls within the Token>128K tier range.
- Fees generated by Batch calls, context cache, model fine-tuning, and model deployment.
API provider returned a billing error — your API key has run out of credits or has an insufficient balance. Check your provider's billing dashboard and top up or switch to a different API key.
Cause: When calling Model Studio through third-party clients such as OpenClaw, if the underlying account has overdue payments or an insufficient balance, the client aggregates the billing errors returned by the server into this English message. The underlying Model Studio server error code is Arrearage (that is, Access denied, please make sure your account is in good standing. above), not a billing problem of the client itself.
Solution: Go to Expenses and Costs to check whether the account has overdue payments: if there are overdue payments, top up in time (the system balance may be delayed after the top-up; wait a moment and try again); if not, confirm whether the API Key used for the call belongs to the current account.
isv.OUT_OF_SERVICE
Cause: The Alibaba Cloud account balance is insufficient, causing the service to be suspended. Its underlying cause is the same as that of Arrearage in this section (Access denied, please make sure your account is in good standing.): both are account overdue payments.
Solution: Go to Expenses and Costs to top up your Alibaba Cloud account. The service will automatically recover once the balance is sufficient.
Contain.Forbidden.Label.Error
contain forbidden create order label
Cause: The Alibaba Cloud account has a label that forbids order placement, so this order request was intercepted and the order cannot be placed.
Solution: View the diagnostic result of this error code via Error Code Diagnostics; contact customer service to confirm why the label was added and apply to have it removed. After the label is removed, place the order again.
DataInspectionFailed/data_inspection_failed
Input or output data may contain inappropriate content. / Input data may contain inappropriate content. / Output data may contain inappropriate content.
Cause: The input or output contains suspected sensitive content and was intercepted by the content moderation system (Green Web).
Solution: Modify the input content and try again. To apply for content whitelisting, contact your account manager.
Input xxx data may contain inappropriate content.
Cause: The input data (such as prompts or images) may contain sensitive content. Solution: For content compliance check, modify the input and try again.
Qwen rejected the input image before model inference; no actual ad/porn/OCR result was produced.
Cause: Before model inference, the input image was flagged by the pre-inference content safety check (Green Web) as suspected to contain sensitive or non-compliant content and was intercepted. The model did not perform inference on this image, so no recognition, OCR, or analysis results will be returned. This is a security and compliance pre-check for multimodal input images, and it belongs to the same content safety mechanism as the interception of input content by the Green Web described above.
Solution: Replace or modify the input image and try again; if the image is confirmed to be compliant but is still repeatedly intercepted, submit a ticket for further verification.
InvalidFile.DownloadFailed
The audio file cannot be downloaded.
Cause: When using Speech Recognition (Paraformer) for recorded file recognition, the file to be recognized failed to download.
Solution: Check whether the URL of the audio file to be recognized is accessible over the public network.
InvalidFile.AudioLengthError
Audio length must be between 1s and 300s.
Cause: The audio length does not meet the requirements.
Solution: Ensure that the audio duration is within the range of [1, 300] seconds
Audio length must be between 1s and 180s.
Cause: The audio length does not meet the requirements.
Solution: Ensure that the audio duration is within the range of [1, 180] seconds.
InvalidFile.NoHuman
The input image has no human body. Please upload other image with single person.
Cause: No person is present in the input image, or no face was detected.
Solution: Upload a photo of a single person.
InvalidFile.BodyProportion
The proportion of the detected person in the picture is too large or too small, please upload other image.
Cause: The proportion of the person in the uploaded image does not meet the requirements.
Solution: Upload an image that meets the person proportion requirements.
InvalidFile.FacePose
The pose of the detected face is invalid, please upload other image with whole face and expected orientation.
Cause: The facial pose of the person in the uploaded image does not meet the requirements (the face must be visible, and the head must not be severely tilted).
Solution: Upload an image that meets the requirements.
The pose of the detected face is invalid, please upload other image with the expected oriention.
Cause: The facial pose of the person in the uploaded image does not meet the requirements (the face must be oriented forward without severe tilt).
Solution: Ensure that the face in the image is not tilted.
The pose of the detected face is invalid, please upload other image with the expected orientation.
Cause: The facial pose of the person in the uploaded image does not meet the requirements (the face must be oriented forward without severe tilt).
Solution: Ensure that the face in the image is not tilted.
InvalidFile.Resolution
The image resolution is invalid, please make sure that the largest length of image is smaller than 7000, and the smallest length of image is larger than 400.
Cause: The size of the uploaded image does not meet the requirements.
Solution: The resolution of the uploaded image must not exceed 70007000 and must not be lower than 400400.
The image resolution is invalid, please make sure that the largest length of image is smaller than 4096, and the smallest length of image is larger than 224.
Cause: The size of the uploaded image does not meet the requirements.
Solution: The longest side of the uploaded image resolution must be less than 4096 pixels, and the shortest side must be greater than 224 pixels.
The image resolution is invalid, please make sure that the largest length of image is smaller than xxx, and the smallest length of image is larger than yyy.
Cause: The size of the uploaded image does not meet the requirements.
Solution: The resolution of the uploaded image must not exceed xxxxxx and must not be lower than yyyyyy.
The image resolution is invalid, please make sure that the aspect ratio is smaller than xxx, and largest length of image is smaller than yyy.
Cause: The size of the uploaded image does not meet the requirements.
Solution: The aspect ratio of the uploaded image must be less than xxx, and the resolution must not exceed yyy*yyy.
Invalid video resolution. The height or width of video must be xxx ~ yyy.
Cause: The video resolution does not meet the requirements.
Solution: The video side length must be between xxx and yyy.
InvalidFile.FPS
Invalid video FPS. The video FPS must be 15 ~ 60.
Cause: The video frame rate does not meet the requirements.
Solution: The video frame rate must be between 15 and 60 fps.
InvalidFile.Value
The value of the image is invalid, please upload other clearer image.
Reason: The uploaded image is too dark and does not meet the requirements.
Solution: Make sure the face in the image is clear.
InvalidFile.FrontBody
The pose of the detected person is invalid, please upload other image with the front view.
Reason: The person in the uploaded image has their back to the camera, which does not meet the requirements.
Solution: Make sure the person in the image faces the camera.
InvalidFile.FullFace
The pose of the detected face is invalid, please upload other image with whole face.
Reason: The facial pose of the person in the uploaded image does not meet the requirements (the face must be visible).
Solution: Make sure the face in the image is complete and unobstructed.
InvalidFile.FaceNotMatch
There are no matched face in the video with the provided reference image.
Reason: Failed to match the reference image with the face in the video.
Solution: For more information, see VideoRetalk video generation.
InvalidFile.Content
The first frame of input video has no human body. Please choose another clip.
Reason: The first frame of the video must contain a person.
Solution: Select a video clip that contains a human body.
The human is too small in the first frame of input video. Please choose another clip.
Reason: The person in the first frame of the video is too small.
Solution: Select a video in which the person occupies a relatively large proportion of the first frame.
The human is not clear in the first frame of input video. Please choose another clip.
Reason: The person in the first frame of the video is not clear.
Solution: Select a video with a clear person in the first frame.
The input image has no human body or multi human bodies. Please upload other image with single person.
Reason: The input image contains no person or multiple people.
Solution: Upload a photo of a single person.
The input image has no human body or has unclear human body. Please upload other image.
Reason: The human body in the input image is incomplete, or there is no human body.
Solution: Upload an image that contains a complete and clear human body.
The input image has multi human bodies. Please upload other image with single person.
Reason: The input image contains multiple people.
Solution: Upload a photo of a single person.
InvalidFile.FullBody
The human is not fullbody in the first frame of input video. Please choose another clip.
Reason: The person in the first frame of the video is incomplete.
Solution: The full body of the person must be visible.
The pose of the detected person is invalid, please upload other image with whole body, or change the ratio parameter to 1:1。
Reason: The pose of the person in the uploaded image does not meet the requirements.
Solution: Upload an image that meets the requirements: for headshots, the entire head must be visible; for half-body photos, the body above the hips must be fully visible. Alternatively, adjust the image aspect ratio to 1:1.
InvalidFile.BodyPose
The pose of the detected person is invalid, please upload other image with whole body and expected orientation.
Reason: The movements of the single person do not meet the requirements.
Solution: Upload an image that meets the requirements: the shoulders and ankles must be visible, the person must not have their back to the camera, must not be sitting, and must not be facing severely off-center.
InvalidFile.Size
Invalid file size. The video file size must be less than 200MB, and the audio file size must be less than 15MB.
Reason: The file size does not meet the requirements.
Solution: The video file must be smaller than 200 MB, and the audio file must be smaller than 15 MB.
Invalid file size, The image file size must be smaller than 5MB.
Reason: The file size does not meet the requirements.
Solution: The image file must be smaller than 5 MB.
Invalid file size. The video/audio/image file size must be less than xxxMB.
Reason: The file size does not meet the requirements.
Solution: The video/audio/image file must be smaller than the specified number of MB.
InvalidFile.Duration
Invalid file duration. The file duration must be xxx s ~ yyy s.
Reason: The file duration does not meet the requirements.
Solution: The video/audio file duration must be between xxx and yyy seconds.
InvalidFile.ImageSize
The size of image is beyond limit.
Reason: The image size exceeds the limit.
Solutions: The image aspect ratio must be no greater than 2, and the longest side must be no greater than 4096.
InvalidFile.AspectRatio
Invalid file ratio. The file aspect ratio (height/width) must be between 3:1 and 1:3.
Reason: The file aspect ratio does not meet the requirements.
Solutions: The video file aspect ratio must be between 3:1 and 1:3.
Invalid file ratio. The file aspect ratio (height/width) must be between 2.0 and 0.5.
Reason: The file aspect ratio does not meet the requirements.
Solutions: The image file aspect ratio must be between 2.0 and 0.5.
InvalidFile.Openerror
Invalid file, cannot open file as video/audio/image.
Reason: The file cannot be opened.
Solutions: Check whether the file is corrupted or whether the format is correct.
InvalidFile.Template.Content
Invalid template content.
Reason: No permission to access the action template, or the template content does not meet the requirements.
Solutions: Check the template permissions and content.
InvalidFile.Format
Invalid file format,the request file format is one of the following types: MP4, AVI, MOV, MP3, WAV, AAC, JPEG, JPG, PNG, BMP, and WEBP.
Reason: The file format does not meet the requirements.
Solutions: Use files that meet the requirements: videos support mp4, avi, and mov; audio supports mp3, wav, and aac; images support jpg, jpeg, png, bmp, and webp.
InvalidFile.MultiHuman
The input image has multi human bodies. Please upload other image with single person.
Reason: The input image contains multiple people.
Solution: Upload a photo of a single person.
InvalidPerson
The input image has no human body or multi human bodies. Please upload other image with single person.
Reason: The input image contains no person or multiple people.
Solution: Upload a photo of a single person.
InvalidParameter.DataInspection
Unable to download the media resource during the data inspection process.
Reason: Timed out when downloading the image or audio file.
Solutions: If the call is initiated from overseas, the unstable cross-border network may cause a timeout when downloading resources. Store the files in OSS in the Chinese mainland and then initiate the model call. You can also use the temporary storage space to upload files.
FlowNotPublished
Flow has not published yet, please publish flow and try again.
Reason: The flow has not been published.
Solutions: Publish the flow and try again.
InvalidImage.ImageSize
The size of image is beyond limit.
Reason: The image size exceeds the limit.
Solutions: The image aspect ratio must be no greater than 2, and the longest side must be no greater than 4096.
InvalidImage.NoHumanFace
No human face detected.
Reason: No human face detected (only for the asynchronous query interface of generation tasks).
Solutions: Upload an image that contains a clear human face.
InvalidImageResolution
The input image resolution is too large or small.
Reason: The input image resolution is too large or too small.
Solutions: The image resolution must be no less than 256×256 pixels and no more than 5760×3240 pixels.
InvalidImageFormat
The input image is in invalid format.
Reason: The image format does not meet the requirements.
Solutions: Use images in JPEG, PNG, JPG, BMP, or WEBP format.
InvalidURL
Invalid URL provided in your request.
Reason: The URL is invalid.
Solutions: Use a valid URL.
Required URL is missing or invalid, please check the request URL.
Reason: The input URL is invalid or missing.
Solutions: Provide the correct URL.
The request URL is invalid, make sure the url is correct and is an image.
Reason: The input URL is invalid.
Solutions: Make sure the URL is correct and points to an image file.
The input audio is longer than xxs.
Reason: The input audio file exceeds the maximum duration of xx seconds.
Solutions: Trim the audio file to xx seconds or less.
File size is larger than 15MB.
Reason: The input audio file exceeds the maximum limit of 15MB.
Solutions: Compress the audio file to within 15MB.
File type is not supported. Allowed types are: .wav, .mp3.
Reason: The input audio format is invalid.
Solutions: Only WAV and MP3 formats are currently supported.
The request URL is invalid, please check the request URL is available and the request image format is one of the following types: JPEG, JPG, PNG, BMP, and WEBP.
Reason: The image is inaccessible or the downloaded file format is unsupported.
Solutions: Ensure the URL is accessible and the image format is JPEG, JPG, PNG, BMP, or WEBP.
InvalidImage.FileFormat
Invalid image type. Please ensure the uploaded file is a valid image.
Reason:The image file format is unsupported.
Solutions: Use an image in JPG, JPEG, PNG, BMP, or WEBP format.
InvalidURL.ConnectionRefused
Connection to xxx refused, please provide available URL.
Reason: The download was refused.
Solutions: Provide an available URL.
InvalidURL.Timeout
Download xxx timeout, please check network connection.
Reason: The download timed out.
Solutions: Check the network connection.
BadRequestException
Invalid part type.
Reason: Only in the conversation scenario of the Qwen-Long model, the user uploaded a file type that the Qwen-Long model does not currently support.
Solutions: Upload a file type supported by Qwen-Long.
BadRequest.EmptyInput
Required input parameter missing from request.
Reason: The input parameter is not specified in the request.
Solutions: Add the input parameter to the request.
BadRequest.EmptyParameters
Required parameter "parameters" missing from request.
Reason:The parameters parameter is not specified in the request.
Solutions: Add the parameters parameter to the request.
BadRequest.EmptyModel
Required parameter "model" missing from request.
Reason: The model parameter is not provided in the request.
Solution: Add the model parameter to the request.
BadRequest.IllegalInput
The input parameter requires json format.
Reason: The input parameter format does not conform to the JSON format required by the API.
Solutions: Check the input parameter format and ensure it is standard JSON.
BadRequest.InputDownloadFailed
Failed to download the input file: xxx.
Reason: Failed to download the input file, possibly due to a download timeout, a download failure, or the file exceeding the size limit.
Solutions: Troubleshoot based on the detailed error message xxx.
Failed to download the input file.
Reason: When using Qwen-TTS voice cloning, the server failed to download the audio file to be cloned.
Solutions: Check whether the audio file can be downloaded normally. If it can, check whether the audio file size exceeds the limit (over 10MB).
BadRequest.UnsupportedFileFormat
File format unsupported.
Reason: During CosyVoice voice cloning, the uploaded audio format does not meet the model requirements.
Solutions: The audio format must be WAV (16bit), MP3, or M4A. Note that the format cannot be determined solely by the file extension. For example, a file with the .mp3 extension may actually be in another format (such as Opus). We recommend using tools (such as ffprobe or mediainfo) or commands (such as the file command on Linux/macOS) to confirm the actual encoding format of the audio file to ensure compliance.
Input file format is not supported.
Reason: The input file format is not supported.
Solutions: Use a supported file format.
BadRequest.TooLarge
Payload Too Large.
Reason: The file size exceeds the limit.
Solution:- When the "purpose" parameter is "file-extract", documents must not exceed 150MB and images must not exceed 20MB.
- When the "purpose" parameter is "batch", files must not exceed 500MB. Split the file and upload files in batches.
BadRequest.ResourceNotExist
The Required resource not exist.
Reason:- When calling the update, query, or delete API of CosyVoice voice cloning, the corresponding voice does not exist.
- When using custom hotwords (Paraformer), the hotword resource referenced by the update, query, or delete API call does not exist.
Throttling.AllocationQuota
Your current quota is xxx
Reason: The number of voices for CosyVoice voice cloning has reached the limit.
Solution: Delete some voices.
Free allocated quota exceeded.
Reason: When using custom hotwords (Paraformer), the number of hotword lists under the account has reached the upper limit.
Solution: Delete hotword lists that are no longer in use.
Maximum voice storage limit exceeded, please delete existing voices.
Reason: When using Qwen-TTS voice cloning, the number of voices available to the primary account has exceeded the upper limit.
Solution: Please delete some voices.
InvalidGarment
Missing clothing image.Please input at least one top garment or bottom garment image.
Reason: Clothing images are missing.
Solution: Please provide at least one image of a top garment (top_garment_url) or bottom garment (bottom_garment_url).
InvalidSchema
Database schema is invalid for text2sql.
Reason: The database schema information is not specified.
Solution: Please specify the database schema information.
The schema format is invalid.
Applies to: ParseX API
Reason: Invalid schema format.
InvalidSchemaFormat
Database schema format is invalid for text2sql.
Reason: The format of the input data table information is abnormal.
Solution: Please check and correct the format of the data table information.
Audio. AudioShortError
valid audio too short!
Reason: The effective duration of the audio used for CosyVoice voice cloning is too short.
Solution: The audio duration should be kept between 10~15 seconds. When recording, please ensure continuous reading and include at least one segment of continuous speech longer than 5 seconds.
Audio. AudioSilentError
silent audio error.
Reason: The audio file for CosyVoice voice cloning is silent, or the non-silent portion is too short.
Solution: The audio duration used for voice cloning should be kept between 10~15 seconds and include at least one segment of continuous speech longer than 5 seconds.
InvalidInputLength
The image resolution is invalid, please make sure that the largest length of image is smaller than 4096, and the smallest length of image is larger than 150. and the size of image ranges from 5KB to 5MB.
Reason: The image resolution or file size does not meet the requirements.
Solution: Adjust the longest side of the image to less than 4096 pixels and the shortest side to greater than 150 pixels, keep the file size between 5 KB and 5 MB, and then retry.
FaqRuleBlocked
Input or output data is blocked by faq rule.
Reason: The FAQ rule intervention module is triggered.
ClientDisconnect
Client disconnected before task finished!
Reason: The client actively disconnected before the task finished. This error message occurs when using speech synthesis or recognition related services.
Solution: Please check your code and do not disconnect from the server before the task finishes.
ServiceUnavailableError
Role must be user or assistant and Content length must be greater than 0.
Reason: The input content length is 0, or role is incorrect.
Solution: Please check that the input content length is greater than 0, and ensure the parameter format (such as role) complies with the API documentation.
IPInfringementSuspect
Input data is suspected of being involved in IP infringement.
Reason: The input data (such as prompts or images) is suspected of IP infringement.
Solution: For content compliance check, please review your input to ensure it does not contain content that may cause infringement risks.
UnsupportedOperation
The operation is unsupported on the referee object.
Reason: The associated object does not support this operation.
Solution: Please check whether the operation object and operation type match.
The fine-tune job can not be deleted because it is succeeded,failed or canceled.
Reason: The fine-tune job cannot be deleted because its status is already "Succeeded", "Failed", or "Canceled".
Solutions: Only jobs in specific states can be deleted. Do not delete jobs in a terminated state.
CustomRoleBlocked
Input or output data may contain inappropriate content with custom rule.
Reason: The request or response content did not pass the custom policy.
Solutions: Check the content or adjust the custom policy.
Audio.PreprocessError
Audio preprocess error.
Reason: When using Qwen-TTS voice cloning, an exception occurred during preprocessing of the audio to be cloned. Possible causes: the content of the text parameter differs greatly from the audio transcript, the valid human voice is too short, or there is no sound.
Solutions: Adjust the content of the text parameter. If the issue persists, re-record the audio following the recording guide.
No segments meet minimum duration requirement
Reason: When using Qwen-TTS voice cloning, the valid human voice in the audio to be cloned is too short.
Solutions: Re-record the audio following the recording guide.
BadRequest.VoiceNotFound
Voice '%s' not found.
Reason: When using Qwen-TTS voice cloning, the voice has already been deleted or does not exist when the delete voice API is called.
Solutions: Check whether the voice parameter passed in is correct.
Audio.DecoderError
Decoder audio file failed.
Reason: When using Qwen-TTS voice cloning, decoding of the audio to be cloned failed. / CosyVoice voice cloning audio file decoding failed.
Solutions: Check whether the audio file is corrupted, and ensure the audio meets the audio file format requirements (for Qwen-TTS) or is WAV (16bit), MP3, or M4A (for CosyVoice).
Audio.AudioRateError
File sample rate unsupported.
Reason: When using Qwen-TTS voice cloning or CosyVoice voice cloning, the sample rate of the audio to be cloned does not meet the requirements.
Solutions: The sample rate must be greater than or equal to 24000 Hz.
Audio.DurationLimitError
Audio duration exceeds maximum allowed limit.
Reason: When using Qwen-TTS voice cloning, the audio to be cloned is too long.
Solutions: The audio must not exceed 60 seconds.
400
Applicable scope: Managed Agents API and Security API
Reason: Parameter validation failed. message gives the specific reason.
BadRequest.IllegalEndpoint
Applicable scope: Managed Agents API and Security API
Reason: Invalid workspace routing (gateway layer).
100005
Applicable scope: Sandbox API
Reason: source only supports sandbox_template.
11900024
Applicable scope: Sandbox API
Reason: The file is not from a sandbox template source.
INVALID_PARAMETER
Applies to: RAG API
Reason: One or more required parameters are not specified or the format is invalid.
NotExistBizId
The bizId not exist.
Applies to: ParseX API
Reason: The biz ID does not exist.
FileDownloadFailed
File download failed.
Applies to: ParseX API
Reason: File download failed and is not retryable.
Handling suggestion: FileDownloadFailed is marked as non-retryable; fix the file URL or access conditions first. FileDownloadTimeout is marked as retryable.
FileDownloadTimeout
File download timed out.
Applies to: ParseX API
Reason: File download timed out and is retryable.
FileFormatNotSupported
Unsupported file formats
Applies to: ParseX API
Reason: Unsupported file format.
FileSizeExceeded
File size exceeds limit
Applies to: ParseX API
Reason: File size exceeds the limit.
InvalidFileUrl
URL is invalid or inaccessible
Applies to: ParseX API
Reason: The URL is invalid or inaccessible.
ParseResultExpired
The ParseResult has exceeded the 30-day retention period.
Applies to: ParseX API
Reason: The parse result has expired, exceeding the 30-day retention period.
PageCountExceeded
The page count exceeds the limit.
Applies to: ParseX API
Reason: The number of pages exceeds the limit.
PageRangeInvalid
The page range is invalid.
Applies to: ParseX API
Reason: The page range is invalid.
ParseResultNotReusable
The ParseResult is not reusable because the input is audio/video or the type does not match.
Applies to: ParseX API
Reason: The parse result is not reusable.
Suggestion: Check whether the parse result has exceeded the 7-day retention period, and whether the input is audio/video that Extract does not support, or of a mismatched type.
UnsupportedFileType
Extract does not support audio/video input.
Applies to: ParseX API
Reason: Extract does not support audio/video input.
401
InvalidApiKey/invalid_api_key
Note
In the Managed Agents API and Security API, InvalidApiKey is returned by the gateway, indicating that no API Key is carried or the API Key is invalid.
Invalid API-key provided. / Incorrect API key provided.
Reason: The API Key is entered incorrectly.
Solutions: Common causes and fixes are as follows:
-
Reading the wrong environment variable
-
Incorrect usage:
api_key=os.getenv("sk-xxx")— the system will attempt to read an environment variable namedsk-xxx, rather than treatingsk-xxxas the key. -
Correct usage:
-
If the environment variable is configured: write it as
api_key=os.getenv("DASHSCOPE_API_KEY");Make sure the
DASHSCOPE_API_KEYenvironment variable is set before running. -
If the environment variable is not configured: write it as
api_key = "sk-xxx".This method is convenient for debugging; do not use it in a production environment.
-
-
-
Incorrect entry: Alibaba Cloud Model Studio API Keys start with
sk-. Make sure you have not mistakenly entered a key from another model provider, and that no extra spaces or line breaks were included when copying the key. -
Plan-specific API Key (Coding Plan / Token Plan Team Edition): Both Coding Plan and Token Plan Team Edition provide dedicated API Keys starting with
sk-sp-, which must be used together with their respective dedicated Base URL and cannot be mixed with the general API Key/Base URL (mixing them will return this authentication error). The dedicated address for Coding Plan is https://coding.dashscope.aliyuncs.com/v1; the dedicated Base URL for Token Plan Team Edition can be viewed in the API Key area of My Subscriptions in the console. Make sure you have updated both the API Key and the Base URL. For specific configuration methods, see Integrating AI tools and QuickStart respectively. -
Region mismatch: The API Key and the Base URL belong to different regions, for example, using an API Key from the China (Beijing) region together with a Base URL from the Singapore region. Make sure the API Key you use is obtained from the Beijing region page, the Singapore region page, or the United States region page. The Base URLs for each region are as follows:
Region
OpenAI-compatible
DashScope
China (Beijing)
Singapore
https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v1United States (Virginia)
https://{WorkspaceId}.us-east-1.maas.aliyuncs.com/compatible-mode/v1https://{WorkspaceId}.us-east-1.maas.aliyuncs.com/api/v1ImportantAlibaba Cloud Model Studio has launched workspace-specific domains for the China (Beijing) and Singapore regions, which deliver superior performance and higher stability for inference requests. We recommend migrating to the new domains:
- China (Beijing) region: migrate from
https://dashscope.aliyuncs.comtohttps://{WorkspaceId}.cn-beijing.maas.aliyuncs.com - Singapore region: migrate from
https://dashscope-intl.aliyuncs.comtohttps://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com
Here,
{WorkspaceId}is your workspace ID, which can be viewed on the Workspace Details page of the Alibaba Cloud Model Studio console. The existing domains still work. - China (Beijing) region: migrate from
-
Tool compatibility issues: Third-party tools are not properly adapted (for example, the latest Dify plugin version is unstable and causes errors — try installing an older version of the Qwen plugin; older Cline versions select Alibaba Qwen as the API Provider when calling models, but you should select OpenAI-compatible).
If none of the above applies, the API Key may have been deleted. Obtain a new one and try the call again.
NOT AUTHORIZED
Access denied: Either you are not authorized to access this workspace, or the workspace does not exist. Please:\nVerify the workspace configuration.\nCheck your API endpoint settings. Ensure you are targeting the correct environment.
Reason:- The {WorkspaceId} value is invalid, or the current account is not a member of the workspace.
- Alternatively, the requested endpoint (service access point) is incorrect.
- Confirm that the {WorkspaceId} value is correct and that the account is a member of the workspace before calling the API.
- Users on the China site should use the endpoint of the China (Beijing) region; users on the International site should use the endpoint of the Singapore region. When using online debugging, confirm that the service address is correct.
invalid access token or token expired
invalid access token or token expired.
Possible cause: Token Plan mistakenly uses the Base URL of Coding Plan or another plan.
Solutions: Use the dedicated Base URL of Token Plan:
- Anthropic-compatible endpoint:
https://token-plan.cn-beijing.maas.aliyuncs.com/apps/anthropic - OpenAI-compatible endpoint:
https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1
UNAUTHORIZED
Applies to: RAG API
Reason: The API Key is missing or invalid.
403
AccessDenied/access_denied
Current user api does not support asynchronous calls.
Reason: The API does not support asynchronous calls.
Solution: Remove X-DashScope-Async from the request header, or set its value to disable.
current user api does not support synchronous calls.
Reason: The API does not support synchronous calls.
Solution: Set X-DashScope-Async: enable in the request header.
Invalid according to Policy: Policy expired.
Reason: The file upload credential has expired when you obtain a temporary public URL.
Solution: Call the file upload credential API again to generate a new credential.
Access denied.
Reason: You do not have permission to access this model. This may be because the model requires permission application, the model's free quota has been exhausted and paid usage is not supported (such as deepseek-r1-distill-llama-70b), or the model has been deprecated.
Solution: If the model has been deprecated, confirm its deprecation status in the model deprecation mechanism documentation and switch to the alternative model recommended there.
Calling a Token Plan exclusive model with a general API KeyReason: Token Plan exclusive models (such as qwen3.8-max-preview) are only available to Token Plan subscribers using an exclusive API Key (starting with sk-sp-) together with the Token Plan exclusive Base URL. Calling these models with a general API Key (starting with sk-) returns a 403 access_denied error.
Solution: Go to the Alibaba Cloud Model Studio console, obtain the Token Plan exclusive API Key and exclusive Base URL in the API Key section of My Subscriptions, and make sure both of them are updated at the same time. For the detailed configuration, see QuickStart. If the API Key and Base URL do not match (for example, an exclusive API Key paired with a general Base URL), a 401 authentication error is returned; see 401-InvalidApiKey/invalid_api_key in this document.
Solution: Go to the Alibaba Cloud Model Studio console, and on the model card in Models click Apply Now to submit a test application. Alternatively, switch to another model, such as a Qwen or Wanx text-to-image model instead of Flux.
Access denied by API-Key restrictions.
Reason: The current API Key has Access Model Scope (custom permission) configured, the requested model is not in the list of models this Key is allowed to call, and the gateway directly rejects the request and returns HTTP 403 access_denied.
- Go to the API Key page in the Model Studio console and edit the permissions of the API Key: change Permission to All, or under Custom permission, add the target model to the selection list of Access Model Scope.
- You can also create a new API Key with All permission and retry.
- This restriction applies to both the OpenAI-compatible API and the DashScope native API, and changing the Base URL cannot bypass it; make sure the API Key used for the call has permission to call the target model.
AccessDenied.Unpurchased
Access to model denied. Please make sure you are eligible for using the model.
Reason:- The Alibaba Cloud Model Studio service is not activated.
Solution: Follow the steps below to activate the Alibaba Cloud Model Studio service.
-
Create an account: If you do not have an Alibaba Cloud account, you need to first register an Alibaba Cloud account.
-
Log on to the console for automatic activation: Log on to the Alibaba Cloud Model Studio console with an Alibaba Cloud primary account or a RAM account with the
AliyunBailianFullAccesspermission. After conditions such as real-name verification are met, the service is activated automatically; you do not need to click an activation button or manually confirm. If the RAM account does not have the activation permission, the primary account should grant the required permissions as described in Alibaba Cloud Model Studio RAM permissions, and then log on again and retry the call.If the message "You have not completed real-name verification" appears when you activate the service, complete real-name verification first.
Model.AccessDenied
Model access denied.
Reason: You do not have permission to call the corresponding standard model or custom model.
Solution:- Calling standard models: When you call a standard model (such as
qwen-plus) with the API Key of a sub-workspace, the sub-workspace must have the permission to call that model. For more information, see model calling authorization. - Calling custom models: After a custom model is successfully deployed, it can only be called with the API Key of the workspace it belongs to, and no model calling authorization is required.
App.AccessDenied
App access denied.
Reason: You do not have permission to access the application or model.
Solution:- Carefully confirm that access authorization has been configured for the workspace and sub-account being accessed.
- Carefully check whether the application has been published.
- Carefully verify that the passed-in APP ID and API KEY are correct.
- If the error is reported by Claude Code, use the API Key of the default workspace.
- If all of the above are correct, refresh the data, republish the application, and call again, or try recreating the agent.
Workspace.AccessDenied
Workspace access denied.
Reason: You do not have permission to access the applications or models of the workspace.
Solution:- If you are calling an application of a sub-workspace, see Workspace.
- If you are calling a model of a sub-workspace, see calling models in a sub-workspace.
- You can also use the API Key of the primary account, which has permissions for all workspaces.
Endpoint.AccessDenied
Note
In the Managed Agents API and Security API, Endpoint.AccessDenied is returned by the gateway, indicating that the workspace does not exist or access is denied.
Workspace endpoint access denied.
Reason: You may have called a deprecated model (such as historical snapshot versions like qwen-max-2025-01-25). After a model is deprecated, its calling endpoint no longer provides service and returns this error.
- Go to the model deprecation mechanism documentation to confirm whether the model you are calling has been deprecated.
- If the model has been deprecated, switch to its recommended alternative model and call again.
AllocationQuota.FreeTierOnly
The free tier of the model has been exhausted. If you wish to continue access the model on a paid basis, please disable the "use free tier only" mode in the management console.
Reason 1: A new user who has not completed verification sends a request after the free quota is exhausted.
Solution: Complete verification and top up your account before making the call.
Reason 2: The user has enabled Free Quota Only and sends a request after the free quota is exhausted.
The free quota displayed in the console is updated at minute-level intervals (you need to manually refresh the page).
Solution:
- To continue calling in the paid mode, you can turn off the Free Quota Only switch at any time without waiting for the free quota to run out; once it is turned off, you can continue calling on a pay-as-you-go basis.
- If you encounter this issue when using Coding Plan, it is usually caused by a configuration error. Coding Plan requires a dedicated Base URL and API Key. For more information, see Coding Plan QuickStart.
- If the error persists after the switch is turned off, or the console shows remaining quota but calls are still rejected, check whether your API Key has changed or become invalid. We recommend that you reset the API Key or create a new one and then test again.
- If there are no corresponding requests in the console call records, the request may not have reached the server. Check whether the client plugin configuration or the local network connection is working properly.
11900007
Applicable scope: Sandbox API
Reason: The file cannot be downloaded.
FORBIDDEN
Applies to: RAG API
Reason: You do not have permission to perform the operation.
AccountOverdue
Service suspended due to unpaid fees
Applies to: ParseX API
Reason: Service suspended due to unpaid fees.
404
ModelNotFound/ model_not_found
The provided model xxx is not supported by the Batch API.
Reason: The current model does not support Batch calls, or the model name may be misspelled.
Solution: Refer to OpenAI-compatible Batch (file input) to confirm the models that support Batch calls and their correct names.
Model can not be found. / The model xxx does not exist. / The model xxx does not exist or you do not have access to it.
Reason: The model you are accessing does not exist, or you have not activated the Alibaba Cloud Model Studio service.
Solution:-
Check the model names in the Models list to verify that the model name you entered (the value of the
modelparameter) is correct. -
Go to Models to activate the model service.
-
If you make calls through an international site API endpoint (such as
{WorkspaceId}.us-east-1.maas.aliyuncs.com), note that the list of available models varies by region. Confirm that the target model is available in that region before calling. -
If you use a dedicated deployment endpoint to call a model, also check the following two points when a ModelNotFound error occurs:
- Confirm that you use the deployment name: The
modelparameter of a dedicated deployment endpoint should be set to the deployment name (model code), not the model name. You can view the deployment name on the Dedicated Deployment page of the Model Studio console, in a format similar toqwen3.5-flash-2026-02-23-9439a8e1eafa. Calling a dedicated deployment endpoint with a model name, or using a deployment name on the standard API endpoint, will returnmodel_not_found. - Distinguish between the calling methods: Standard calls use the standard API endpoint and the model name, while dedicated deployment calls use the dedicated deployment endpoint URL and the deployment name; the two cannot be mixed. The API-KEYs for standard calls and dedicated deployment calls may also differ, and mixing them will cause an
invalid_api_keyauthentication error.
- Confirm that you use the deployment name: The
model_not_supported
Unsupported model xxx for OpenAI compatibility mode.
Reason: The current model does not support access in OpenAI-compatible mode.
Solution: Use the native DashScope method to call the model.
WorkSpaceNotFound
WorkSpace can not be found.
Reason: The workspace does not exist.
Solution: Confirm that the {WorkspaceId} entered in the Base URL is correct. {WorkspaceId} is your Model Studio workspace ID, which you can view on the Workspaces page. If the error persists, confirm that your account is a member of the workspace.
NotFound
Not found!
Reason:- The resource to query or operate on does not exist.
- When using custom hotwords, the hotword ID passed in is invalid or the corresponding hotword does not exist.
- Check whether the ID of the resource to query or operate on is incorrect.
- Check whether the hotword ID is correct, and refer to the API documentation to make calls in the correct way.
Request path not found.
Reason: When using the Fun-Music model, the service address being accessed does not exist.
Solution: Check whether the API path is correct and whether it contains any invalid characters.
AGENT_001
Applicable scope: Managed Agents API
Reason: The agent does not exist.
11900006
Applicable scope: Sandbox API
Reason: The file does not exist.
11900023
Applicable scope: Sandbox API
Reason: The file does not exist or is undergoing content verification and is temporarily unavailable.
KB_NOT_FOUND
Applies to: RAG API
Reason: The knowledge base does not exist.
DOCUMENT_NOT_FOUND
Applies to: RAG API
Reason: The document does not exist.
DATA_SOURCE_NOT_FOUND
Applies to: RAG API
Reason: The data source does not exist.
405
405
Applies to: Security API
Reason: The request method is not supported.
409
Conflict
Model instance xxx already exists, please specify a suffix.
Reason: A deployment instance with the same name already exists.
Solution: Specify a different suffix for the deployed model.
KB_NAME_CONFLICT
Applies to: RAG API
Reason: The knowledge base name already exists.
ResultNotReady
Retrieve result if job is not completed.
Applies to: ParseX API
Reason: The job is not completed and the result is not ready yet.
Suggestion: When you receive ResultNotReady, the task is not yet completed. Continue to call the corresponding result endpoint with the original biz_id.
413
11900008
Applicable scope: Sandbox API
Cause: The file exceeds the size limit.
RequestEntityTooLarge
Applicable scope: Sandbox API
Cause: The multipart request body exceeds 50 MB.
415
In the Sandbox API, this indicates that the file type is not supported, or the request body is not multipart/form-data.
11900014
Applicable scope: Sandbox API
Cause: The file type is not allowed.
11900019
Applicable scope: Sandbox API
Cause: The video format is not supported.
429
Throttling
Requests throttling triggered.
Cause: The API call triggered rate limiting.
Solution: Reduce the call frequency or retry later.
Too many fine-tune job in running, please retry later. / Only 20 fine-tune job in running or succeeded allowed per user.
Cause: Resource creation triggered a platform limit.
Solution: You can delete models that are no longer in use. To increase concurrency or retain more models, contact your business manager to apply for a quota increase.
Too many requests in route. Please try again later.
Cause: Too many requests triggered rate limiting.
Solution: Please try again later.
All models are temporarily rate-limited. Please try again in a few minutes.
Cause: When using a Coding Plan that calls multiple models through a client such as Claude Code, if all available models trigger 429 rate limiting, the client aggregates and returns this message. The underlying Model Studio server-side error codes are Throttling.RateQuota or Throttling.AllocationQuota.
Solution:- Wait a few minutes and retry; the rate limit will be lifted automatically.
- Reduce request concurrency to avoid sending too many requests within a short period.
- For a higher call frequency, see Rate limiting to apply for a quota increase.
Throttling.RateQuota/LimitRequests/limit_requests/ResourceExhausted/Too many requests
You have exceeded your request limit./Requests rate limit exceeded, please try again later. /You exceeded your current requests list.
Cause: The call frequency (RPS/RPM) triggered rate limiting.
Solution: See Rate limiting to control your call frequency.
Note: If a single call returns 429, check whether the request header X-DashScope-Async: enable is set. Some models (such as qwen-image-3.0-pro) do not support asynchronous calls; when this request header is set, even a single request returns 429. Remove the X-DashScope-Async request header, or set its value to disable, and then retry with a synchronous call. For more information, see the "Current user api does not support asynchronous calls." entry under "403-AccessDenied/access_denied" in this document.
Throttling.BurstRate/limit_burst_rate
Request rate increased too quickly. To ensure system stability, please adjust your client logic to scale requests more smoothly over time.
Cause: Before the rate limit condition is reached, a sudden surge in call frequency triggered the system stability protection mechanism.
Solution: We recommend that you optimize your client call logic and adopt a smooth request strategy (such as even-rate scheduling, exponential backoff, or request queue buffering) to spread requests evenly across the time window and avoid instantaneous spikes.
Throttling.AllocationQuota/insufficient_quota
Allocated quota exceeded, please increase your quota limit./ You exceeded your current quota, please check your plan and billing details.
Cause: The number of tokens consumed per second or per minute (TPS/TPM) triggered rate limiting.
Solution: Go to the Rate limiting document to check the model rate limit conditions and adjust your call strategy; if the default quota cannot meet your business needs, contact your business manager to apply for a quota increase.
See the FAQ to avoid triggering rate limiting.
Too many requests. Batch requests are being throttled due to system capacity limits. Please try again later.
Cause: Too many Batch requests triggered rate limiting.
Solution: Your request cannot be processed at the moment. Please retry later.
Free allocated quota exceeded.
Cause: The free quota has expired or been exhausted, and the model does not yet support pay-as-you-go billing.
Solution: Replace it with another model. For example, if the quota of the Qwen Audio model is exhausted, you can use the non-realtime (Qwen-Omni) model.
Maximum voice-clone voice limit exceeded.
Reason: When using Qwen-TTS voice cloning, the number of voices available to the primary account has exceeded the upper limit.
Solution: Please delete some voices.
Throttling.Concurrency
Too many concurrent requests.
Cause: Current concurrent requests exceed the platform’s dynamically allocated limit.
Solution: Retry shortly. The platform dynamically adjusts concurrency limits based on overall load; peak times may trigger this restriction.
Throttling.ServiceOverloaded
InternalError.Algo: An error occurred in model serving, error message is: [Too many requests.]
Cause: Network resources are currently overloaded and cannot process your request at the moment.
Solution: Please try again later.
Throttling.ResourceExhausted
InternalError.Algo: An error occurred in model serving, error message is: [Too many requests.]
Cause: Network resources are saturated; your request cannot be processed temporarily.
Solution: Please try again later.
CommodityNotPurchased
Commodity has not purchased yet.
Cause: The workspace service has not been purchased.
Solution: Purchase the workspace service first.
PrepaidBillOverdue
The prepaid bill is overdue.
Cause: The prepaid bill of the workspace is overdue.
PostpaidBillOverdue
The postpaid bill is overdue.
Cause: The model inference commodity has expired.
BudgetLimitExceeded
The budget configured in Budget Management has been exhausted. You will be unable to make further API calls until the budget limit is increased or reset.
Cause: The budget quota you set in Budget Management has been exhausted, and "Stop at budget" is enabled.
Solution: On the Budget Management page, increase the budget quota or disable "Stop at budget" to resume calls.
WarningThere is a delay before the service is stopped, and fees incurred during the delay will still be charged as normal. If the service is suspended after the budget threshold is reached and a free quota is subsequently granted, the service will not automatically resume; you need to manually adjust the budget threshold.
QUOTA_EXCEEDED
Applies to: RAG API
Cause: The tenant quota is exceeded.
RATE_LIMITED
Applies to: RAG API
Cause: API rate limiting.
430
Audio.DecoderError
Decoder audio file failed.
Cause: Decoding of the audio file for CosyVoice Voice Cloning failed.
Solution: Use tools (such as ffprobe and mediainfo) or commands (such as the file command on Linux/macOS) to check the actual encoding format of the audio file and ensure it meets the requirements.
Audio.FileSizeExceed
File too large
Cause: The audio file for CosyVoice Voice Cloning exceeds the size limit.
Solution: The audio file for voice cloning must be within 10 MB.
Audio.AudioRateError
File sample rate unsupported
Cause: The sample rate of the audio file for CosyVoice Voice Cloning is not supported.
Solution: Set the sample rate to 16KHz or higher.
Audio.AudioSilentError
Silent file unsupported.
Cause: The audio file for CosyVoice Voice Cloning is silent, or its non-silent part is too short.
Solution: Keep the audio duration between 10~15 seconds if possible, and include at least one continuous speech segment longer than 5 seconds.
500
InternalError/internal_error
An internal error has occured, please try again later or contact service support.
Cause: Internal error.
Solution:-
If you use the (Qwen-Omni) model and the API requires streaming output, set
stream=true. -
If you use CosyVoice Voice Cloning, the possible causes are:
- The audio file is not standardized, for example, the voice itself has issues such as noise or fluctuating volume. Record the audio again following the Recording Guide and retry.
- The recording file URL is inaccessible. Follow the instructions in CosyVoice Voice Cloning/Design API and retry.
- The recording is too long. Select a recording of 10~15 seconds if possible. When recording, read continuously and include at least one continuous speech segment longer than 5 seconds.
Internal server error!
Cause: Internal algorithm error.
Solution: Retry later.
audio preprocess server error
When using CosyVoice Voice Cloning:
-
Cause: The audio file is not standardized, for example, the voice itself has issues such as noise or fluctuating volume.
Solution: Record the audio again following the Recording Guide and retry.
-
Cause: The recording file URL is inaccessible,
Solution: Follow the instructions in CosyVoice Voice Cloning/Design API and retry.
-
Cause: The recording is too long.
Solution: Select a recording of 10~15 seconds if possible. When recording, read continuously and include at least one continuous speech segment longer than 5 seconds.
request asr failed
Cause: When using CosyVoice Voice Cloning, the audio file is not standardized: it contains no valid human voice, the voice is unclear, or there is heavy noise.
Solution: Record the audio again following the Recording Guide and retry.
Remote cancelled grpc stream.
Cause: The voice used in speech synthesis does not exist.
Solution: Check the voice parameter and make sure the correct voice name is specified. For available voices, see Real-time Speech Synthesis (Qwen-Audio-TTS/CosyVoice).
An internal error has occurred, please try again later.
Applies to: ParseX API
Cause: Internal error.
InternalError.FileUpload
oss upload error.
Cause: File upload failed.
Solution: Check the OSS configuration and network.
InternalError.Upload
Failed to upload result.
Cause: Failed to upload the generated result.
Solution: Check the storage configuration or try again later.
InternalError.Algo
inference internal error.
Cause: Service exception.
Solution: Try again first to rule out transient issues.
Expecting ',' delimiter: line x column xxx (char xxx)
Cause: The JSON data generated by the model is invalid, so the tool call cannot be initiated.
Solution: We recommend switching to the latest model or optimizing the prompt before retrying.
Missing Content-Length of multimodal url.
Cause: The response header of the URL request is missing the Content-Length field.
Solution: If the problem persists, try using a different image URL.
View the Content-Length field
- Open a browser (such as Chrome or Firefox).
- Open the developer tools (usually press F12 or right-click and select "Inspect").
- Switch to the Network tab.
- Enter the image URL in the address bar and access it.
- Find the corresponding request, view the Headers section, and look for the Content-Length field in the Response Headers section.
An error occurred in model serving, error message is: [Request rejected by inference engine!]
Cause: An error occurred on the underlying server of the model service.
Solution: Retry later.
An internal error has occured during algorithm execution.
Cause: An error occurred during algorithm execution.
Solution: Retry later.
Inference error: Inference error.
Cause: An inference error occurred.
Solution: Check whether the input image file is corrupted, or check the quality of the person image (it must contain a complete and clear face).
Role must be in [user, assistant]
Cause: When using the Qwen-MT model, the messages array contains messages with a role other than user.
Solution: Ensure that the messages array contains only one element, and that the element must be a user message.
Embedding_pipeline_Error: xxx
Cause: An error occurred during image or video preprocessing.
Solution: Confirm that the uploaded image or video and the request code meet the requirements, and then retry.
Receive batching backend response failed!
Cause: Internal service error.
Solution: Retry later.
[music]Receive batching backend response failed!
Cause: The service exceeded the concurrency limit when using the Fun-Music model.
Solution: Reduce the number of concurrent requests and retry.
Other kinds of server error.
Cause: An unknown internal system exception occurred while using the Fun-Music model.
Solution: We recommend providing the request ID to technical support for troubleshooting.
An internal error has occured during execution, please try again later or contact service support. / algorithm process error. / inference error. / An internal error occurs during computation, please try this model later.
Cause: Internal algorithm error.
Solution: Retry later.
list index out of range
Cause: The last element in the messages array must be a user message.
Solution: Adjust the order of the messages array to ensure that the last element is {"role": "user", ...}.
InternalError.Timeout
An internal timeout error has occured during execution, please try again later or contact service support.
Cause: After an asynchronous task is submitted, no result is returned within 3 hours, causing a timeout.
Solution: Check the task execution status, or contact technical support.
InternalError.Configuration
Internal configuration error.
Cause: Server-side configuration exception.
Solution: Try again later, or contact technical support.
InternalError.DataInspection
Content moderation service unavailable.
Cause: The content moderation service is temporarily unavailable.
Solution: Retry later.
InternalError.TranslationFailed
Translation failed.
Cause: Translation processing failed.
Solutions: Retry later. If the error persists, check the input content or contact technical support.
SystemError
An system error has occured, please try again later.
Cause: A system error.
Solutions: Retry later. If you use Calling a Model Studio application, refer to the sample code or documentation to check whether the code is written correctly. If the problem still cannot be identified, join the DING group provided at the bottom of the Spring AI Alibaba official website and contact the developers for troubleshooting.
ModelServiceFailed
Failed to request model service.
Cause: Failed to call the model service.
Solution: Retry later.
RequestTimeOut
Request timed out, please try again later. / Response timeout! / I/O error on POST request for "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions": timeout
Reason:- The request timed out when calling a large model, and the timeout error threshold is 300 seconds.
- When using speech recognition (Paraformer), no audio is sent to the server for a long time, or silent audio is sent for a long time.
- When calling an image generation or editing model, the processing time exceeds the limit due to a large image size or high processing complexity.
- Send requests using streaming output. For more information, see Streaming output.
- Set the request parameter
heartbeattotrue, or end the recognition task in time. - When calling an image model, try reducing the image resolution, simplifying the editing requirements, or retrying later.
When calling a Qwen model, the generated content is returned in the response body, and no timeout error is reported. For more information, see Text generation.
ResponseTimeout
Response stream timeout
Cause: An internal execution timeout occurred when using the Fun-Music model.
Solutions: Retry the call.
InvokePluginFailed
Failed to invoke plugin.
Cause: Failed to call the plugin.
Solutions: Check the plugin configuration and availability.
AppProcessFailed
Failed to proceed application request.
Cause: Failed to process the application workflow.
Solutions: Check the application configuration and workflow nodes.
RewriteFailed
Failed to rewrite content for prompt.
Cause: Failed to call the large model for prompt rewriting.
Solution: Retry later.
RetrivalFailed
Failed to retrieve data from documents.
Cause: Document retrieval failed.
Solutions: Check the document index and retrieval configuration.
11900001
Applicable scope: Sandbox API
Cause: File upload failed.
EMBEDDING_FAILED
Applies to: RAG API
Cause: The embedding service is abnormal.
ProcessingFailed
An internal error occurred in the processing engine.
Applies to: ParseX API
Cause: An internal error occurred in the processing engine.
ProcessingTimeout
The processing timed out.
Applies to: ParseX API
Cause: Processing timed out.
BatchProcessingFailed
The batch processing failed.
Applies to: ParseX API
Cause: Batch processing failed.
CustomerOssWriteFailed
Failed to write to the customer OSS.
Applies to: ParseX API
Cause: Failed to write to the customer OSS.
ServiceUnavailable
Too many requests. Your requests are being throttled due to system capacity limits. Please try again later.
Cause: Network resources are saturated; your request cannot be processed temporarily.
Solution: Try again later.
502
SYNC_SOURCE_UNREACHABLE
Applies to: RAG API
Cause: Failed to connect to the data source.
503
ServiceUnavailable
Too many requests. Your requests are being throttled due to system capacity limits. Please try again later.
Cause: Network resources are saturated; your request cannot be processed temporarily.
Solution: Try again later.
ModelUnavailable
Model is unavailable, please try again later.
Cause: Model temporarily unavailable.
Solution: Retry later.
ServiceQuotaExhausted
The service quota is exhausted.
Applies to: ParseX API
Cause: Service quota exhausted.
12000093
Applies to: Security API
Cause: Cloud security service error.
Action: The affected capability is temporarily unavailable, retry later.
12000094
Applies to: Security API
Cause: Alert query failed.
Action: Retry later.
504
GatewayTimeout.InputDownload
Input file download timed out.
Cause: The server timed out while downloading the file referenced by fileUrl.
Solution: Verify the URL is reachable, the file size is within limits, and the hosting service is stable; then retry, optionally with a more reliable URL.
RETRIEVAL_TIMEOUT
Applies to: RAG API
Cause: Retrieval timed out. It is recommended to lower top_k or use a smaller rerank model.
SDK, connection, and other errors
The following entries cover SDK exceptions, connection issues, and other API scenarios. Match the full error message and follow the corresponding entry. WebSocket close codes and HTTP status codes are different identifiers.
APIConnectionError (client-side network error, no HTTP status returned)
Connection error.
Cause: Local network issue, usually because a proxy is enabled.
Solution: Disable or restart the proxy.
The operation was canceled. / Connection reset
Cause: The client timeout setting is too short or the network fluctuates, which can cause the request to be canceled (such as The operation was canceled) or the connection to be reset (such as Connection reset).
- Increase the client timeout setting appropriately (for example, to 50 seconds or longer).
- Use the
curlcommand to test network connectivity to rule out local network issues.
SDK Errors
error.AuthenticationError: No api key provided. You can set by dashscope.api_key = your_api_key in code, or you can set it via environment variable DASHSCOPE_API_KEY= your_api_key.
Cause: API Key not provided when using DashScope SDK.
Solution: See Configuring API Key as Environment Variable for details.
openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
Cause: API Key not passed when using OpenAI SDK.
Solution:-
Pass API Key via environment variable (recommended)
Set
DASHSCOPE_API_KEYas an environment variable (see Configuring API Key as Environment Variable), then initialize theclientby reading it withos.getenv:client = OpenAI(api_key=os.getenv("DASHSCOPE_API_KEY"),...) -
Hardcode API Key (testing only)
Directly pass the API Key to the
api_keyparameter:client = OpenAI(api_key="sk-...", ...)Note: This poses a security risk; do not use in production.
Bad Request for url:xxx
Cause: In Python Requests, response.raise_for_status() raises HTTPError for an HTTP error response. The exception retains response, including the server response body.
Solution: After catching HTTPError, read status_code and text from the original response or the exception's response. Use response.json() to read structured error details only after confirming that the body can be parsed as JSON. Handle transport failures that produce no HTTP response, such as connection failures or timeouts, separately; do not assume that a server response body is available.
Cannot resolve symbol 'ttsv2'
Cause: If using real-time speech synthesis (Qwen-Audio-TTS/CosyVoice), this issue arises from an outdated DashScope SDK version.
Solution: Install the latest DashScope SDK.
NetworkError
NoApiKeyException: Can not find api-key.
Cause: Environment variable configuration did not take effect.
Solution: Restart your client or IDE and retry. See FAQ for more scenarios.
ConnectException: Failed to connect to dashscope.aliyuncs.com
Cause: Local network environment is abnormal.
Solution: Check local network—for example, HTTPS access blocked by certificate issues or incorrect firewall settings. Try a different network or server.
InputRequiredException: Parameter invalid: text is null
Cause: When using real-time speech synthesis (Qwen-Audio-TTS/CosyVoice), no text was sent for synthesis.
Solution: Assign a value to the text parameter when calling the speech synthesis API.
MultiModalConversation.call() missing 1 required positional argument: 'messages'
Cause: Current DashScope SDK version is outdated.
Solution: Install the latest DashScope SDK.
mismatched_model
The model 'xxx' for this request does not match the rest of the batch. Each batch must contain requests for a single model.
Cause: In a single Batch task, all requests must use the same model.
Solution: Check your input file against OpenAI compatible - Batch (file input).
duplicate_custom_id
The custom_id 'xxx' for this request is a duplicate of another request. The custom_id parameter must be unique for each request in a batch.
Cause: In a single Batch task, each request ID must be unique.
Solution: Check your input file against OpenAI compatible - Batch (file input) to ensure all request IDs are unique.
Upload file capacity exceed limit. / Upload file number exceed limit.
Cause: File upload failed because the Alibaba Cloud Model Studio storage space under your account is full or nearly full.
Solution: Delete unnecessary files via the OpenAI compatible - File interface to free space. Current storage supports up to 10,000 files totaling no more than 100 GB.
WebSocket Errors
Invalid payload data
Cause: When using the speech recognition WebSocket API, the JSON sent to the server is invalid.
Solution:- When sending the
run-taskcommand, check ifpayloadcontains"input": {}. If not, add it. - Confirm you sent a complete
finish-taskcommand following its format specification. Do not send custom content (e.g.,{ "input": { "end_of_stream": true } }).
The decoded text message was too big for the output buffer and the endpoint does not support partial messages
Cause: When using streaming speech recognition (Paraformer), the service returned recognition results that are too large.
Solution: Send audio in segments—about 100 ms per segment, with data size between 1 KB and 16 KB.
TimeoutError: websocket connection could not established within 5s. Please check your network connection, firewall settings, or server status.
Cause: If using speech synthesis (CosyVoice), the WebSocket connection could not be established within 5 seconds.
Solution: Check local network, firewall settings, or try a different network or server.
unsupported audio format:xxx
Cause: When using CosyVoice voice cloning, the uploaded audio format does not meet model requirements.
Solution: Audio format must be WAV (16bit), MP3, or M4A. Do not rely solely on file extensions; use tools (such as ffprobe, mediainfo) or commands to verify the actual encoding format.
internal unknown error
Cause: CosyVoice voice cloning audio file format may not meet requirements.
Solution: Audio format must be WAV (16bit), MP3, or M4A. Use tools to verify the actual encoding format.
Invalid backend response received (missing status name)
Cause: When using the Paraformer recorded file recognition RESTful API, request parameters are misspelled.
Solution: Check code against API documentation.
NO_INPUT_AUDIO_ERROR
Cause: No valid speech detected.
Solution: If using Paraformer real-time speech recognition, troubleshoot as follows:
- Check for audio input.
- Check audio format (supported: pcm, wav, mp3, opus, speex, aac, amr).
SUCCESS_WITH_NO_VALID_FRAGMENT
Cause: If using Paraformer recorded file recognition, the recognition result query succeeded, but the VAD module detected no valid speech.
Solution: Check if the recording contains valid speech. If it’s all silence, no recognition result is normal.
ASR_RESPONSE_HAVE_NO_WORDS
Cause: If using Paraformer recorded file recognition, the recognition result query succeeded, but the final result is empty.
Solution: Check if the recording contains valid speech, or if valid speech consists only of fillers and the disfluency_removal_enabled parameter filtered them out.
FILE_DOWNLOAD_FAILED
Cause: If using Paraformer recorded file recognition, the file to be recognized failed to download.
Solution: Check if the recording file path is correct and accessible via the public network.
FILE_CHECK_FAILED
Cause: If using Paraformer recorded file recognition, file format is incorrect.
Solution: Check if the recording file is single-track/dual-track WAV or MP3 format.
FILE_TOO_LARGE
Cause: If using Paraformer recorded file recognition, the file to be recognized is too large.
Solution: Check if the recording file exceeds 2 GB; if so, split it.
FILE_NORMALIZE_FAILED
Cause: If using Paraformer recorded file recognition, file normalization failed.
Solution: Check if the recording file is corrupted or playable.
FILE_PARSE_FAILED
Cause: If using Paraformer recorded file recognition, file parsing failed.
Solution: Check if the recording file is corrupted or playable.
MKV_PARSE_FAILED
Cause: If using Paraformer recorded file recognition, MKV parsing failed.
Solution: Check if the recording file is corrupted or playable.
FILE_TRANS_TASK_EXPIRED
Cause: If using Paraformer recorded file recognition, the recognition task expired.
Solution: TaskId does not exist or has expired. Resubmit the task.
REQUEST_INVALID_FILE_URL_VALUE
Cause: If using Paraformer recorded file recognition, the file_link parameter is invalid.
Solution: Confirm the file_url parameter format is correct.
CONTENT_LENGTH_CHECK_FAILED
Cause: If using Paraformer recorded file recognition, content-length check failed.
Solution: Check that the HTTP response’s content-length matches the actual file size when downloading the recording.
FILE_404_NOT_FOUND
Cause: If using Paraformer recorded file recognition, the file to download does not exist.
Solution: Check if the file URL is correct.
FILE_403_FORBIDDEN
Cause: If using Paraformer recorded file recognition, no permission to download the recording.
Solution: Check file access permissions.
FILE_SERVER_ERROR
Cause: If using Paraformer recorded file recognition, the file server is unavailable.
Solution: Retry later or check file server status.
AUDIO_DURATION_TOO_LONG
Cause: If using Paraformer recorded file recognition, the file duration exceeds 12 hours.
Solution: Split the audio into segments and submit multiple recognition tasks. Use tools like FFmpeg to split.
DECODE_ERROR
Cause: If using Paraformer recorded file recognition, audio file info detection failed.
Solution: Confirm the download link points to a supported audio format.
CLIENT_ERROR-[qwen-tts:]Engine return error code: 411
Cause: When using Qwen-TTS real-time speech synthesis with model qwen-tts-vc-realtime-2025-08-20, you used a default timbre. This model supports only cloned timbres.
Solution: Use a timbre generated via voice cloning, not a default timbre.
NO_VALID_AUDIO_ERROR
Cause: When using speech recognition (Paraformer), the audio to be recognized is invalid.
Solution: Check audio format, sample rate, etc., to ensure requirements are met.
InvalidParameter: task can not be null
Cause: When using CosyVoice speech synthesis WebSocket API, the run-task or finish-task payload lacks an input field, or the continue-task payload lacks input.text.
Solution:- Check run-task command: ensure payload contains
"input": {}(empty object); do not omit input. - Check continue-task command: ensure payload.input contains a non-empty text field.
- Check finish-task command: ensure payload contains
"input": {}.
close code 1007 Model not found
Cause: When calling a realtime model (such as Qwen3-Omni-Flash-Realtime) over the WebSocket protocol, the model name in the request is incorrect, or the model service has not been activated. The server closes the connection with close code 1007 and the reason is Model not found.
- Compare against model names in the Model List to verify your input (value of the
modelparameter). A realtime model name carries a suffix such as-realtime, which must not be omitted or altered. - Go to the Model Marketplace to confirm that the model service is activated. If it is not, activate it and then retry.
Coding Plan
Connection error
Cause: Base URL typo or network issue.
Solution: Check Base URL spelling and network connection.
hour allocated quota exceeded
Cause: 5-hour request quota exhausted.
Solution: Quota resets automatically after 5 hours.
week allocated quota exceeded
Cause: Weekly request quota exhausted.
Solution: Quota resets at 00:00:00 (UTC+8) every Monday.
month allocated quota exceeded
Cause: Monthly request quota exhausted.
Solution: Quota resets at 00:00:00 (UTC+8) on the subscription day each month.
concurrency allocated quota exceeded
Cause: Current concurrent requests exceed the platform’s dynamically allocated limit.
Solution: Retry shortly. The platform dynamically adjusts concurrency limits based on overall load; peak times may trigger this restriction.
usage allocated quota exceeded. please try again later.
Cause: Beyond call count limits, Coding Plan also evaluates short-term resource consumption. High short-term consumption triggers temporary rate limiting.
Solution: Usually recovers within an hour. Split large tasks into smaller ones and submit over time.
Agent API responses and retries
- Managed Agents API: Business errors return
type,error.code,error.message, andrequest_id;request_idmatches thex-request-idresponse header. Authentication and workspace-routing errors come directly from the gateway in the flatrequest_id,code,messagestructure. Userequest_idto locate the request. - Sandbox API: Error responses contain
code,message, andrequestID. E2B-compatible endpoints follow the native E2B error definitions closely; see the official E2B documentation. - RAG API: The common response contains
error.code,error.message,error.param, andrequest_id. Every response includesrequest_id; include it when contacting support. Follow the retry table below. - ParseX API: The
request_id,code, andmessagefields in an error response are allstringvalues. The request ID can locate the failed request. - Security API: Business errors return
type,error.code,error.message, andrequest_id;request_idmatches thex-request-idresponse header. Authentication and workspace-routing errors come directly from the gateway in the flatrequest_id,code,messagestructure. Userequest_idto locate the request. - Flow Agent API: For the error response conventions of the two endpoint types and HTTP status descriptions, see Flow Agent API errors.
- Memory API: For HTTP statuses, an error response example, and retry strategies, see Memory API errors.
RAG API retry strategy: Retry HTTP 504 up to 2 times and other 5xx errors up to 3 times. See the table below for intervals.
| Error type | Retry? | Interval and limit |
|---|---|---|
| 4xx (except rate limits) | No | — |
| 429 rate limited | Yes | Honor Retry-After, or back off 1s / 2s / 4s |
| 504 timeout | Yes | Retry immediately, up to 2 times |
| Other 5xx | Yes | 1s / 2s / 4s, up to 3 retries |
Sandbox API response example
The following is an example error response from the Sandbox API:
{
"code": 100004,
"message": "参数缺失",
"requestID": "request-id"
}