Skip to main content
More

Error messages

API error code reference

Error messages from Qwen Cloud and their solutions.

400-InvalidParameter

parameter.enable_thinking must be set to false for non-streaming calls/ parameter.enable_thinking only support stream call

Cause: Thinking models require streaming output. Solution: Set enable_thinking to false or use streaming.

The thinking_budget parameter must be a positive integer and not greater than xxx

Cause: thinking_budget is out of range. Solution: Set to a positive integer within the model's maximum reasoning length. See Models.

This model only support stream mode, please enable the stream parameter to access the model.

Cause: Model requires streaming output. Solution: Enable streaming output. Cause: Model does not support web search. Solution: Use a model that supports web search, or set enable_search to false.

The currently set language is not supported!

Cause: Invalid source_lang or target_lang format, or unsupported language. Solution: Use the correct English name or language code.

The incremental_output parameter must be "true" when enable_thinking is true

Cause: Thinking mode requires incremental streaming output. Solution: Set incremental_output to true.

The incremental_output parameter of this model cannot be set to False.

Cause: Model requires incremental streaming output. Solution: Set incremental_output to true.

Range of input length should be [1, xxx]

Cause: Input exceeds the model's token limit. Solution:
  • API calls: Keep messages array within the model's token limit.
  • Chat conversations: Start a new conversation when history exceeds the limit.

Range of max_tokens should be [1, xxx]

Cause: max_tokens is out of range. Solution: Set to a value between 1 and the model's maximum output tokens. See Models.

Temperature should be in [0.0, 2.0)/'temperature' must be Float

Cause: temperature is out of range. Solution: Set to a value in [0.0, 2.0).

Range of top_p should be (0.0, 1.0]/'top_p' must be Float

Cause: top_p is out of range. Solution: Set to a value in (0.0, 1.0].

Parameter top_k be greater than or equal to 0

Cause: top_k is less than 0. Solution: Set to a value ≥ 0.

Repetition_penalty should be greater than 0.0

Cause: repetition_penalty is ≤ 0. Solution: Set to a value > 0.

Presence_penalty should be in [-2.0, 2.0]

Cause: presence_penalty is out of range. Solution: Set to a value in [-2.0, 2.0].

Range of n should be [1, 4]

Cause: n is out of range. Solution: Set to a value in [1, 4].

Range of seed should be [0, 9223372036854775807]

Cause: seed is out of range (DashScope protocol). Solution: Set to a value in [0, 9223372036854775807].

Request method 'GET' is not supported.

Cause: API does not support GET. Solution: Use POST. See the API reference.

Messages with role "tool" must be a response to a preceding message with "tool_calls"

Cause: The tool calling sequence is missing an assistant message. Solution: Include the assistant message from the model's first response before the tool message.

Required body invalid, check the request body format.

Cause: Invalid request body format. Solution: Ensure the request body is valid JSON. Check for extra commas or unclosed brackets.

input content must be a string.

Cause: Text-only models do not support array-type content. Solution: Use string content, not arrays like [{"type": "text","text": "..."}].

The content field is a required field.

Cause: Missing content parameter (such as {"role": "user"}). Solution: Add content, such as {"role": "user","content": "Who are you"}.

current user api does not support http call.

Cause: Model does not support non-streaming output. Solution: Use streaming output.

Either "prompt" or "messages" must exist and cannot both be none

Cause: Missing messages or prompt parameter, or wrong format. Solution: Specify messages. For DashScope-HTTP, place messages inside the input object. See Qwen API reference.

'messages' must contain the word 'json' in some form, to use 'response_format' of type 'json_object'.

Cause: Structured output requires "json" in the prompt. Solution: Add "json" (case-insensitive) to the prompt, such as "Output in json format."

Json mode response is not supported when enable_thinking is true

Cause: Structured output does not work with thinking mode. Solution: Set enable_thinking to false. See How do models in thinking mode produce structured output? Cause: Tool name cannot be "search". Solution: Use a different tool name.

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: Invalid response_format. Solution: Set to {"type": "json_object"} for structured output.

The value of the enable_thinking parameter is restricted to True.

Cause: Model requires thinking mode (such as qwen3-235b-a22b-thinking-2507). Solution:
  • In code: Set enable_thinking to true.
  • In third-party tools (such as Cherry Studio): Enable thinking in the input box.

'audio' output only support with stream=true

Cause: Qwen-Omni requires streaming output. Solution: Set stream to true.

tool_choice is one of the strings that should be ["none", "auto"]

Cause: Invalid tool_choice value. Solution: Use "auto" (model chooses) or "none" (no tool).

Model not found

Cause: Invalid or nonexistent model parameter. Solution:
  • Model name format: Check casing and remove extra spaces.
  • Correct model name: Use Qwen Cloud model IDs (such as qwen3-235b-a22b-instruct-2507), not community names (such as Qwen/Qwen3-235B-A22B-Instruct-2507). See Models.

The result_format parameter must be "message" when enable_thinking is true

Cause: Thinking mode requires result_format = "message". Solution: Set result_format to "message".

The audio is empty

Cause: Audio is too short. Solution: Use a longer audio file.

File parsing in progress, try again later.

Cause: File is still being parsed for document processing. Solution: Wait for parsing to finish, then retry.

The "stop" parameter must be of type "str", "list[str]", "list[int]", or "list[list[int]]", and all elements within the list must be of the same type.

Cause: Invalid stop parameter format. Solution: Use str, list[str], list[int], or list[list[int]]. See Qwen API reference.

Value error, batch size is invalid, it should not be larger than xxx.

Cause: Too many texts for the embedding model. Solution: Keep the input count within the model's batch size. See Embedding.

[] is too short

Cause: Empty messages array. Solution: Add at least one message.

The tool call is not supported.

Cause: Model does not support tool calling. Solution: Use a Qwen model with tool support.

Required parameter(xxx) missing or invalid, check the request parameters.

Cause: Invalid API parameters. Solution: Provide all required parameters in the correct format.

input must contain file_urls

Cause: Missing file_urls parameter (Paraformer). Solution: Provide file_urls in the request.

The provided URL does not appear to be valid. Ensure it is correctly formatted.

Cause: Invalid URL or file path for multimodal input. Solution:
  • URLs: Must start with http://, https://, or data:. For data: URLs, include "base64" before encoded data.
  • Local paths: Must start with file://.
  • Temporary URLs: Add X-DashScope-OssResourceResolve: enable to request headers (HTTP), or use DashScope SDK (not OpenAI SDK).

Input should be a valid dictionary or instance of GPT3Message

Cause: Invalid messages format (mismatched brackets, missing keys). Solution: Verify the JSON structure is correct.

Value error, contents is neither str nor list of str. : input.contents

Cause: Embedding input must be a string or an array of strings. Solution: Use correct input format.

The video modality input does not meet the requirements because: the range of sequence images shoule be (4, 512)./(4,80).

Cause: Invalid number of images for video input. Solution: Qwen3-VL/Qwen2.5-VL: 4-512 images. Other models: 4-80 images. See Image and video understanding.

Exceeded limit on max bytes per data-uri item : 10485760'. / Multimodal file size is too large

Cause: File exceeds size limit for multimodal models. Solution:
  • Local files (Base64): Max 10 MB after encoding.
  • Images (URL): Max 10 MB.
  • Videos (URL): Max 2 GB (Qwen3-VL, qwen-vl-max, qwen-vl-max-latest, qwen-vl-max-2025-08-13, qwen-vl-max-2025-04-08), 1 GB (qwen-vl-plus series, models updated before qwen-vl-max-2025-04-08), or 150 MB (other models).
See How do I compress an image or video to the required size?

Input should be 'Cherry', 'Serena', 'Ethan' or 'Chelsie': parameters.audio.voice

Cause: Invalid voice parameter. Solution: Use 'Cherry', 'Serena', 'Ethan', or 'Chelsie'.

The image length and width do not meet the model restrictions.

Cause: Image dimensions out of range. Solution: Width and height must be ≥ 10 pixels. Aspect ratio must be between 1:200 and 200:1.

Failed to decode the image during the data inspection.

Cause: Image decoding failed. Solution: Verify the image is not corrupted and meets format 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: Unsupported or unreadable file format. Solution: Verify the file is not corrupted, extension matches actual format, and format is supported.

The input messages do not contain elements with the role of user.

Cause: No user message was passed to the model, or when calling a Qwen Cloud workflow application through an API, the parameters in the start node were passed through user_prompt_params instead of biz_params. Solution: Pass a user message to the model, or pass custom parameters through biz_params.

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: Failed to download the image, video, or audio, or the download timed out.
  • Connectivity issues: You are using an internal network address from Object Storage Service.
  • Network latency: Cross-region access causes timeouts.
  • Service instability: The source storage service is slow or unreachable.
Solution:
  • Change the storage service
Use a storage service in the same region as the model service. Use Object Storage Service to generate public URLs. Do not use private network addresses.
  • Adjust the transfer method
If you cannot use a public URL, switch to a method from the table below. See Pass local files (Base64 encoding or file path).
TypeSpecificationsDashScope SDK (Python, Java)OpenAI-compatible / DashScope HTTP
ImageGreater than 7 MB and less than 10 MBPass the local pathOnly public URLs are supported. Use Object Storage Service.
ImageLess than 7 MBPass the local pathBase64 encoding
VideoGreater than 100 MBOnly public URLs are supported. Use Object Storage Service.Only public URLs are supported. Use Object Storage Service.
VideoGreater than 7 MB and less than 100 MBPass the local pathOnly public URLs are supported. Use Object Storage Service.
VideoLess than 7 MBPass the local pathBase64 encoding
AudioGreater than 10 MBOnly public URLs are supported. Use Object Storage Service.Only public URLs are supported. Use Object Storage Service.
AudioGreater than 7 MB and less than 10 MBPass the local pathOnly public URLs are supported. Use Object Storage Service.
AudioLess than 7 MBPass the local pathBase64 encoding
  • Base64 encoding increases the data size. Therefore, the original file must be smaller than 7 MB.
  • Using Base64 encoding or a local file path can prevent server-side download timeouts and improve stability.

url error, check url!

  • Reason 1: The model name does not match the API endpoint. For example, you use a multimodal endpoint to call a text model, or a text endpoint to call a multimodal model.
Solution:
  1. When you use multimodal models such as qwen3.6-plus and qwen3-vl-plus through DashScope, use the MultiModalConversation.call() method or the multimodal-generation endpoint. See Image and video understanding.
If you use the spring-ai-alibaba framework, confirm that you set the multimodal parameter withMultiModel.
  1. When you use text models such as qwen3-max and qwen3.6-plus through DashScope, use Generation.call() or the text-generation endpoint. See Text generation overview.
  • Reason 2: The DashScope SDK version is outdated. Older versions cannot resolve the correct server address for image or video generation models.
Solution: Install the SDK

Don't have authorization to access the media resource during the data inspection process.

Cause: The signed file URL in OSS has expired. Solution: Access the file URL within its validity period.

The item of content should be a message of a certain modal.

Cause: When using the DashScope SDK to call a multimodal model, the key for each element in the content array must be image, video, audio, or text. Solution: Use the correct content parameter.

Invalid video file.

Cause: The input video file is invalid. Solution: Check whether the video file is corrupted or in an unsupported format.

The video modality input does not meet the requirements because: The video file is too long.

Cause: The video duration exceeds the limit for the Qwen-VL or Qwen-Omni model. Solution:
  • Qwen2.5-VL: 2 seconds to 10 minutes.
  • Other Qwen-VL or Qwen-Omni models: 2 to 40 seconds.

Field required: xxx

Cause: An input parameter is missing. Solution: Add the corresponding parameter based on the error message xxx.

The request is missing required parameters or in a wrong format, check the parameters that you send.

Cause: A required input parameter is missing or has a wrong format. Solution: Verify that request parameters are complete and in the correct format.

Missing training files.

Cause: A parameter is incorrect, missing, or has a format issue.

The style is invalid.

Cause: The style value is not in the allowed range. Solution: Check that the style parameter value is valid.

parameters.video_ratio must be 9:16 or 3:4.

Cause: The video_ratio parameter accepts only "9:16" or "3:4". Solution: Change the video_ratio parameter to "9:16" or "3:4".

input json error.

Cause: The input JSON is incorrect. Solution: Check that the JSON format of the request is correct.

read image error.

Cause: Failed to read the image. Solution: Check whether the image file is corrupted or in an unsupported format.

the parameters must conform to the specification: xxx.

Cause: An input parameter is out of range. Solution: Correct the parameter value based on the error message xxx.

The size of person image and coarse_image are not the same.

Cause: The resolution of coarse_image differs from person_image. Solution: Set the resolution of coarse_image to match person_image.

The request is missing required parameters or the parameters are out of the specified range, check the parameters that you send.

Cause: A required parameter is missing or out of bounds. Solution: Correct the request parameters.

image format error

Cause: The image format is incorrect. Solution: The value must be an image URL or a Base64 string.

No messages found in input

Cause: The request parameters must contain the messages field. Solution: See Qwen - image editing.

Invalid image format or corrupted file

Cause: The input image format is incorrect or the file is corrupted. Solution: Verify the image is not corrupted and meets format requirements.

download image failed

Cause: The image cannot be downloaded. Solution: Verify the file can be downloaded.

messages length only support 1

Cause: The length of the messages array can only be 1. Solution: You can pass only one message. See Qwen - image editing.

content length only support 2

Cause: The length of the content array can only be 2. Solution: You can pass only one set of text and image. See Qwen - image editing.

lack of image or text

Cause: The request parameters are missing the image or text field. Solution: See Qwen - image editing.

num_images_per_prompt must be 1.

Cause: A request parameter is invalid. The parameter n can only be 1. Solution: Set n to 1.

Input files format not supported.

Cause: The audio or image format is unsupported. Solution: Supported audio formats: mp3, wav, aac. Supported image formats: jpg, jpeg, png, bmp, webp.

Failed to download input files.

Cause: Failed to download the input files. Solution: Verify the file URL is accessible and the network is working.

oss download error.

Cause: Failed to download the input image. Solution: Verify the OSS link is correct and accessible.

The image content does not comply with green network verification.

Cause: The image content is not compliant. Solution: Replace the image with one that passes content moderation.

read video error.

Cause: Failed to read the video. Solution: Check whether the video file is corrupted or in an unsupported format.

the size of input image is too small or too large.

Cause: The input image size is out of range. Solution: Adjust the image size to meet the API requirements.

The type or value of {parameter} is out of definition.

Cause: The parameter type or value does not meet the requirements. Solution: Check the API documentation for valid parameter values.

The request parameter is invalid, check the request parameter.

Cause: The aspect ratio parameter is invalid. Solution: Use "1:1" or "3:4".

request timeout after 23 seconds.

Cause: No data was sent to the service for more than 23 seconds. This occurs with speech recognition (Paraformer) or speech synthesis (CosyVoice). Solution: Check why no data was sent for an extended period. End the task if you do not plan to send data within 23 seconds.

Ensure input text is valid.

Cause: When using speech synthesis (CosyVoice), the text to be synthesized was not sent. Possible causes: the text parameter has no value, or a code exception prevented the assignment. Solution: Verify that the text parameter is assigned and sent.

Missing required parameter 'payload.model'! Please follow the protocol!

Cause: When using speech synthesis (CosyVoice), the model parameter was not specified. Solution: Specify the model parameter.

[tts:]Engine return error code: 418

Cause: When using speech synthesis (CosyVoice), the voice parameter is wrong, or the model version does not match the voice version. Solution:
  1. Check the voice parameter:
    • For a default voice, verify it against the "voice parameter" in the voice list.
  2. Check version matching: v2 models require v2 voices. v1 models require v1 voices. Do not mix them.

Request voice is invalid!

Cause: When using speech synthesis (CosyVoice), the voice parameter was not set. Solution: Assign a value to the voice parameter. For the WebSocket API, configure parameters in the correct JSON format.

ref_images_url and obj_or_bg must be the same length.

Cause: When using the multi-image reference feature of Wan - general video editing, the ref_images_url and obj_or_bg arrays have different lengths. Solution: Set ref_images_url and obj_or_bg to the same length.

check input data style.

Cause: An input parameter does not meet requirements. Solution: Correct the input parameters.

An error during model pre-process.

Cause: The content field format is wrong. Solution:
  • Do not set content to an array type, such as [{"type": "text", "text": "Who are you?"}].

The image size is not supported for the data inspection.

Cause:
  • The image dimensions do not meet the Qwen-VL model's requirements.
  • The output image size exceeds 10 MB.
Solution:
  • Image dimensions must meet these requirements:
    • Width and height must both be at least 10 pixels.
    • Aspect ratio must not exceed 200:1 or 1:200.
  • Adjust the image generation parameters.

Wrong Content-Type of multimodal url

Cause : The Content-Type in the URL response header is wrong.
The Qwen-VL model supports these Content-Types: image/bmp, image/icns, image/x-icon, image/jpeg, image/jp2, image/png, image/sgi, image/tiff, and image/webp. See Images supported by the Qwen-VL model.
Solution : To view the Content-Type field:
  1. Open a browser such as Chrome or Firefox.
  2. Press F12 or right-click and select "Inspect" to open developer tools.
  3. Switch to the Network tab.
  4. Enter the image URL in the address bar.
  5. Find the request, then check the Content-Type in the "Response Headers" section.

Text request limit violated, expected 1.

Cause: In a WebSocket API call to CosyVoice, you sent the continue-task instruction multiple times after setting enable_ssml to true. Solution: When enable_ssml is true, send the continue-task instruction only once.

SSML text is not supported at the moment!

Cause: The current CosyVoice model or voice does not support SSML, or SSML is used incorrectly. Solution: Check the Limitations.

400-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, seed is not in the range [0, 231-1]. Solution: Set seed to a value in [0, 231-1].

400-invalid_request_error

you must provide a model parameter.

Cause: The model parameter was not provided in the request. Solution: Add the model parameter to the request.

400-InvalidParameter.NotSupportEnableThinking

The model xxx does not support enable_thinking.

Cause: The model does not support enable_thinking. Solution: Remove enable_thinking from the request, or use a model that supports thinking mode.

400-invalid_value

The requested voice 'xxx' is not supported.

Cause: The selected voice belongs to a different model. Solution: Set target_model for voice cloning to match the model for speech synthesis.

400-Arrearage

Access denied, make sure your account is in good standing.

Cause: Account has an overdue payment. Solution: Check Billing Overview. If no payment is overdue, verify the API key belongs to your account. If overdue, add funds and wait for the balance to update before retrying.

400-DataInspectionFailed/data_inspection_failed

Input or output data may contain inappropriate content. / Input data may contain inappropriate content. / Output data may contain inappropriate content.

Cause: Content blocked by moderation. Solution: Modify the input and retry.

Input xxx data may contain inappropriate content.

Cause: The input data, such as the prompt or image, may contain sensitive content. Solution: Check and modify the input, then try again.

400-APIConnectionError

Connection error.

Cause: Network connection error (often proxy-related). Solution: Disable or restart proxy.

400-InvalidFile.DownloadFailed

The audio file cannot be downloaded.

Cause: Failed to download audio file (Paraformer). Solution: Verify the URL is publicly accessible.

400-InvalidFile.AudioLengthError

Audio length must be between 1s and 300s.

Cause: Audio duration out of range. Solution: Ensure duration is 1-300 seconds.

Audio length must be between 1s and 180s.

Cause: Audio duration out of range. Solution: Ensure duration is 1-180 seconds.

400-InvalidFile.NoHuman

The input image has no human body. Upload another image with single person.

Cause: There is no person in the input image, or no face was detected. Solution: Upload a photo of a single person.

400-InvalidFile.BodyProportion

The proportion of the detected person in the picture is too large or too small, upload another image.

Cause: The person's proportion in the image does not meet the requirement. Solution: Upload an image with a suitable person proportion.

400-InvalidFile.FacePose

The pose of the detected face is invalid, upload another image with whole face and expected orientation.

Cause: The facial pose does not meet the requirement. The face must be visible and the head must not be severely skewed. Solution: Upload an image with a visible, properly oriented face.

The pose of the detected face is invalid, upload another image with the expected oriention.

Cause: The head orientation is too skewed. Solution: Upload an image where the face is not skewed.

The pose of the detected face is invalid, upload another image with the expected orientation.

Cause: The head orientation is too skewed. Solution: Upload an image where the face is not skewed.

400-InvalidFile.Resolution

The image resolution is invalid, make sure that the largest length of image is smaller than 7000, and the smallest length of image is larger than 400.

Cause: The image resolution does not meet the requirement. Solution: Resolution must be between 400*400 and 7,000*7,000.

The image resolution is invalid, make sure that the largest length of image is smaller than 4096, and the smallest length of image is larger than 224.

Cause: The image resolution does not meet the requirement. Solution: The longest side must be less than 4,096 pixels. The shortest side must be greater than 224 pixels.

The image resolution is invalid, make sure that the largest length of image is smaller than xxx, and the smallest length of image is larger than yyy.

Cause: The image resolution does not meet the requirement. Solution: Resolution must be between yyy*yyy and xxx*xxx.

The image resolution is invalid, make sure that the aspect ratio is smaller than xxx, and largest length of image is smaller than yyy.

Cause: The image resolution does not meet the requirement. Solution: The aspect ratio must be less than xxx, and resolution must not exceed yyy*yyy.

Invalid video resolution. The height or width of video must be xxx ~ yyy.

Cause: The video resolution does not meet the requirement. Solution: Each side must be between xxx and yyy pixels.

400-InvalidFile.FPS

Invalid video FPS. The video FPS must be 15 ~ 60.

Cause: The video frame rate does not meet the requirement. Solution: Frame rate must be between 15 and 60 fps.

400-InvalidFile.Value

The value of the image is invalid, upload other clearer image.

Cause: The image is too dark. Solution: Upload a clearer image with adequate lighting.

400-InvalidFile.FrontBody

The pose of the detected person is invalid, upload another image with the front view.

Cause: The person has their back to the camera. Solution: Upload an image where the person faces the camera.

400-InvalidFile.FullFace

The pose of the detected face is invalid, upload another image with whole face.

Cause: The face is not fully visible. Solution: Upload an image where the entire face is visible and not obstructed.

400-InvalidFile.FaceNotMatch

There are no matched face in the video with the provided reference image.

Cause: The face in the reference image does not match the face in the video. Solution: Ensure the reference image and video contain the same person.

400-InvalidFile.Content

The first frame of input video has no human body. Please choose another clip.

Cause: The first frame must contain a person. Solution: Select a video clip with a person in the first frame.

The human is too small in the first frame of input video. Please choose another clip.

Cause: The person in the first frame is too small. Solution: Select a video with a larger person in the first frame.

The human is not clear in the first frame of input video. Please choose another clip.

Cause: The person in the first frame is not clear. Solution: Select a video with a clear person in the first frame.

The input image has no human body or multi human bodies. Upload another image with single person.

Cause: The input image has no person or multiple people. Solution: Upload a photo of a single person.

The input image has no human body or has unclear human body. Upload another image.

Cause: The human body in the input image is incomplete or absent. Solution: Upload an image with a complete, clear human body.

The input image has multi human bodies. Upload another image with single person.

Cause: The input image has multiple people. Solution: Upload a photo of a single person.

400-InvalidFile.FullBody

The human is not fullbody in the first frame of input video. Please choose another clip.

Cause: The person in the first frame is not a full body shot. Solution: The entire body must be visible in the first frame.

The pose of the detected person is invalid, upload another image with whole body, or change the ratio parameter to 1:1.

Cause: The person's pose does not meet the requirement. Solution: Upload an image that meets the requirements. For a head shot, the entire head must be visible. For a half-body shot, the body from the hips up must be visible. Or change the aspect ratio to 1:1.

400-InvalidFile.BodyPose

The pose of the detected person is invalid, upload another image with whole body and expected orientation.

Cause: The person's pose does not meet the requirement. Solution: Upload an image where the shoulders and ankles are visible, the person is not sitting or turned away, and the orientation is not severely skewed.

400-InvalidFile.Size

Invalid file size. The video file size must be less than 200MB, and the audio file size must be less than 15MB.

Cause: The file size exceeds the limit. Solution: Video must be under 200 MB. Audio must be under 15 MB.

Invalid file size, The image file size must be smaller than 5MB.

Cause: The file size exceeds the limit. Solution: Image must be under 5 MB.

Invalid file size. The video/audio/image file size must be less than xxxMB.

Cause: The file size exceeds the limit. Solution: Keep the file under the specified size limit.

400-InvalidFile.Duration

Invalid file duration. The file duration must be xxx s ~ yyy s.

Cause: The file duration is out of range. Solution: Duration must be between xxx and yyy seconds.

400-InvalidFile.ImageSize

The size of image is beyond limit.

Cause: The image size exceeds the limit. Solution: Aspect ratio must not exceed 2, and the longest side must not exceed 4096.

400-InvalidFile.AspectRatio

Invalid file ratio. The file aspect ratio (height/width) must be between 3:1 and 1:3.

Cause: The file aspect ratio is out of range. Solution: Aspect ratio must be between 3:1 and 1:3.

Invalid file ratio. The file aspect ratio (height/width) must be between 2.0 and 0.5.

Cause: The file aspect ratio is out of range. Solution: Aspect ratio must be between 2.0 and 0.5.

400-InvalidFile.Openerror

Invalid file, cannot open file as video/audio/image.

Cause: The file cannot be opened. Solution: Check whether the file is corrupted or in an unsupported format.

400-InvalidFile.Template.Content

Invalid template content.

Cause: You lack permission for the action template, or the template content is invalid. Solution: Check the template permissions and content.

400-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.

Cause: The file format is unsupported. Solution: Supported formats: video (mp4, avi, mov), audio (mp3, wav, aac), image (jpg, jpeg, png, bmp, webp).

400-InvalidFile.MultiHuman

The input image has multi human bodies. Upload another image with single person.

Cause: The input image has multiple people. Solution: Upload a photo of a single person.

400-InvalidPerson

The input image has no human body or multi human bodies. Upload another image with single person.

Cause: The input image has no person or multiple people. Solution: Upload a photo of a single person.

400-InvalidParameter.DataInspection

Unable to download the media resource during the data inspection process.

Cause: The download of an image or audio file timed out. Solution: Store files in an OSS bucket in the same region as the model service.

400-FlowNotPublished

Flow has not published yet, please publish flow and try again.

Cause: The flow is not published. Solution: Publish the flow and try again.

400-InvalidImage.ImageSize

The size of image is beyond limit.

Cause: The image size exceeds the limit. Solution: The image aspect ratio must not be greater than 2, and the longest side must not be greater than 4096.

400-InvalidImage.NoHumanFace

No human face detected.

Cause: No human face was detected. This occurs only with asynchronous query APIs for generation tasks. Solution: Upload an image that contains a clear human face.

400-InvalidImageResolution

The input image resolution is too large or small.

Cause: The input image resolution is too large or too small. Solution: Resolution must be between 256 x 256 and 5760 x 3240 pixels.

400-InvalidImageFormat

The input image is in invalid format.

Cause: The image format is unsupported. Solution: Use JPEG, PNG, JPG, BMP, or WEBP format.

400-InvalidURL

Invalid URL provided in your request.

Cause: The URL is invalid. Solution: Use a valid URL.

Required URL is missing or invalid, check the request URL.

Cause: The input URL is invalid or missing. Solution: Provide the correct URL.

The request URL is invalid, make sure the url is correct and is an image.

Cause: The input URL is invalid. Solution: Verify the URL is correct and points to an image file.

The input audio is longer than xxs.

Cause: The input audio exceeds the maximum duration of xx seconds. Solution: Trim the audio to under xx seconds.

File size is larger than 15MB.

Cause: The input audio exceeds 15 MB. Solution: Compress the audio to under 15 MB.

File type is not supported. Allowed types are: .wav, .mp3.

Cause: The audio format is unsupported. Solution: Use wav or mp3 format.

The request URL is invalid, check the request URL is available and the request image format is one of the following types: JPEG, JPG, PNG, BMP, and WEBP.

Cause: The image is inaccessible or the format is unsupported. Solution: Verify the URL is accessible and the image format is JPEG, JPG, PNG, BMP, or WEBP.

400-InvalidImage.FileFormat

Invalid image type. Ensure the uploaded file is a valid image.

Cause: The image format is unsupported. Solution: Use JPG, JPEG, PNG, BMP, or WEBP.

400-InvalidURL.ConnectionRefused

Connection to xxx refused, please provide available URL.

Cause: The download was refused. Solution: Provide an available URL.

400-InvalidURL.Timeout

Download xxx timeout, check network connection.

Cause: The download timed out. Solution: Check network connectivity.

400-BadRequestException

Invalid part type.

Cause: Document processing does not support this file type. Solution: Upload a supported file type.

400-BadRequest.EmptyInput

Required input parameter missing from request.

Cause: The input parameter was not added to the request. Solution: Add the input parameter to the request.

400-BadRequest.EmptyParameters

Required parameter "parameters" missing from request.

Cause: The parameters parameter was not added to the request. Solution: Add the parameters parameter to the request.

400-BadRequest.EmptyModel

Required parameter "model" missing from request.

Cause: The model parameter was not provided in the request. Solution: Add the model parameter to the request.

400-BadRequest.IllegalInput

The input parameter requires json format.

Cause: The input format is not valid JSON. Solution: Verify the input is standard JSON.

400-BadRequest.InputDownloadFailed

Failed to download the input file: xxx.

Cause: Failed to download the input file. Possible causes: download timeout, download failure, or file exceeding the size quota. Solution: Troubleshoot based on the error message xxx.

Failed to download the input file.

Cause: When using Qwen-TTS for voice cloning, the server failed to download the audio. Solution: Verify the audio file can be downloaded and is under 10 MB.

400-BadRequest.UnsupportedFileFormat

Input file format is not supported.

Cause: The file format is unsupported. Solution: Use a supported format.

400-BadRequest.TooLarge

Payload Too Large.

Cause: The file size exceeds the limit. Solution:
  • When the "purpose" parameter is "file-extract", documents cannot exceed 150 MB and images cannot exceed 20 MB.
  • When the "purpose" parameter is "batch", files cannot exceed 500 MB. Split the file and upload the files in batches.

400-BadRequest.ResourceNotExist

The Required resource not exist.

Cause:

400-Throttling.AllocationQuota

Free allocated quota exceeded.

Cause: The number of custom vocabularies exceeds the limit (default: 10 per account). Solution: Delete some custom vocabularies.

Maximum voice storage limit exceeded, please delete existing voices.

Cause: When using Qwen-TTS for voice cloning, your account exceeds the voice limit. Solution: Delete some voices or request a quota increase.

400-InvalidGarment

Missing clothing image.Please input at least one top garment or bottom garment image.

Cause: A clothing image is missing. Solution: Provide at least one image of a top garment (top_garment_url) or a bottom garment (bottom_garment_url).

400-InvalidSchema

Database schema is invalid for text2sql.

Cause: Database schema information was not provided. Solution: Enter the database schema information.

400-InvalidSchemaFormat

Database schema format is invalid for text2sql.

Cause: The data table information format is invalid. Solution: Check and correct the format of the data table information.

400-InvalidInputLength

The image resolution is invalid, 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.

Cause: The image dimensions or file size do not meet the requirements. Solution: See Input image requirements.

400-FaqRuleBlocked

Input or output data is blocked by faq rule.

Cause: The FAQ rule intervention module was hit.

400-ClientDisconnect

Client disconnected before task finished!

Cause: The client disconnected before the task finished. This occurs with speech synthesis or recognition services. Solution: Do not disconnect before the task completes.

400-ServiceUnavailableError

Role must be user or assistant and Content length must be greater than 0.

Cause: The input content length is 0 or the role is incorrect. Solution: Verify the input content length is greater than 0 and the role parameter meets API requirements.

400-IPInfringementSuspect

Input data is suspected of being involved in IP infringement.

Cause: The input data is suspected of intellectual property infringement. Solution: Check the input to ensure it does not contain content that poses an infringement risk.

400-UnsupportedOperation

The operation is unsupported on the referee object.

Cause: The associated object does not support the operation. Solution: Verify the operation object and type match.

400-CustomRoleBlocked

Input or output data may contain inappropriate content with custom rule.

Cause: The request or response did not pass the custom policy. Solution: Check the content or adjust the custom policy.

400-Audio.PreprocessError

Audio preprocess error.

Cause: When using Qwen-TTS for voice cloning, audio preprocessing failed. Possible causes: the text parameter differs significantly from the audio, the effective speech is too short, or the audio contains no sound. Solution: Adjust the text parameter. If the problem persists, refer to our recording guide and record the audio again.

No segments meet minimum duration requirement

Cause: When using Qwen-TTS for voice cloning, the effective speech in the audio is too short. Solution: Follow the recording guide and record again.

400-BadRequest.VoiceNotFound

Voice '%s' not found.

Cause: When using Qwen-TTS for voice cloning, you called the delete voice API, but the voice is already deleted or does not exist. Solution: Verify the voice parameter is correct.

400-Audio.DecoderError

Decoder audio file failed.

Cause: Audio decoding failed when using Qwen-TTS or CosyVoice for voice cloning. Solution: Check the audio file for corruption and verify it meets the required format. Qwen-TTS has specific requirements. CosyVoice supports WAV (16-bit), MP3, or M4A.

400-Audio.AudioRateError

File sample rate unsupported.

Cause: The audio sample rate is unsupported when using Qwen-TTS or CosyVoice for voice cloning. Solution: Use a sample rate of at least 24000 Hz.

400-Audio.DurationLimitError

Audio duration exceeds maximum allowed limit.

Cause: The audio for Qwen-TTS voice cloning is too long. Solution: Keep the audio under 60 seconds.

401-InvalidApiKey/invalid_api_key

Invalid API-key provided. / Incorrect API key provided.

Cause: The API key is incorrect. Solution: Common causes and solutions:
  • Incorrect environment variable
    • Incorrect:api_key=os.getenv("YOUR_API_KEY") . YOUR_API_KEY is treated as an environment variable name, not a key.
    • Correct:
      • If the environment variable is set: Use api_key=os.getenv("DASHSCOPE_API_KEY").
Make sure you have set DASHSCOPE_API_KEY
  • If the environment variable is not set: Use api_key = "YOUR_API_KEY".
Do not use this method in the production environment.
  • Incorrect entry : API keys start with sk-. You may have entered a key from another provider.
  • Coding Plan dedicated API key : The Coding Plan provides a dedicated API key (starting with sk-sp-). This key must be used with the dedicated API endpoint (such as https://coding-intl.dashscope.aliyuncs.com/v1). Update both the API key and the base URL.
  • Incorrect endpoint or API key : Ensure your base URL is set to https://dashscope-intl.aliyuncs.com/compatible-mode/v1 (OpenAI compatible) or https://dashscope-intl.aliyuncs.com/api/v1 (DashScope), and that your API key was created in Qwen Cloud. Verify your API key on the API Keys page.
  • Tool compatibility issues : A third-party tool is misconfigured. For example, Dify's latest plugin version is unstable -- install an older TONGYI plugin version. Or in older versions of Cline, API Provider must be OpenAI Compatible, not Alibaba Qwen.
If none of the above apply, the API key may have been deleted. Get a new key and retry.

401-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 is invalid, or the account is not a member of this workspace.
  • The endpoint is incorrect.
Solution:
  • Confirm the WorkspaceId is correct and the account is a workspace member, then retry.

403-AccessDenied/access_denied

Current user api does not support asynchronous calls.

Cause: The API does not support asynchronous invocation. 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. Solution: Call the file upload API to generate a new credential.

Access denied.

Reason: Access denied. You lack the required permissions, or the model's free quota is exhausted and it does not support paid usage.

403-AccessDenied.Unpurchased

Access to model denied. Make sure you are eligible for using the model.

Cause: You have not logged in to Qwen Cloud, or you do not have a Qwen Cloud account. Solution: Sign in to Qwen Cloud:
  1. Register an account : If you do not have a Qwen Cloud account, register one.
  2. Sign in: Go to Qwen Cloud with your Qwen Cloud account.

403-Model.AccessDenied

Model access denied.

Cause: You lack permission to call this model. Solution:
  • Verify your API key is correct and has access to this model.
  • Go to the Models page to check if the model is activated.

403-App.AccessDenied

App access denied.

Cause: You lack permission to access the model. Solution:
  • Confirm that the workspace has access authorization.
  • Verify the API KEY is correct.
  • If Claude Code reports an error, use the API key of the default workspace.

403-Workspace.AccessDenied

Workspace access denied.

Cause: You lack permission to access the workspace's model. Solution:
  • Verify you are a member of the workspace.
  • Use the Qwen Cloud account's API key, which has permissions for all workspaces.

403-AllocationQuota.FreeTierOnly

The free tier of the model has been exhausted. If you want to continue access the model on a paid basis, please disable the "use free tier only" mode.

Cause : Free quota only is enabled and the free quota is exhausted.
Free quota display has an hourly delay. The displayed quota may still show remaining quota after it is used up.
Solution :
  • To start paid calls, wait until your account shows the free quota is exhausted, then turn off Free quota only.
  • If you encounter this with the Coding Plan, it is likely a configuration issue. The Coding Plan requires its own Base URL and API key. See Getting started.

404-ModelNotFound/model_not_found

The provided model xxx is not supported by the Batch API.

Cause: The model does not support Batch calls, or the model name is misspelled. Solution: See OpenAI compatible - Batch (file input) for supported models and 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.

Cause: The model does not exist, or Qwen Cloud is not activated. Solution:

404-model_not_supported

Unsupported model xxx for OpenAI compatibility mode.

Cause: The model does not support OpenAI compatible mode. Solution: Use the DashScope method instead.

404-WorkSpaceNotFound

WorkSpace can not be found.

Cause: The workspace does not exist.

404-NotFound

Not found!

Cause:
  • The resource does not exist.
  • The custom vocabulary ID is invalid or does not exist.
Solution:
  • Verify the resource ID.
  • Verify the custom vocabulary ID and call it as described in the API reference.

429-Throttling

Requests throttling triggered.

Cause: The API call triggered rate limiting. Solution: Reduce the call frequency or retry later.

Too many requests in route. Try again later.

Cause : Too many requests triggered rate limiting. Solution : Retry later.

429-Throttling.RateQuota/LimitRequests/limit_requests

You have exceeded your request limit./Requests rate limit exceeded, try again later. /You exceeded your current requests list.

Cause: The call frequency (RPS or RPM) triggered rate limiting. Solution: See Rate limits and reduce the call frequency.

429-Throttling.BurstRate/limit_burst_rate

Request rate increased too quickly. To ensure system stability, please adjust your client logic to scale requests more smoothly over time.

Cause : The call frequency increased sharply, triggering the system stability protection. Solution : Adopt a smooth request strategy such as uniform scheduling, exponential backoff, or request queue buffering. Distribute requests evenly within the time window to avoid instantaneous peaks.

429-Throttling.AllocationQuota/insufficient_quota

Allocated quota exceeded, please increase your quota limit./ You exceeded your current quota, check your plan and billing details.

Cause: The token consumption rate (TPS/TPM) triggered Rate limits. Solution: See How are tokens calculated? and adjust the call strategy per the Rate limits rules.

Too many requests. Batch requests are being throttled due to system capacity limits. Try again later.

Cause: Too many batch requests triggered rate limiting. Solution: Retry later.

Free allocated quota exceeded.

Cause: The free quota has expired or been used up, and the model does not support pay-as-you-go. Solution: Use another model.

429-CommodityNotPurchased

Commodity has not purchased yet.

Cause: The workspace is not subscribed. Solution: Subscribe to the workspace service first.

429-PrepaidBillOverdue

The prepaid bill is overdue.

Cause: The workspace subscription bill has expired.

429-PostpaidBillOverdue

The postpaid bill is overdue.

Cause: The model inference product has expired.

500-InternalError/internal_error

An internal error has occured, try again later or contact service support.

Cause: An internal error occurred. Solution:

Internal server error!

Cause: An internal algorithm error occurred. Solution: Retry later.

500-InternalError.FileUpload

oss upload error.

Cause: File upload failed. Solution: Check your OSS configuration and network.

500-InternalError.Upload

Failed to upload result.

Cause: Failed to upload the generation result. Solution: Check the storage configuration or retry later.

500-InternalError.Algo

inference internal error.

Cause: A service exception occurred. Solution: Try again first to rule out a sporadic issue.

Expecting ',' delimiter: line x column xxx (char xxx)

Cause: The model generated invalid JSON, preventing a normal tool call. Solution: Switch to the latest model or optimize the prompt and retry.

Missing Content-Length of multimodal url.

Cause: The Content-Length field is missing from the response header of the URL request. Solution: Try a different image link if the problem persists. To view the Content-Length field:
  1. Open a browser such as Chrome or Firefox.
  2. Press F12 or right-click and select "Inspect" to open developer tools.
  3. Switch to the Network tab.
  4. Enter the image URL in the address bar.
  5. Find the request, then check the Content-Length in the "Response Headers" section.

An error occurred in model serving, error message is: [Request rejected by inference engine!]

Cause: An error occurred on the model service server. Solution: Retry later.

An internal error has occured during algorithm execution.

Cause: An error occurred during algorithm runtime. Solution: Retry later.

Inference error: Inference error.

Cause: An inference error occurred. Solution: Check the input image for corruption. Verify the person image contains a complete, clear face.

Role must be in [user, assistant]

Cause: When using Qwen-MT, the messages array contains a role other than user. Solution: The messages array must contain only one element with role user.

Embedding_pipeline_Error: xxx

Cause: An error occurred in image or video pre-processing. Solution: Verify the uploaded image or video and request code meet requirements, then retry.

Receive batching backend response failed!

Cause: An internal service error occurred. Solution: Retry later.

An internal error has occured during execution, try again later or contact service support. / algorithm process error. / inference error. / An internal error occurs during computation, please try this model later.

Cause: An internal algorithm error occurred. Solution: Retry later.

list index out of range

Cause: The last element in the messages array must be a User Message. Solution: Adjust the messages array so the last element is {"role": "user", ...}.

500-InternalError.Timeout

An internal timeout error has occured during execution, try again later or contact service support.

Cause: An asynchronous task returned no result within 3 hours. Solution: Check the task execution status or contact technical support.

500-SystemError

An system error has occured, try again later.

Cause: A system error occurred. Solution: Retry later.

500-ModelServiceFailed

Failed to request model service.

Cause: The model service call failed. Solution: Retry later.

500-RequestTimeOut

Request timed out, try again later. / Response timeout! / I/O error on POST request for "https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions": timeout

Cause:
  • Language model: The request timed out (timeout is 300 seconds).
  • Speech recognition (Paraformer): No audio or only silent audio was sent for a long time.
  • Image generation/editing model: Processing time exceeded the limit due to large image dimensions or high complexity.
Solution:
  • Language model: Use streaming output. See Streaming output.
  • Paraformer: Set heartbeat to true, or end the recognition task promptly.
  • Image model: Reduce image resolution, simplify editing requirements, or retry later.

500-InvokePluginFailed

Failed to invoke plugin.

Cause: The plug-in call failed. Solution: Check the plug-in configuration and availability.

500-AppProcessFailed

Failed to proceed application request.

Cause: The application flow failed. Solution: Check the application configuration and flow nodes.

500-RewriteFailed

Failed to rewrite content for prompt.

Cause: The prompt rewriting model call failed. Solution: Retry later.

500-RetrievalFailed

Failed to retrieve data from documents.

Cause: Document retrieval failed. Solution: Check the document index and retrieval configuration.

500/503-ModelServingError

Too many requests. Your requests are being throttled due to system capacity limits. Try again later.

Cause: Network resources are saturated. Solution: Retry later.

503-ModelUnavailable

Model is unavailable, try again later.

Cause: The model is temporarily unavailable. Solution: Retry later.

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: No API key was provided when using the DashScope SDK. Solution: See Configure your API key.

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: No API key was provided. Solution:
  • Pass the API key using an environment variable (recommended)
Set DASHSCOPE_API_KEY (see Configure your API key). When initializing the client, read the key with os.getenv: client = OpenAI(api_key=os.getenv("DASHSCOPE_API_KEY"),...)
  • Pass the API key in plaintext (testing only)
Pass the API key directly to api_key: client = OpenAI(api_key="YOUR_API_KEY", ...) Note: This poses a security risk. Do not use in production.

Bad Request for url: xxx

Cause: Adding response.raise_for_status() with the Python requests library prevents the server's error details from being returned. Solution: Use print(response.json()) to view the server response.

Cannot resolve symbol 'ttsv2'

Cause: The DashScope SDK is outdated for speech synthesis (CosyVoice). Solution: Install the latest DashScope SDK.

NetworkError

NoApiKeyException: Can not find api-key.

Cause: The environment variable has not taken effect. Solution: Restart the client or IDE and retry. See FAQ.

ConnectException: Failed to connect to dashscope-intl.aliyuncs.com

Cause: The local network has an issue. Solution: Check local network settings. You may have a certificate issue preventing HTTPS access, or a misconfigured firewall. Try a different network environment or server.

InputRequiredException: Parameter invalid: text is null

Cause : When using speech synthesis (CosyVoice), the text to be synthesized was not sent. Solution: Assign a value to the text parameter.

MultiModalConversation.call() missing 1 required positional argument: 'messages'

Cause : The 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 according to the input file format.

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, the ID of each request must be unique. Solution: Verify the input file per the input file format and ensure all request IDs are unique.

Upload file capacity exceed limit. / Upload file number exceed limit.

Cause: The file upload failed. The storage space under the current account is full or nearly full. Solution: Use the OpenAI compatible - File API to delete unnecessary files. Storage supports up to 10,000 files and 100 GB total.

WebSocket errors

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 with Paraformer, the recognition result data is too large. Solution: Send audio in segments. Each segment should be about 100 milliseconds, with data between 1 KB and 16 KB.

TimeoutError: websocket connection could not established within 5s. Check your network connection, firewall settings, or server status.

Cause: When using CosyVoice speech synthesis, a WebSocket connection could not be established within 5 seconds. Solution: Check local network and firewall settings, or try a different network environment.

unsupported audio format:xxx

Cause: The CosyVoice voice cloning audio format does not meet requirements. Solution: Use WAV (16-bit), MP3, or M4A. The file extension alone does not guarantee the format. Use a tool like ffprobe or mediainfo to confirm the encoding format.

internal unknown error

Cause: The CosyVoice voice cloning audio format may not meet requirements. Solution: Use WAV (16-bit), MP3, or M4A. Use a tool like ffprobe or mediainfo to confirm the encoding format.

Invalid backend response received (missing status name)

Cause: When using the RESTful API for audio file recognition with Paraformer, a request parameter is misspelled. Solution: Check your code against the API reference.

NO_INPUT_AUDIO_ERROR

Cause: No valid speech was detected. Solution: For real-time speech recognition with Paraformer:
  1. Check whether there is audio input.
  2. Check whether the audio format is correct. Supported formats: pcm, wav, mp3, opus, speex, aac, amr.

SUCCESS_WITH_NO_VALID_FRAGMENT

Cause: The Paraformer recognition query succeeded, but VAD detected no valid speech. Solution: Verify the audio contains valid speech. Pure silence produces no recognition result.

ASR_RESPONSE_HAVE_NO_WORDS

Cause: The Paraformer recognition query succeeded, but the final result is empty. Solution: Check whether the audio contains valid speech, or whether all speech is filler words filtered out by disfluency_removal_enabled.

FILE_DOWNLOAD_FAILED

Cause: The Paraformer audio file failed to download. Solution: Verify the audio file path is correct and externally accessible.

FILE_CHECK_FAILED

Cause: The Paraformer audio file format is incorrect. Solution: Use single-track/dual-track WAV or MP3 format.

FILE_TOO_LARGE

Cause: The Paraformer audio file is too large. Solution: If the file exceeds 2 GB, segment it into smaller files.

FILE_NORMALIZE_FAILED

Cause: The Paraformer audio file failed to normalize. Solution: Check whether the audio file is corrupted and can be played.

FILE_PARSE_FAILED

Cause: The Paraformer audio file failed to parse. Solution: Check whether the audio file is corrupted and can be played.

MKV_PARSE_FAILED

Cause: The Paraformer MKV file failed to parse. Solution: Check whether the audio file is corrupted and can be played.

FILE_TRANS_TASK_EXPIRED

Cause: The Paraformer audio file recognition task has expired. Solution: The TaskId does not exist or has expired. Resubmit the task.

REQUEST_INVALID_FILE_URL_VALUE

Cause: The Paraformer file_url parameter is invalid. Solution: Verify the file_url parameter format.

CONTENT_LENGTH_CHECK_FAILED

Cause: The Paraformer content-length check failed. Solution: Verify content-length in the HTTP response matches the actual file size.

FILE_404_NOT_FOUND

Cause: The Paraformer file does not exist. Solution: Verify the file URL.

FILE_403_FORBIDDEN

Cause: You lack permission to download the Paraformer audio file. Solution: Check the file access permissions.

FILE_SERVER_ERROR

Cause: The file server is unavailable. Solution: Retry later or check the file server status.

AUDIO_DURATION_TOO_LONG

Cause: The Paraformer audio file exceeds 12 hours. Solution: Segment the audio and submit multiple recognition tasks. Use tools like FFmpeg to split the audio.

DECODE_ERROR

Cause: Paraformer failed to detect the audio file information. Solution: Verify the file is in a supported audio format.

CLIENT_ERROR -[qwen-tts:]Engine return error code: 411

Cause: When using Qwen-TTS real-time speech synthesis with qwen-tts-vc-realtime-2025-08-20, the default voice was used. This model supports only cloned voices. Solution: Use a voice generated by voice cloning, not the default voice.

NO_VALID_AUDIO_ERROR

Cause: When using Paraformer, the audio is invalid. Solution: Verify the audio format, sample rate, and other parameters meet requirements.

InvalidParameter: task can not be null

Cause: The input field is missing from the payload of the run-task or finish-task instruction, or the input.text field is missing from the continue-task instruction in the CosyVoice WebSocket API. Solution:
  1. run-task instruction: Verify the payload contains "input": {} (an empty object). The input field is required.
  2. continue-task instruction: Verify payload.input contains the text field with a non-empty value.
  3. finish-task instruction: Verify the payload contains "input": {}.

200-BailianGateway.Workspace.NotAuthorised

Cause: The URL contains special characters or uses a non-standard format, causing workspace authorization to fail. Solution: Return to the Qwen Cloud homepage and navigate to the target page.