Error codes
This topic describes common error messages you might encounter when using Alibaba Cloud Model Studio and provides solutions.
Quick troubleshooting
If a call fails, use the following table to identify common issues, then check the error code and error message in the response for the specific cause and solution.
1. Find the error cause
| Common issue | Error Details | Troubleshooting and handling |
|---|---|---|
| 401: Authentication failed | 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 from the error message. If 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. Correct them and call again. |
| 5xx: Service processing failure | InternalError, ServiceUnavailable | Follow the solutions in the corresponding error entries: if input or configuration must be corrected, correct it and call again; if a later retry is recommended, wait and then retry. |
| No HTTP response: connection failure or timeout | Client connection errors | Based on the client exception details, 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 completing the corrections, send a request first to confirm that the returned result is normal.
- Throttling or retryable transient errors: When throttled, reduce the request frequency or concurrency. When retrying, increase the interval gradually and set a maximum number of retries and a total time limit; stop retrying once either limit is reached.
- Requests with an 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) before deciding whether to resubmit. If the execution status cannot be confirmed, contact technical support to avoid creating duplicate resources or running duplicate tasks.
- Resume business calls: After confirming that requests return normal results, 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 methods above, or the execution status of the request cannot be confirmed, 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). When using Python Requests, see Bad Request for url for how to read response information.
- Occurrence time and calling environment: Occurrence time with 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: If no HTTP response is received, provide the exception type, the calling phase where the exception occurred, and related logs.
- Actions already taken: Modified configurations, retry details, and results after handling.
Before submitting, remove API Keys, 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, and you can get solutions by entering error messages.
Example question:
报错信息:'code': 'Arrearage', 'param': None, 'message': 'Access denied, please make sure your account is in good standing.', 'type': 'Arrearage'}帮我看下什么原因
Example analysis result:
The analysis indicates that the account is denied access due to overdue payment. Possible causes include an overdue account, an insufficient balance, or a delayed top-up. It is recommended that you log on to the Alibaba Cloud console, go to the Expenses and Costs page to check the account status, and complete a top-up. Wait a few minutes for the system to update, and 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) contained in the Header or Body of the API response. We recommend recording this value when a call fails, for self-service troubleshooting or when submitting a ticket.
If the Request ID was not recorded, you can log on to the Monitoring page and query the call records (including the Request ID, status code, error code, request and response content, and so on) on the Logs tab of the target model.
Prerequisites:
- Inference logs must be enabled first by the primary account or an authorized RAM user.
- Only some models in the China (Beijing), Singapore, and US (Virginia) regions are supported.
- Data has a delay of minutes, 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.Cause: 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 is operating a workspace it does not have permission for.
Solution: (1) Please 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
Cause: The current RAM sub-account does not have permissions 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.
Solution: 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
invalid_format
unsupported json type
Cause: The data types, nesting, or structure of request fields do not meet the API requirements.
Solution: Check the field types and request structure against the API documentation.
invalid_sampling_config
Request validation failed: sampling_config.max_new_tokens must be greater than 0. Current value: 〈request value〉
Cause: A parameter is outside the range allowed by the model.
Solution: Correct the parameter indicated in the error message and resubmit. For example, the maximum number of output tokens must be greater than 0.
invalid_request
Request validation failed: Input token number is 0
Cause: The input is empty.
Solution: Check the request content and required parameters, and provide nonempty input.
Streaming generation is not supported. Set stream to false.
Cause: The selected model does not support streaming output.
Solution: Set stream=false and resubmit.
context_length_exceeded
Request validation failed: request->getInputTokenNum() must be smaller than max_model_seq_len_, 〈input token count〉 vs 〈model length limit〉
Cause: The input token length exceeds the context limit supported by the model.
Solution: Shorten the input or split the request, and reserve enough token space for the model output.
image_size_exceeded
image size exceeds the limit
Cause: The image width, height, or total pixel count exceeds the range supported by the model.
Solution: Reduce the image dimensions or resolution and resubmit.
image_file_size_exceeded
image file size exceeds the limit
Cause: The image file size in bytes exceeds the limit.
Solution: Compress or re-encode the image and resubmit.
invalid_image_url
image url error
Cause: The image URL is invalid, expired, or inaccessible to the server.
Solution: Make sure the URL is publicly accessible, has not expired, and directly returns the image content.
invalid_image_format
invalid image format
Cause: The image format is invalid, the file is corrupted, or the content cannot be parsed as an image.
Solution: Make sure the file opens correctly, and re-encode it in an image format supported by the model.
invalid_image_base64
image base64 error
Cause: The image Base64 encoding is incomplete, malformed, or inconsistent with the image type.
Solution: Generate a complete Base64 Data URL from the original image.
image_count_exceeded
input images numbers exceed max input image number 〈image count limit〉
Cause: The number of images in a single request exceeds the model limit.
Solution: Reduce the number of images or split them into multiple requests.
image_token_mismatch
input images number for urls/base64 not match with prompt
Cause: The image count, order, or correspondence between images and request content is inconsistent.
Solution: Check the image count, order, and content structure in the request and resubmit.
image_cache_id_mismatch
Cause: The image information in the current request does not match the corresponding request content.
Solution: Rebuild the request.
InvalidParameter
parameter.enable_thinking must be set to false for non-streaming calls/ parameter.enable_thinking only support stream call
Cause: A thinking mode model was called using non-streaming output.
Solution: Please set the enable_thinking parameter to false, or switch to streaming output when calling a thinking mode model.
The thinking_budget parameter must be a positive integer and not greater than xxx
Cause: The thinking_budget parameter is not within the range of valid values.
Solution: Please refer to 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.
Cause: The model only supports streaming output, but streaming output was not enabled when calling it.
Solution: Please call the model using streaming output.
This model does not support enable_search.
Cause: The current model does not support the web search capability, but the enable_search parameter was specified as true.
Solution: Please call a model that supports the web search capability.
The currently set language is not supported yet!
Cause: When using a Qwen-MT model, the source_lang or target_lang passed in is in the wrong format, or is not among the supported languages.
Solution: Please pass in an English name or language code in the correct format.
The incremental_output parameter must be "true" when enable_thinking is true
Cause: When thinking mode is enabled, the model only supports incremental streaming output, but the incremental_output parameter was not set to true.
Solution: Please 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.
Cause: The model only supports incremental streaming output, but the incremental_output parameter was not set to true.
Solution: Please 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)
Cause: The length of the input content exceeds the model's limit when calling the model.
Solution:- If you call via code, please 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 history, which can easily exceed the model's limit. Once the limit is exceeded, please start a new conversation.
Range of max_tokens should be [1, xxx]
Cause: The max_tokens parameter is not set within the range of [1, the model's maximum output tokens].
Solution: For the upper limit of max_tokens, refer to "maximum output tokens" in the model list documentation.
Temperature should be in [0.0, 2.0)/'temperature' must be Float
Cause: The temperature parameter is not set within the [0.0, 2.0) range.
Solution: 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
Cause: The top_p parameter is not set within the (0.0, 1.0] range.
Solution: 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
Cause: The top_k parameter is set to a number less than 0.
Solution: Set the top_k parameter to a number greater than or equal to 0.
Repetition_penalty should be greater than 0.0
Cause: The repetition_penalty parameter is set to a number less than or equal to 0.
Solution: Set the repetition_penalty parameter to a number greater than 0.
Presence_penalty should be in [-2.0, 2.0]
Cause: 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]
Cause: The n parameter is not set within the range of [1, 4].
Solution: Set the n parameter within the [1, 4] range.
Range of seed should be [0, 9223372036854775807]
Cause: When using the DashScope protocol, the seed parameter is not set within the range of [0, 9223372036854775807].
Solution: Set the seed parameter within the [0, 9223372036854775807] range.
Request method 'GET' is not supported.
Cause: The current API does not support the GET request method.
Solution: Check 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"
Cause: No Assistant Message was added to the messages array during tool calling.
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"
Cause: 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.
Cause: The request body format does not meet the API requirements.
Solution: Check the request body to ensure it is a valid JSON string. Common issues include: extra ,, unclosed brackets, unclosed quotes, etc.
Incorrect example (the text field lacks 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.
Cause: Plain text 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.
Cause: When sending the request, the content parameter is not specified, such as {"role": "user"}.
Solution: Specify the content parameter, such as {"role": "user","content": "Who are you"}.
Either "prompt" or "messages" must exist and cannot both be none
Cause: When calling the model, neither the messages parameter nor the prompt parameter (to be deprecated) is specified. If the error occurs after the messages parameter is specified, it may be due to a format error. For example, when using DashScope-HTTP, messages must be placed inside the input object instead of alongside 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 its position is correct.
'messages' must contain the word 'json' in some form, to use 'response_format' of type 'json_object'.
Cause: When using structured output, the prompt does not contain the json keyword.
Solution: Add json (case-insensitive) to the prompt, such as "Please output in json format".
Json mode response is not supported when enable_thinking is true
Cause: The model's thinking mode is enabled when 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]
Cause: 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.
Cause: The specified response_format parameter does not meet the requirements.
Solutions: 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.
Reason: Some models (such as qwen3.7-plus) do not allow the enable_thinking parameter to be set 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
Reason: The request asks for audio output, but streaming output is not enabled.
Solutions: Set the stream parameter to true to enable streaming output.
tool_choice is one of the strings that should be ["none", "auto"]
Reason: The tool_choice parameter specified when initiating Function Calling is invalid.
Solutions: Specify "auto" (the model autonomously selects tools) or "none" (tools are forcibly disabled).
Model not exist.
Reason: The specified model parameter does not exist or is in an incorrect format.
- Check the model name format: Verify whether 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.
Reason: The model service you called is not activated. When you call 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. After the usage conditions are met, the system activates the service automatically, and then you can retry the call.
The result_format parameter must be "message" when enable_thinking is true
Reason: When calling a thinking-mode model, the result_format parameter is not set to "message".
Solutions: Set the result_format parameter to "message".
The audio is empty
Reason: The input audio is too short, resulting in insufficient sampling points.
Solutions: Increase the duration of the audio.
File parsing in progress, please try again later.
Reason: When using the Qwen-Long model, file parsing is not complete.
Solutions: 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.
Reason: The stop parameter does not conform to the str, list[str], list[int], or list[list[int]] format.
Solutions: 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.
Reason: When calling an Embedding model, the number of texts exceeds the model limit.
Solutions: Refer to the batch size information of the model in the Embedding documentation and control the number of input texts.
Invalid file [id:file-fe-**********].
Reason: The provided file-id is invalid; for example, it is entered incorrectly or it belongs to an Alibaba Cloud account other than the current one.
Solutions: Use OpenAI-compatible File to check whether the file-id is valid, or upload a file again through OpenAI-compatible File to obtain a new file_id and then make the call.
[] is too short
Reason: The entered messages is an empty array.
Solutions: Add a message before initiating the request.
The tool call is not supported.
Reason: The model in use does not support the tools parameter.
Solutions: 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.
Reason: Repetitive tool calls are detected in the conversation history: tool calls with exactly the same name and parameters appear repeatedly in multiple consecutive turns, and the model may be stuck in a loop. The HTTP status code for this error is 400 and the error code is InternalError.Algo.InvalidParameter.
- After each tool call, append the tool execution result to the
messagesarray as a Tool Message before initiating the next round of requests, so that the model can proceed accordingly instead of issuing the same call again. - Check whether the tool returns results normally; if the tool keeps returning the same or invalid results, add an upper limit on tool call count or termination logic on the application side to avoid infinite loops.
- If necessary, optimize the prompt to clarify the conditions for task completion and prevent the model from repeatedly issuing 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...)
Reason: 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 well-formed object (such as {"type": "text", "text": "..."}, {"type": "image_url", ...}); the error is triggered if the array mixes in numbers, boolean values, nested arrays, or objects whose type value is not supported. The HTTP status code for this error 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 the multi-turn conversation history) contains multimodal content elements such as images (image_url), this error is also triggered because text-only models do not support modality inputs like images (in some integration tools/agents, this error may be reported as messages such as "the model provider returned empty content").
- Text-only models: Set
contentto a string; do not pass an array or other types. If your business requires multimodal inputs such as images, switch to a multimodal model (such as the Qwen-VL or Qwen3-VL series); if you need to 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, nested arrays, or elements that lacktypeor have an invalidtypevalue.
Required parameter(xxx) missing or invalid, please check the request parameters.
Cause: The API call parameters are invalid.
Solution: 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 is not specified when calling the CreateIndex API, causing a subsequent error from the SubmitIndexJob API. 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
Cause: When using recorded file recognition of speech recognition (Paraformer), the request parameter file_urls is not assigned.
Solution: 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.
Cause: When using a vision, omni, or audio understanding model, the URL or local path of the input data is invalid or does not meet the requirements.
Solution:-
URL input: The URL must start with
http://,https://, ordata:. If it starts withdata:, the Base64-encoded data must be preceded by"base64". -
Local path input: The path must start with
file://. -
Temporary URL input:
- For HTTP calls, make sure the request header includes the parameter
X-DashScope-OssResourceResolve: enable. - For SDK calls: Only the DashScope SDK is supported; do not use the OpenAI SDK.
- For HTTP calls, make sure the request header includes the parameter
Input should be a valid dictionary or instance of GPT3Message
Cause: The format of the messages field does not meet the requirements, for example, mismatched brackets or missing required key-value pairs.
Solution: Check whether the JSON structure of the messages field is correct.
Value error, contents is neither str nor list of str. : input.contents
Cause: When using an Embedding model, the input is neither a string nor an array of strings.
Solution: Change the input format to a string or a list of strings.
No backend server available
Cause: The backend service of Model Studio 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 payment. If there is an overdue payment, top up in time; the top-up takes effect a few minutes later.
- Use
curlorpingto test the connectivity from the local network todashscope.aliyuncs.comto rule out network or firewall interception. - Log on to the Alibaba Cloud Model Studio console to 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.
Cause: The Qwen-Long model can only process plain text files (TXT, DOCX, PDF, EPUB, MOBI, MD) and does not support images or scanned documents.
Solution: To extract, analyze, and summarize text from image content, you can use the Qwen-VL model.
File [id:file-fe-**********] cannot be found.
Cause: This occurs only in Qwen-Long model conversation scenarios, when the OpenAI file-compatible API is called to delete the related file within a very short time after a conversation request is initiated.
Solution: Wait until the model finishes the conversation before deleting the related files.
Too many files provided.
Cause: The number of file-ids provided exceeds the limit.
Solution: Ensure that the number of file-ids is less than 100.
File [id:file-fe-**********] exceeds size limit.
Cause: The file size exceeds the limit.
Solution: Ensure that the file is smaller than 150 MB.
File [id:file-fe-**********] exceeds page limits (15000 pages).
Cause: The number of file pages exceeds the limit.
Solution: Ensure that the file has fewer than 15,000 pages.
File [id:file-fe-**********] content blank.
Cause: The file content is empty.
Solution: Ensure that the file content is not empty.
Total message token length exceed model limit (10000000 tokens).
Cause: The total input length exceeds 10,000,000 tokens.
Solution: Ensure that 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).
Cause: When using Qwen VL models to input video as an image list, the number of images does not meet the requirements.
Solution: Qwen3-VL and Qwen2.5-VL series models require 4-512 images; other models require 4-80 images. For more information, see Image and video understanding.
Exceeded limit on max bytes per data-uri item : 10485760'. / Multimodal file size is too large
Cause: The local image or video passed to multimodal models (Qwen-VL, QVQ, Qwen-Omni) exceeds the size limit.
Solution:-
Local file: A single file must not exceed 10 MB after Base64 encoding.
-
File URL: Image files must not exceed 10 MB; for video files,
- Qwen3-VL and qwen3-vl-max: no more than 2GB;
- qwen3-vl-plus series: no more than 1GB;
- Other models: no more than 150MB.
For compressing file size, see How do I compress an image or video to meet the size requirements?
Input should be 'Cherry', 'Serena', 'Ethan' or 'Chelsie': parameters.audio.voice
Cause: The voice parameter is incorrectly specified when using Qwen-Omni or Qwen-TTS.
Solution: Specify one of 'Cherry', 'Serena', 'Ethan', or 'Chelsie'.
The image length and width do not meet the model restrictions.
Cause: The image dimensions (length and width) passed to Qwen VL models do not meet the model requirements.
Solution: 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.
Cause: Image decoding failed.
Solution: Check whether the image is corrupted and whether 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.
Cause: The file format is unsupported or the file cannot be opened.
Solution: Check whether the file is corrupted, whether the file extension matches the actual format, and whether the file format is supported.
The input messages do not contain elements with the role of user.
Cause:- 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).
Solution: Make sure to pass a User Message to the model, or pass custom parameters 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.
Cause: The server cannot download the media file pointed to by the public URL, possibly due to the following causes.
- Connectivity issues: 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 public URLs contains the
DashScopeUserBotidentifier; the security policy of a third-party server may intercept this identifier, causing the download to fail.
-
Change the storage service
Use a storage service in the same region as the model service. We recommend using Alibaba Cloud Object Storage Service to generate public URLs (do not use internal endpoints).
-
Adjust the transfer method
If passing a public URL fails, see Pass local files (Base64 encoding or file path) to switch to the recommended input method:
File Type
File Specifications
DashScope SDK(Python、Java)
OpenAI-compatible / DashScope HTTP
Image
Greater than 7MB and less than 10MB
Pass a local path
Only public URLs are supported; we recommend using Alibaba Cloud Object Storage Service
Less than 7MB
Pass a local path
Base64 encoding
Video
Greater than 100 MB
Only public URLs are supported; we recommend using Alibaba Cloud Object Storage Service
Only public URLs are supported; we recommend using Alibaba Cloud Object Storage Service
Greater than 7 MB and less than 100 MB
Pass a local path
Only public URLs are supported; we recommend using Alibaba Cloud Object Storage Service
Less than 7MB
Pass a local path
Base64 encoding
Audio
Greater than 10 MB
Only public URLs are supported; we recommend using Alibaba Cloud Object Storage Service
Only public URLs are supported; we recommend using Alibaba Cloud Object Storage Service
Greater than 7 MB and less than 10 MB
Pass a local path
Only public URLs are supported; we recommend using Alibaba Cloud Object Storage Service
Less than 7MB
Pass a local path
Base64 encoding
Base64 encoding increases the data size. The original file size should be less than 7 MB.
Using Base64 or a local file 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, you can 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 resource URL provided is invalid or inaccessible.
Solution:- Confirm the URL is correctly formatted and accessible
- Confirm the resource file has not been deleted or moved
- Confirm 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: Model name and API endpoint mismatch: For example, using a multimodal endpoint to call a text-only model, or using a text-only endpoint to call a multimodal model.
Solution:-
When using multimodal models such as qwen3.7-plus, qwen3-vl-plus, qwen3.8-max, or qwen3.8-flash through DashScope, you must 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), you must 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, confirm whether the multimodal parameter withMultiModel is set.
-
When using text-only models such as qwen3.7-max, qwen-plus, or deepseek-v4-pro through DashScope, you must use client.chat.completions.create() or the text-generation endpoint. For more information, see Overview.
-
When calling the CosyVoice Voice Cloning API through DashScope, note that this API includes the
modelandtarget_modelparameters: you must setmodeltovoice-enrollmentandtarget_modelto the specific CosyVoice model. For more information, see CosyVoice voice cloning/design API.
-
-
Cause 2: The DashScope SDK version is too old: When calling image or video generation models, an old 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: Ensure that you 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 calling multimodal models with the DashScope SDK, the key of each element in the content array must be one of the following values: image, video, audio, or text.
Solution: Please use the correct content parameter.
Invalid video file.
Cause: The video file provided 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 the Qwen VL or Qwen-Omni model exceeds the limit.
Solution:- For Qwen2.5-VL models, the supported video duration should be between 2 seconds and 10 minutes.
- For other Qwen VL or Qwen-Omni-Turbo models, the supported video duration should be between 2 seconds and 40 seconds.
For the video limits of other Qwen-Omni models, see Single-modal input.
Field required: xxx
Cause: One or more required parameters are not specified.
Solution: Please add the corresponding parameter according to 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 incorrect.
Solution: Check that 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.
Reason: The style is not within the enumeration range.
Solution: Check whether the value of the style parameter is correct.
The style_level is invalid.
Reason: 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.
Reason: 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!
Reason: The input parameter is out of range.
Solution: For more information, see video style transfer.
input json error.
Reason: The input JSON is invalid.
Solution: Check whether the JSON format of the request is correct.
read image error.
Reason: 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.
Reason: 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.
Reason: 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.
Reason: Required API call parameters are missing or out of range.
Solution: Check and correct the request parameters.
image format error
Reason: Invalid image format.
Solution: An image URL or Base64 string is required.
No messages found in input
Reason: The messages field is required in the request parameters.
Solution: For more information, see Qwen-Image editing.
Invalid image format or corrupted file
Reason: 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 the required format.
download image failed
Reason: The image cannot be downloaded.
Solution: Check whether the file can be downloaded normally.
messages length only support 1
Reason: The messages array supports a length of only 1.
Solution: That is, only one conversation message can be passed in. For more information, see Qwen-Image editing.
content length only support 2
Reason: The content array supports a length of only 2.
Solution: That is, only one text and one image can be passed in. For more information, see Qwen-Image editing.
lack of image or text
Reason: 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.
Reason: Invalid request parameters. The parameter n (number of images to generate) can only be set to 1.
Solution: Set the value of the n parameter to 1.
Input files format not supported.
Reason: The audio or image format does not meet the requirements.
Solution: Supported audio formats are mp3, wav, and aac; supported image formats are jpg, jpeg, png, bmp, and webp. For more information, see LivePortrait Video Generation.
Failed to download input files.
Reason: Failed to download the input file.
Solution: Check whether the file URL is accessible and the network is working properly.
oss download error.
Reason: 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.
Reason: The image content is non-compliant.
Solution: Change to an image that complies with content security requirements.
read video error.
Reason: 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.
Reason: 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.
Reason: This is a general error for multiple scenarios: the clothes_type parameter might be invalid (AI Try-On - image segmentation), or the aspect ratio parameter might be invalid.
Solution: For more information, see AI Try-On - image segmentation; if the issue is with the aspect ratio parameter, set it to "1:1" or "3:4".
The type or value of {parameter} is out of definition.
Reason: The parameter type or value does not meet the requirements.
Solution: For more information, see LivePortrait Video Generation.
request timeout after 23 seconds.
Reason: No data was 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 you will not send messages to the server for a long period (more than 23 seconds), end the task in time.
Please ensure input text is valid.
Reason: If you are using Real-time Speech Synthesis (Qwen-Audio-TTS/CosyVoice), this error usually occurs when the text to synthesize is not sent. Possible causes include: missing parameters (no value is assigned to the text parameter) or code exceptions (the assignment to the text parameter fails).
Solution: Check your code to ensure that 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 incorrect (general cause).
When calling a model using the WebSocket protocol, the JSON format sent is incorrect. Common issues include:
- Incorrect JSON structure hierarchy; parameters are not placed at the correct nesting level.
- Parameter name misspelling, for example,
task_groupwritten astaskgroup. - Parameter value is empty or not correctly assigned.
-
The call method is not called again after stop (specific scenario).
Applies only to the following scenario: using the DashScope Java SDK for Fun-ASR or Paraformer real-time speech recognition.
After the
stop()method is called to end the current recognition session, data continues to be sent without callingcall()again, which causes an abnormal session state and triggers this error.Difference between SDK users and WebSocket users: "Missing required parameter" is a protocol-level error returned by the server and occurs only 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 is 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 the "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 is incorrect, or the versions of model and voice do not match.
-
Check the
voiceparameter assignment:- 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 make sure the account that owns the voice is the same as the account that makes the calls.
-
Check version matching: 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: Check whether the voice parameter is assigned. If you use the WebSocket API Reference, configure the parameters in the correct JSON format as described in the API documentation.
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: Make sure 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: 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 the model through 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.
Cause:- The image dimensions (length and width) passed to the Qwen-VL model do not meet the model's requirements.
- The output image size exceeds the limit (10MB).
-
The image dimensions must meet the following requirements:
- Both the width and height of the image must be no less than 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 the Qwen-VL model.
Solution:
View the Content-Type field
- Open a browser (such as Chrome or Firefox).
- Open the developer tools (usually by pressing F12 or right-clicking and selecting "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 required input parameter image_url is missing.
Solution: See Emoji Video Generation and pass in the image_url parameter.
Field required: driven_id
Cause: The required input parameter driven_id is missing.
Solution: See Emoji Video Generation and pass in the driven_id parameter.
Invalid ext_bbox
Cause: The input ext_bbox parameter is invalid.
Solution: See Emoji Video Generation and pass in a valid ext_bbox.
Driven not exist: driven_id
Cause:The input driven_id does not exist.
Solution: See 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, you sent the continue-task instruction multiple times after setting enable_ssml 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 properly enabled.
Solution: Troubleshoot based on Limits and constraints
[tts:]Engine return error code: 428
Cause: The instruction parameter of CosyVoice speech synthesis is used incorrectly, which may include the following cases
-
Length exceeds the limit:
instructioncannot exceed 100 characters (Chinese characters count as 2 characters, other characters count as 1 character) -
Invalid format or invalid language: Only the following models support
instruction, and the rules vary:-
cosyvoice-v3.5-flash, cosyvoice-v3.5-plus: You can freely enter any instruction (such as emotion, speech rate, etc.)
-
cosyvoice-v3-flash:
- Must be written in a fixed format
- Only Chinese
instructionis supported - Different voices support different
instructionvalues. For more information, see CosyVoice voice list
-
- Check whether the character length of
instructionexceeds 100 - Confirm whether the model you use supports the
instructionparameter - When using cosyvoice-v3-flash, make sure
instructionis in Chinese and conforms to 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 lyrics or prompt parameter is not provided in the request.
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 check fails and may contain infringing content.
Solution: Modify the lyrics content to ensure it does not contain infringing or non-compliant content, and then 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 model currently in use does not support the enable_thinking parameter.
Solution: Remove the enable_thinking parameter from the request, or use a model that supports thinking mode.
invalid_value
The requested voice 'xxx' is not supported.
Cause: During 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 request parameter target_model used in voice cloning is consistent with the request parameter model used in speech synthesis.
Arrearage
Access denied, please make sure your account is in good standing.
Cause: The Alibaba Cloud account that owns the API Key has overdue payment, causing access to be denied.
Solution: Go to Expenses and Costs to check for overdue payment:
- No overdue payment: Confirm whether the API Key belongs to the current account. If the account has no overdue payment, the account may be abnormal. For more information, contact customer service for further troubleshooting.
- Overdue payment: Top up in time. After topping up, the system balance may be delayed. Wait a moment and try again.
NoteQ: I purchased a resource package and only called models within the resource package. Why is there overdue payment?
A: Check the deduction scope of the resource package. Take the qwen-plus/qwen-plus-latest series resource packages as an example:
The resource package only deducts the input tokens and output tokens fees of the qwen-plus and qwen-plus-latest models, and only supports deducting real-time inference fees (non-thinking mode) generated when the input of a single request is within the 0<Token≤128K tier
Fees that cannot be deducted include:
- Fees generated when the input of a single request is in the Token>128K tier.
- 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 payment or insufficient balance, the client aggregates billing-related errors returned by the server into this English message. The underlying Model Studio server error code is Arrearage (i.e., 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 payment: if overdue, top up in time (the system balance may be delayed after topping up; wait a moment and try again); if not overdue, confirm whether the API Key used for the call belongs to the current account.
isv.OUT_OF_SERVICE
Cause: The Alibaba Cloud account has insufficient balance, causing the service to be suspended. Its underlying cause is the same as the Arrearage error in this section (Access denied, please make sure your account is in good standing.), both being account overdue payment.
Solutions: Go to Expenses and Costs to top up your Alibaba Cloud account. The service automatically resumes once the balance is sufficient.
Contain.Forbidden.Label.Error
contain forbidden create order label
Reason: The Alibaba Cloud account has a label that forbids order placement. This order request was intercepted and the order cannot be placed.
Solutions: View the diagnostic results 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 it 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.
Reason: The input or output contains suspected sensitive content and was intercepted by the content moderation system.
Solutions: Modify the input content and try again. To apply for content whitelisting, contact your account manager.
Input xxx data may contain inappropriate content.
Reason: The input data (such as prompts or images) may contain sensitive content. Solutions: This is a 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.
Reason: Before entering model inference, the input image was flagged by the pre-inference content security check (content moderation) as suspected of containing 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 security mechanism as the interception of input content by content moderation described above.
Solutions: Replace or modify the input image and try again. If the image content is confirmed to be compliant but is still being intercepted, submit a ticket for further verification.
InvalidFile.DownloadFailed
The audio file cannot be downloaded.
Reason: The audio file to be recognized failed to download when using speech recognition (Paraformer) for audio file recognition.
Solutions: 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.
Reason: The audio length does not meet the requirements.
Solutions: Ensure that the audio duration is within the range of [1, 300] seconds
Audio length must be between 1s and 180s.
Reason: The audio length does not meet the requirements.
Solutions: 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.
Reason: There is no person in the input image, or no face was detected.
Solutions: 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.
Reason: The proportion of the person in the uploaded image does not meet the requirements.
Solutions: 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.
Reason: The facial pose of the person in the uploaded image does not meet the requirements (the face must be visible, and the head orientation must not deviate severely).
Solutions: Upload an image that meets the requirements.
The pose of the detected face is invalid, please upload other image with the expected oriention.
Reason: The facial pose of the person in the uploaded image does not meet the requirements (the face orientation must not deviate severely).
Solutions: 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.
Reason: The facial pose of the person in the uploaded image does not meet the requirements (the face orientation must not deviate severely).
Solutions: 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.
Reason: The size of the uploaded image does not meet the requirements.
Solutions: 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.
Reason: The size of the uploaded image does not meet the requirements.
Solutions: The longest side of the uploaded image 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.
Reason: The size of the uploaded image does not meet the requirements.
Solutions: 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.
Reason: The size of the uploaded image does not meet the requirements.
Solutions: 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.
Reason: The video resolution does not meet the requirements.
Solutions: The video side length must be between xxx and yyy.
InvalidFile.FPS
Invalid video FPS. The video FPS must be 15 ~ 60.
Reason: The video frame rate does not meet the requirements.
Solutions: 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: Ensure that 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 is facing away from the camera, which does not meet the requirements.
Solution: Ensure that 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: Ensure that the face in the image is complete and not occluded.
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 unclear.
Solution: Select a video in which the person in the first frame is clear.
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 persons.
Solutions: 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 input image has an incomplete human body or 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: There are multiple people in the input image.
Solutions: 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 a headshot photo, the head must be fully visible; for a half-body photo, the area 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 action of the single person does not meet the requirements.
Solution: Upload an image that meets the requirements: the shoulders and ankles must be visible, the person must not face away from the camera or be seated, and the person's orientation must not deviate severely.
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 200MB, and the audio file must be smaller than 15MB.
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 5MB.
Invalid file size. The video/audio/image file size must be less than xxxMB.
Reason: The file size does not meet the requirements.
Solution: Video/audio/image files 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 duration of video/audio files must be between xxx-yyy s.
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 aspect ratio of the video file 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 aspect ratio of the image file 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: Please check whether the file is corrupted or in the correct format.
InvalidFile.Template.Content
Invalid template content.
Reason: The action template has no permission, or the template content does not meet the requirements.
Solutions: Please 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: There are multiple people in the input image.
Solutions: 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 persons.
Solutions: 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 you initiate the call from outside the Chinese mainland, the unstable cross-border network may cause a timeout when downloading resources. Store the file in OSS in the Chinese mainland, and then initiate the model call. You can also use the temporary storage space to upload the file.
FlowNotPublished
Flow has not published yet, please publish flow and try again.
Reason: The flow is not published.
Solutions: Please 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 is detected (only for the asynchronous query API of generation tasks).
Solutions: Please 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: Please provide a correct URL.
The request URL is invalid, make sure the url is correct and is an image.
Reason: The input URL is invalid.
Solutions: Please 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: Please 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.
Solution: Compress the audio file to under 15 MB.
File type is not supported. Allowed types are: .wav, .mp3.
Cause: Input audio format is non-compliant.
Solution: Only wav and mp3 formats are 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.
Cause: Image is inaccessible or downloaded file format is unsupported.
Solution: 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.
Cause: Image file format is unsupported.
Solution: Use images in JPG, JPEG, PNG, BMP, or WEBP format.
InvalidURL.ConnectionRefused
Connection to xxx refused, please provide available URL.
Cause: Download was refused.
Solution: Provide an accessible URL.
InvalidURL.Timeout
Download xxx timeout, please check network connection.
Cause: Download timed out.
Solution: Check network connectivity.
BadRequestException
Invalid part type.
Cause: Applies only to Qwen-Long model conversation scenarios where the user uploaded a file type not yet supported by Qwen-Long.
Solution: Upload a file type supported by Qwen-Long.
BadRequest.EmptyInput
Required input parameter missing from request.
Cause: The request did not include the input parameter.
Solution: Add the input parameter to the request.
BadRequest.EmptyParameters
Required parameter "parameters" missing from request.
Cause: The request did not include the parameters parameter.
Solution: Add the parameters parameter to the request.
BadRequest.EmptyModel
Required parameter "model" missing from request.
Cause: The request did not provide the model parameter.
Solution: Add the model parameter to the request.
BadRequest.IllegalInput
The input parameter requires json format.
Cause: Input parameter format does not meet the API's JSON requirements.
Solution: Check the input parameter format and ensure it is valid JSON.
BadRequest.InputDownloadFailed
Failed to download the input file: xxx.
Cause: Input file download failed, possibly due to timeout, download failure, or file size exceeding limits.
Solution: Troubleshoot based on the detailed error message xxx.
Failed to download the input file.
Cause: When using Qwen-TTS voice cloning, the server failed to download the audio file for cloning.
Solution: Check if the audio file can be downloaded normally. If it can, verify that the audio file size does not exceed the limit (10 MB).
BadRequest.UnsupportedFileFormat
File format unsupported.
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. Note that file extension alone is not reliable—for example, a file with a .mp3 extension might actually be Opus. Use tools (such as ffprobe, mediainfo) or commands (like the Linux/macOS file command) to verify the actual audio encoding format to ensure compliance.
Input file format is not supported.
Cause: Input file format is unsupported.
Solution: Use a supported file format.
BadRequest.TooLarge
Payload Too Large.
Cause: File size exceeds the limit.
Solution:- When "purpose" is "file-extract", documents must not exceed 150 MB and images must not exceed 20 MB.
- When "purpose" is "batch", files must not exceed 500 MB. Split and upload files in batches.
BadRequest.ResourceNotExist
The Required resource not exist.
Cause:- 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 specified in 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 upper limit on the number of voices available to the primary account has been exceeded.
Solution: Delete some voices.
InvalidGarment
Missing clothing image.Please input at least one top garment or bottom garment image.
Reason: The clothing image is missing.
Solution: Provide at least one image of a top garment (top_garment_url) or a bottom garment (bottom_garment_url).
InvalidSchema
Database schema is invalid for text2sql.
Reason: The database schema information is not entered.
Solution: Enter the database schema information.
The schema format is invalid.
Applies to: ParseX API
Reason: The schema format is invalid.
InvalidSchemaFormat
Database schema format is invalid for text2sql.
Reason: The format of the input data table information is abnormal.
Solution: 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: Keep the audio duration between 10~15 seconds. When recording, ensure that the reading is fluent and contains at least one continuous speech segment longer than 5 seconds.
Audio. AudioSilentError
silent audio error.
Reason: The CosyVoice Voice Cloning audio file is silent, or its non-silent part is too short.
Solution: Keep the audio duration for voice cloning between 10~15 seconds, and include at least one continuous speech segment 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 more than 150 pixels, keep the file size between 5 KB and 5 MB, and then try again.
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 from the server before the task finished. This error message occurs when using speech synthesis or recognition related services.
Solution: 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 invalid.
Solution: Check that the input content length is greater than 0, and ensure that the parameter format (such as role) meets the requirements in 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 checks, review your input to ensure that it does not contain content that may pose infringement risks.
UnsupportedOperation
The operation is unsupported on the referee object.
Reason: The associated object does not support this operation.
Solution: Check whether the operation object and the 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 "Success", "Failed", or "Canceled".
Solution: Only jobs in specific states can be deleted. Do not delete jobs in a terminal 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.
Solution: Check the content or adjust the custom policy.
Audio.PreprocessError
Audio preprocess error.
Reason: When using Qwen-TTS voice cloning, an error occurred during preprocessing of the audio to be cloned. Possible causes include: the text parameter content differs greatly from the audio transcript, the valid human voice is too short, or the audio is silent.
Solution: Adjust the content of the text parameter. If the issue persists after the adjustment, 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.
Solution: 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 calling the delete voice API.
Solution: Check whether the voice parameter 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.
Solution: 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 requirement.
Solution: 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.
Solution: The audio must not exceed 60 seconds.
400
Scope: Managed Agents API, Security API
Reason: Parameter validation failed. message provides the specific reason.
BadRequest.IllegalEndpoint
Scope: Managed Agents API, Security API
Reason: Invalid workspace routing (gateway layer).
100005
Scope: Sandbox API
Reason: source only supports sandbox_template.
11900024
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 cannot be retried.
Suggested action: 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 can be retried.
FileFormatNotSupported
Unsupported file formats
Applies to: ParseX API
Reason: Unsupported file format.
FileSizeExceeded
File size exceeds limit
Applies to: ParseX API
Reason: The 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
Cause: The parse result has expired and exceeded the 30-day retention period.
PageCountExceeded
The page count exceeds the limit.
Applies to: ParseX API
Cause: The page count exceeds the limit.
PageRangeInvalid
The page range is invalid.
Applies to: ParseX API
Cause: 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
Cause: The ParseResult is not reusable.
Suggested fix: 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 a mismatched type.
UnsupportedFileType
Extract does not support audio/video input.
Applies to: ParseX API
Cause: 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 the API Key is missing or invalid.
Invalid API-key provided. / Incorrect API key provided.
Cause: The API Key is incorrect.
Solution: Common causes and fixes are as follows:
-
Reading the wrong environment variable
-
Incorrect usage:
api_key=os.getenv("sk-xxx")— the system will try to read an environment variable namedsk-xxx, instead of treatingsk-xxxas the key. -
Correct usage:
-
If the environment variable is configured: write
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
api_key = "sk-xxx".This approach is convenient for debugging; do not use it in production.
-
-
-
Incorrect key: API Keys of Alibaba Cloud Model Studio 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. -
Plan-specific API Key (Coding Plan / Token Plan Team): Both Coding Plan and Token Plan Team provide dedicated API Keys starting with
sk-sp-, which must be used with their respective dedicated Base URLs and cannot be mixed with the general API Key/Base URL (mixing them returns this authentication error). The dedicated address for Coding Plan is https://coding.dashscope.aliyuncs.com/v1; the dedicated Base URL for Token Plan Team 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 Base URL belong to different regions; for example, an API Key from the China (Beijing) region is used 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 (Virginia) 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. You are advised to migrate 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 in the Alibaba Cloud Model Studio console. The existing domains remain available. - China (Beijing) region: migrate from
-
Tool adaptation issues: The third-party tool is not properly adapted (for example, the latest Dify plugin is unstable and causes errors — try installing an older version of the Qwen plugin; when an older version of Cline calls a model, if API Provider is set to Alibaba Qwen, change it to OpenAI-compatible).
If none of the above applies, the API Key may have been deleted. Obtain a new one and make 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.
Cause:- 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 of the China site should use the endpoint of the China (Beijing) region; users of the International site should use the endpoint of the Singapore region. When using online debugging, make sure the service address is correct.
invalid access token or token expired
invalid access token or token expired.
Possible cause: The Token Plan is mistakenly using the Base URL of the Coding Plan or another plan.
Solution: Use the dedicated Base URL of the 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
Cause: The API Key is missing or invalid.
403
AccessDenied/access_denied
Current user api does not support asynchronous calls.
Cause: 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.
Cause: The API does not support synchronous calls.
Solution: Set X-DashScope-Async: enable in the request header.
Invalid according to Policy: Policy expired.
Cause: 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.
Cause: You do not have permission to access this model. Possible reasons: the model requires an access 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 Model deprecation mechanism and switch to the alternative model recommended in that document.
Calling Token Plan exclusive models with a general API KeyCause: Token Plan exclusive models (such as qwen3.8-max-preview) can only be called by 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 are updated at the same time. For 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, click Apply Now below the model card in Models 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.
Cause: The current API Key is configured with Access Model Scope (custom permission), and the requested model is not in the list of models this Key is allowed to call. The gateway rejects the request directly and returns HTTP 403 access_denied.
- Go to the API Key page in the Model Studio console and edit the API Key's permissions: change Permission to All, or add the target model to the Access Model Scope checkbox list under the Custom permission.
- You can also create a new API Key with All permission and retry.
- This restriction applies to both OpenAI-compatible and DashScope native APIs, 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.
Cause:- The Alibaba Cloud Model Studio service is not activated.
Solution: Activate the Alibaba Cloud Model Studio service by following these steps.
-
Create an account: If you do not have an Alibaba Cloud account, you need to register one first.
-
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 that has the
AliyunBailianFullAccesspermission. After conditions such as real-name verification are met, the service is activated automatically—no need to click an activation button or manually confirm. If the RAM account does not have activation permission, the primary account must grant the required permissions per Alibaba Cloud Model Studio RAM permissions, then log on again and retry the call.If a message indicating that real-name verification has not been completed is displayed when you activate the service, complete real-name verification first.
Model.AccessDenied
Model access denied.
Cause: You do not have permission to call the specified standard or custom model.
Solution:- Calling standard models: When calling a standard model (such as
qwen-plus) with an API KEY from a sub-workspace, the sub-workspace must have 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.
Cause: You do not have permission to access the application or model.
Solution:- Carefully confirm that access authorization has been granted for the workspace and sub-account you are accessing.
- Carefully check whether the application has been published.
- Carefully verify that the 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 the above are correct, refresh the data, republish the application, and call again, or try recreating the agent.
Workspace.AccessDenied
Workspace access denied.
Cause: You do not have permission to access the application or model of the workspace.
Solution:- To call an application in a sub-workspace, see Workspaces.
- To call a model in a sub-workspace, see Model calling in sub-workspaces.
- You can also use the primary account's API KEY instead, as the primary account 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 you do not have access permission.
Workspace endpoint access denied.
Cause: You may have called a deprecated model (such as historical snapshot versions like qwen-max-2025-01-25). After a model is deprecated, its endpoint no longer provides service and returns this error.
- Go to Model deprecation mechanism to check whether the model you called has been deprecated.
- If the model has been deprecated, switch to the 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.
Cause 1: A brand-new unverified user sends a request after the free quota is exhausted.
Solution: Complete verification and top up your account before calling.
Cause 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 the minute level (you need to manually refresh the page).
Solution:
- To continue calling on a paid basis, you can turn off the Free Quota Only switch at any time, without waiting until the free quota is exhausted; once the switch is turned off, you can continue calls 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 the 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 the corresponding request is not found in the console call records, the request may not have reached the server. Check whether the client plug-in configuration or the local network connection is working properly.
11900007
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 overdue payment.
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 yet, or the model name may be misspelled.
Solution: See OpenAI compatibility - Batch (file input) for 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 Alibaba Cloud Model Studio yet.
Solution:-
Check the model names in the Models list to verify whether the model name you entered (the value of the
modelparameter) is correct. -
Go to Models to activate the model service.
-
If you initiate 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 and ModelNotFound occurs, also check the following two points:
- 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. Using a model name to call a dedicated deployment endpoint, or using a deployment name on the standard API endpoint, will returnmodel_not_found. - Distinguish 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; 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 compatibility 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!
Cause:- The resource to query or operate does not exist.
- When using custom hotwords, the hotword ID passed in is invalid or the corresponding hotword does not exist.
- Check whether the resource ID to query or operate is incorrect.
- Check whether the hotword ID is correct, and follow the API documentation to call in the correct way.
Request path not found.
Reason: When using the Fun-Music model, the service address you accessed does not exist.
Solution: Check whether the API path is correct and whether it contains any invalid characters.
AGENT_001
Scope: Managed Agents API
Reason: The agent does not exist.
11900006
Scope: Sandbox API
Reason: The file does not exist.
11900023
Scope: Sandbox API
Reason: The file does not exist, or it 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 ResultNotReady is received, the job is not completed yet. Continue to use the original biz_id to call the corresponding result endpoint.
413
11900008
Scope: Sandbox API
Reason: The file exceeds the size limit.
RequestEntityTooLarge
Scope: Sandbox API
Reason: 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
Scope: Sandbox API
Reason: The file type is not allowed.
11900019
Scope: Sandbox API
Reason: The video format is not supported.
429
rate_limit_exceeded
Running requests reach the limit 112
Cause: The request rate, concurrency, or number of in-flight requests exceeds the service limit.
Solution: Reduce the request rate or concurrency.
throttling.data_inspection
Output inspection rate limit exceeded.
Cause: Content safety inspection requests exceed the current service limit.
Solution: Reduce the request rate.
Throttling
Requests throttling triggered.
Reason: API calls trigger rate limiting.
Solution: Lower 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.
Reason: Resource creation triggers platform limits.
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.
Reason: Too many requests trigger rate limiting.
Solution: Please retry later.
All models are temporarily rate-limited. Please try again in a few minutes.
Reason: In scenarios where a client (such as Claude Code) is used to call multiple models through Coding Plan or similar services, if all available models trigger 429 rate limiting, the client returns this aggregated 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 in a short period.
- For a higher call frequency, refer to rate limits 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.
Reason: The call frequency (RPS/RPM) triggers rate limiting.
Solution: Refer to rate limits to control the 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 will return 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.
Reason: Before the rate limit threshold is reached, a sudden surge in call frequency triggers the system stability protection mechanism.
Solution: Optimize the 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.
Reason: The number of tokens consumed per second or per minute (TPS/TPM) triggers rate limiting.
Solution: Go to the rate limits documentation 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.
You can refer to the FAQ to avoid triggering rate limiting.
Too many requests. Batch requests are being throttled due to system capacity limits. Please try again later.
Reason: Too many Batch requests trigger rate limiting.
Solution: Your request cannot be processed for now; please retry later.
Free allocated quota exceeded.
Reason: The free quota has expired or been exhausted, and the model does not yet support pay-as-you-go billing.
Solution: Switch to 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 upper limit on the number of voices available to the primary account has been exceeded.
Solution: 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.]
Reason: Network resources are currently overloaded and cannot process your request for now.
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.
Reason: The workspace has not been purchased.
Solution: Purchase the workspace service first.
PrepaidBillOverdue
The prepaid bill is overdue.
Reason: The prepaid bill of the workspace is overdue.
PostpaidBillOverdue
The postpaid bill is overdue.
Reason: 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.
Reason: The budget quota you set in Budget Management has been used up, and "stop when the budget is reached" is enabled.
Solution: On the Budget Management page, increase the budget quota or disable "stop when the budget is reached" to resume calls.
WarningThere is a delay before the service is stopped, and fees incurred during the delay will still be charged as usual. If the service is stopped 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
Reason: The tenant quota is exceeded.
RATE_LIMITED
Applies to: RAG API
Reason: API rate limiting.
430
Audio.DecoderError
Decoder audio file failed.
Reason: Failed to decode the audio file of CosyVoice Voice Cloning.
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 to ensure it meets the requirements.
Audio.FileSizeExceed
File too large
Reason: The audio file of CosyVoice Voice Cloning exceeds the size limit.
Solution: The audio file used for voice cloning must be within 10 MB.
Audio.AudioRateError
File sample rate unsupported
Reason: The sample rate of the audio file of CosyVoice Voice Cloning is not supported.
Solution: Set the sample rate to 16 KHz or higher.
Audio.AudioSilentError
Silent file unsupported.
Reason:The audio file of CosyVoice Voice Cloning is silent, or the 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
cuda_error
CUBLAS_STATUS_ALLOC_FAILED
Cause: An internal exception occurred while the model service was processing the request.
Solution: Try again later.
not_implemented
unsupported scalar type: 〈logits data type〉
Cause: The request involves a capability that the current service does not support.
Solution: Adjust the request according to the model documentation.
InternalError/internal_error
Traceback (most recent call last): … / model_output token_ids tensor is not on cuda / Unknown SamplingMode
Cause: An internal exception occurred while the model service was processing the request.
Solution: Try again later.
An internal error has occured, please try again later or contact service support.
Reason: 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, possible causes are:
- The audio file is non-standard. For example, the voice itself has issues, contains noise, or fluctuates in 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, ensure continuous reading and include at least one continuous speech segment longer than 5 seconds.
Internal server error!
Reason: Internal algorithm error.
Solution: Retry later.
audio preprocess server error
When using CosyVoice Voice Cloning:
-
Reason: The audio file is non-standard. For example, the voice itself has issues, contains noise, or fluctuates in volume.
Solution: Record the audio again following the Recording Guide and retry.
-
Reason: The recording file URL is inaccessible,
Solution: Follow the instructions in CosyVoice Voice Cloning/Design API and retry.
-
Reason: The recording is too long.
Solution: Select a recording of 10~15 seconds if possible. When recording, ensure continuous reading and include at least one continuous speech segment longer than 5 seconds.
request asr failed
Reason:When using CosyVoice Voice Cloning, the audio file is non-standard, contains no valid human voice, has an unclear voice, or has heavy noise.
Solution: Record the audio again following the Recording Guide and retry.
Remote cancelled grpc stream.
Reason: The voice used in speech synthesis does not exist.
Solution: Check the voice parameter to ensure 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
Reason: Internal error.
InternalError.FileUpload
oss upload error.
Reason: Failed to upload the file.
Solutions: Check the OSS configuration and network.
InternalError.Upload
Failed to upload result.
Reason: Failed to upload the generated result.
Solutions: Check the storage configuration or try again later.
InternalError.Algo
inference internal error.
Reason: Service exception.
Solutions: Try again first to rule out transient issues.
Expecting ',' delimiter: line x column xxx (char xxx)
Reason: The JSON data generated by the model is invalid, so the tool call cannot be initiated properly.
Solutions: Switch to the latest model or optimize the prompt, then try again.
Missing Content-Length of multimodal url.
Reason: The Content-Length field is missing from the response headers of the URL request.
Solutions: If the problem persists, try using a different image link.
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.
- Locate the corresponding request, view the Headers section, and find the Content-Length field in the Response Headers section.
An error occurred in model serving, error message is: [Request rejected by inference engine!]
Reason: An error occurred on the underlying server of the model service.
Solution: Retry later.
An internal error has occured during algorithm execution.
Reason: An error occurred during algorithm execution.
Solution: Retry later.
Inference error: Inference error.
Reason: An inference error occurred.
Solutions: 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]
Reason: When using the Qwen-MT model, the messages array contains a message whose role is not user.
Solutions: Ensure that the messages array contains only one element, and that element must be a user message (User Message).
Embedding_pipeline_Error: xxx
Reason: An error occurred during image or video preprocessing.
Solutions: Verify that the uploaded image or video and the request code meet the requirements, then try again.
Receive batching backend response failed!
Reason: Internal service error.
Solution: Retry later.
[music]Receive batching backend response failed!
Reason: When using the Fun-Music model, the service exceeded the concurrency limit.
Solutions: Reduce the number of concurrent requests and try again.
Other kinds of server error.
Reason: An unknown internal system exception occurred while using the Fun-Music model.
Solutions: Provide 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.
Reason: Internal algorithm error.
Solution: Retry later.
list index out of range
Reason: The last element of the messages array must be a User Message.
Solutions: 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.
Reason: The asynchronous task did not return a result within 3 hours after submission, resulting in a timeout.
Solutions: Check the task execution status, or contact technical support.
InternalError.Configuration
Internal configuration error.
Reason: Server-side configuration exception.
Solutions: 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: The translation process failed.
Solution: Try again later. If the failure persists, check the input content or contact technical support.
SystemError
An system error has occured, please try again later.
Cause: System error.
Solution: Try again later. If you are calling a Model Studio application, refer to the sample code or documentation to check whether the code is written incorrectly. If the problem still cannot be identified, join the DING group provided at the bottom of the Spring AI Alibaba official website to contact the developers for troubleshooting.
ModelServiceFailed
Failed to request model service.
Cause: The model service call failed.
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
Cause:- The request timed out when calling a large model, and the timeout error threshold is 300 seconds.
- When using speech recognition (Paraformer), no audio was sent to the server for a long time, or silent audio was sent for a long time.
- When calling an image generation or editing model, the image size was large or the processing complexity was high, causing the processing time to exceed the limit.
- Initiate the request in streaming output mode. For more information, see Streaming output.
- Set the request parameter
heartbeattotrue, or end the recognition task in time. - When calling an image model, try lowering 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.
Solution: Retry the call.
InvokePluginFailed
Failed to invoke plugin.
Cause: The plugin invocation failed.
Solution: Check the plugin configuration and availability.
AppProcessFailed
Failed to proceed application request.
Cause: The application workflow processing failed.
Solution: Check the application configuration and workflow nodes.
RewriteFailed
Failed to rewrite content for prompt.
Cause: The call to the large model for rewriting the prompt failed.
Solution: Retry later.
RetrivalFailed
Failed to retrieve data from documents.
Cause: Document retrieval failed.
Solution: Check the document index and retrieval configuration.
11900001
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
internal_error.data_inspection
Output inspection service unavailable. / Output inspection failed.
Cause: The content safety inspection service is temporarily unavailable or failed to process the request.
Solution: Try again later.
SYNC_SOURCE_UNREACHABLE
Applies to: RAG API
Cause: The data source connection failed.
503
ServiceUnavailable/service_unavailable
Server is shutting down
Cause: The model service is being updated, scaled, or is temporarily unable to accept new requests.
Solution: Try again later.
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
timeout.data_inspection
Output inspection timed out.
Cause: The wait for content safety inspection exceeds the timeout configured in the client.
Solution: Try again later.
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 enable 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 Gallery 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"
}