Qwen-Image-2.0-Pro
Copied!
Try AIAdd to Compare
Image Generation
Overview
Image Generation
The Qwen-Image-2.0 series full-fledged model integrates image generation and editing; it boasts more professional text rendering capabilities with 1k token command support, more delicate and realistic textures, meticulous depiction of realistic scenes, and stronger semantic adherence. The full-fledged version possesses the strongest text rendering capabilities and realistic textures in the 2.0 series.
Input
TextImage
Output
Image
Features
Prefix Completion
Enable Partial Mode when calling the Qwen API to make the model continue strictly from your provided prefix text.View docsFunction Calling
Use function calling to connect large language models with external tools and systems.View docsCache
Context Cache stores shared prefixes for long-context requests to reduce repeated computation, improve latency, and lower cost.View docsStructured Outputs
Structured Outputs help ensure the model returns a JSON string in the expected format.View docsBatches
feature.funeTuning
Pricing
- Image Generation$0.075Per image
Rate Limits
- RPMRequests Per Minute2
API Reference
Get API KeyCopied!
12345678910111213141516171819202122232425262728293031323334
import json
import os
from dashscope import MultiModalConversation
import dashscope
dashscope.base_http_api_url = 'https://dashscope-intl.aliyuncs.com/api/v1'
messages = [
{
"role": "user",
"content": [
{"image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/thtclx/input1.png"},
{"image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/iclsnx/input2.png"},
{"image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/gborgw/input3.png"},
{"text": "Make the girl from Image 1 wear the black dress from Image 2 and sit in the pose from Image 3."}
]
}
]
# If you have not configured the environment variable, replace the following line with your Model Studio API Key: api_key="sk-xxx"
api_key = os.getenv("DASHSCOPE_API_KEY")
response = MultiModalConversation.call(
api_key=api_key,
model="qwen-image-2.0-pro-2026-06-22",
messages=messages,
result_format='message',
stream=False,
n=2,
watermark=True,
negative_prompt=""
)
print(json.dumps(response, ensure_ascii=False))