Qwen
App · AI Models · 5 actions
Connect Qwen AI by Alibaba Cloud to answer questions, read and draw pictures, and make short videos with Qwen and Wan models.
Actions
| Action | What it does |
|---|---|
| Analyze an image | Ask Qwen a question about a picture, such as what it shows, what a receipt's total is, or whether a photo meets your rules, and get a written answer back. |
| Generate a video | Make a short video with Wan from a description, or bring a starting picture to life. |
| Generate an image | Draw pictures from a description with Qwen-Image, which is good at lettering and signs. |
| Get a video | Collect a video Qwen is still making, or finished after its 'Generate a video' step stopped waiting, by its task id. |
| Query Model | Send a message or question to a Qwen AI model and get a written response back. |
Analyze an image
Ask Qwen a question about a picture, such as what it shows, what a receipt's total is, or whether a photo meets your rules, and get a written answer back.
Inputs
- Picture
imagetextRequired - The picture to look at: upload it, pick a file from an earlier step, or paste its public web address. JPEG, PNG, WebP or BMP, up to 10 MB.
- Question
questiontextRequired - What you want to know about the picture, for example 'Describe this photo in two sentences' or 'What is the total on this receipt?'
- Model
modeltext - Which Qwen model looks at the picture.One of:
qwen3.7-plus(Qwen 3.7 Plus (balanced, recommended)),qwen3.8-max(Qwen 3.8 Max (most capable)),qwen3-vl-plus(Qwen3-VL Plus (vision model)). Default:qwen3.7-plus. - Region
regiontext - The Model Studio region your API key belongs to. Use International unless you created your key on the China (Beijing) console.One of:
international(International (Singapore)),china(China (Beijing)). Default:international.
Outputs
modeltext- The model that answered.
response_texttext- Qwen's answer.
Example output
{
"model": "qwen3.7-plus",
"response_text": "A golden retriever sitting on a beach at sunset, looking towards the sea."
}Generate a video
Make a short video with Wan from a description, or bring a starting picture to life. The step waits while Qwen makes it, usually a few minutes, and saves the video as a file for later steps.
Inputs
- Description
prompttextRequired - What happens in the video: the scene, the action and the camera, such as 'A cat runs across a sunny garden, the camera following it'. With a starting picture, say how it should move.
- Starting picture
starting_imagetext - Optional. A picture for the video to start from: upload it, pick a file from an earlier step, or paste its public web address. JPEG, PNG, WebP or BMP, up to 10 MB. The video then takes the picture's shape.
- Model
modeltext - Which Wan model makes it.One of:
wan3.0-video(Wan 3.0 (recommended)),wan3.0-video-prime(Wan 3.0 Prime (same quality, much faster)). Default:wan3.0-video. - Length (seconds)
durationnumber - How long the video is, from 2 to 30 seconds. Defaults to 5. Longer videos cost more.From 2 to 30.
- Resolution
resolutiontext - How sharp the video is. Defaults to 720p.One of:
480P(480p (quickest, lowest cost)),720P,1080P(1080p (sharpest, highest cost)). Default:720P. - Shape
aspect_ratiotext - The video's shape when there is no starting picture. Defaults to widescreen.One of:
16:9(Widescreen (16:9)),9:16(Tall (9:16)),1:1(Square (1:1)),4:3(Landscape (4:3)),3:4(Portrait (3:4)),21:9(Ultrawide (21:9)). Default:16:9. - Sound
soundtext - Whether Wan adds sound to the video.One of:
on(With sound),off(Silent). Default:on. - Region
regiontext - The Model Studio region your API key belongs to. Use International unless you created your key on the China (Beijing) console.One of:
international(International (Singapore)),china(China (Beijing)). Default:international.
Outputs
content_typetext- The file's type, such as image/png or video/mp4.
document_reftext- The saved file, for steps that take a file.
documentslist- The saved video, as a list of one file.
duration_secondsnumber- How long the video is, in seconds.
filenametext- The file's name.
modeltext- The model that made it, when known.
size_bytesnumber- The file's size in bytes.
statustext- 'succeeded'.
task_idtext- Qwen's id for the video task.
urltext- A link that opens the file in Lodol.
Example output
{
"content_type": "video/mp4",
"document_ref": "doc_0123456789abcdef0123456789abcdef",
"documents": [
{
"content_type": "video/mp4",
"document_ref": "doc_0123456789abcdef0123456789abcdef",
"filename": "qwen-video.mp4",
"size_bytes": 4182211,
"url": "/actions/core/serve-document/doc_0123456789abcdef0123456789abcdef"
}
],
"duration_seconds": 5,
"filename": "qwen-video.mp4",
"model": "wan3.0-video",
"size_bytes": 4182211,
"status": "succeeded",
"task_id": "0385dc79-5ff8-4d82-bcb6-9a1b2c3d4e5f",
"url": "/actions/core/serve-document/doc_0123456789abcdef0123456789abcdef"
}Generate an image
Draw pictures from a description with Qwen-Image, which is good at lettering and signs. The pictures are saved as files for later steps.
Inputs
- Description
prompttextRequired - What to draw: the subject, the setting, the style and any words that should appear in it.
- Model
modeltext - Which Qwen-Image model draws it.One of:
qwen-image-3.0(Qwen-Image 3.0 (recommended)),qwen-image-3.0-pro(Qwen-Image 3.0 Pro (finest detail and lettering)),qwen-image-2.1-turbo(Qwen-Image 2.1 Turbo (fastest, lowest cost)). Default:qwen-image-3.0. - Shape
sizetext - The picture's shape. Leave blank to let Qwen choose one that suits the description.One of:
1328*1328(Square (1:1)),1472*1104(Landscape (4:3)),1664*928(Widescreen (16:9)),1104*1472(Portrait (3:4)),928*1664(Tall (9:16)). - How many
countnumber - How many pictures to draw, from 1 to 6. Defaults to 1.From 1 to 6.
- Leave out
negative_prompttext - Optional. What should not be in the picture, such as 'blurry, text, watermark'. Qwen-Image 3.0 models only.
- Region
regiontext - The Model Studio region your API key belongs to. Use International unless you created your key on the China (Beijing) console.One of:
international(International (Singapore)),china(China (Beijing)). Default:international.
Outputs
content_typetext- The file's type, such as image/png or video/mp4.
document_reftext- The saved file, for steps that take a file.
documentslist- Every picture saved, in order.
filenametext- The file's name.
heightnumber- The pictures' height in pixels, when Qwen says.
image_countnumber- How many pictures Qwen drew.
modeltext- The model that drew them.
size_bytesnumber- The file's size in bytes.
urltext- A link that opens the file in Lodol.
widthnumber- The pictures' width in pixels, when Qwen says.
Example output
{
"content_type": "image/png",
"document_ref": "doc_0123456789abcdef0123456789abcdef",
"documents": [
{
"content_type": "image/png",
"document_ref": "doc_0123456789abcdef0123456789abcdef",
"filename": "qwen-image-1.png",
"size_bytes": 1482211,
"url": "/actions/core/serve-document/doc_0123456789abcdef0123456789abcdef"
}
],
"filename": "qwen-image-1.png",
"height": 1328,
"image_count": 1,
"model": "qwen-image-3.0",
"size_bytes": 1482211,
"url": "/actions/core/serve-document/doc_0123456789abcdef0123456789abcdef",
"width": 1328
}Get a video
Collect a video Qwen is still making, or finished after its 'Generate a video' step stopped waiting, by its task id. The step waits until it is ready and saves it as a file. Qwen keeps a video for 24 hours.
Inputs
- Task ID
task_idtextRequired - The video's task id, from the message of a 'Generate a video' step that stopped waiting, or from an earlier step.
- Region
regiontext - The Model Studio region your API key belongs to. Use International unless you created your key on the China (Beijing) console.One of:
international(International (Singapore)),china(China (Beijing)). Default:international.
Outputs
content_typetext- The file's type, such as image/png or video/mp4.
document_reftext- The saved file, for steps that take a file.
documentslist- The saved video, as a list of one file.
duration_secondsnumber- How long the video is, in seconds.
filenametext- The file's name.
modeltext- The model that made it, when known.
size_bytesnumber- The file's size in bytes.
statustext- 'succeeded'.
task_idtext- Qwen's id for the video task.
urltext- A link that opens the file in Lodol.
Example output
{
"content_type": "video/mp4",
"document_ref": "doc_0123456789abcdef0123456789abcdef",
"documents": [
{
"content_type": "video/mp4",
"document_ref": "doc_0123456789abcdef0123456789abcdef",
"filename": "qwen-video.mp4",
"size_bytes": 4182211,
"url": "/actions/core/serve-document/doc_0123456789abcdef0123456789abcdef"
}
],
"duration_seconds": 5,
"filename": "qwen-video.mp4",
"model": "wan3.0-video",
"size_bytes": 4182211,
"status": "succeeded",
"task_id": "0385dc79-5ff8-4d82-bcb6-9a1b2c3d4e5f",
"url": "/actions/core/serve-document/doc_0123456789abcdef0123456789abcdef"
}Query Model
Send a message or question to a Qwen AI model and get a written response back.
Inputs
- Message
prompttextRequired - The message or question you want to send to Qwen.
- Model
modeltext - Choose which Qwen model answers your message.One of:
qwen-max(Qwen Max (most capable)),qwen-plus(Qwen Plus (balanced, recommended)),qwen-flash(Qwen Flash (fastest, lowest cost)),qwen-turbo(Qwen Turbo (fast, low cost)),qwen-long(Qwen Long (long documents)). Default:qwen-plus. - System instructions
system_prompttext - Optional. Guidance that shapes how the model responds, for example 'You are a concise assistant that replies in bullet points.'
- Region
regiontext - The Model Studio region your API key belongs to. Use International unless you created your key on the China (Beijing) console.One of:
international(International (Singapore)),china(China (Beijing)). Default:international.
Outputs
modeltext- The model identifier used for generation
response_texttext- The generated text response from Qwen
Example output
{
"model": "qwen-plus",
"response_text": "Hello! How can I help you today?"
}