Qwen-Image-2.0-Pro
NEWOverview
Qwen-Image-2.1-Pro is an image model in the Qwen family that balances generation quality, inference efficiency, and cost. Qwen-Image-2.1 unifies text-to-image generation and image editing in a single model, with just 7B parameters in its visual generation component and native support for generating and editing transparent images. This update introduces four key improvements: Compact and efficient: A lightweight architecture and inference optimizations balance image quality and computational cost. Native transparency, unified creation and editing: Generate regular or transparent images from prompts, edit transparent layers, and extract subjects from photos. Versatile editing: Use up to 10 reference images, specify local edits, preserve people and products, and handle a wide range of tasks. Realistic textures and refined aesthetics: Improved typography, portrait lighting, and fine details make generated images more visually compelling.
Input
Output
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 docsPricing
- Image Generation$0.04Per image
Rate Limits
- Concurrency10concurrent
- Async Queue Limit200tasks
- RPMRequests Per Minute20
API Reference
Call APIcurl --location 'https://maas.qwencloudapi.com/api/v1/services/aigc/multimodal-generation/generation' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $DASHSCOPE_API_KEY" \
--data '{
"model": "qwen-image-2.1-pro",
"input": {
"messages": [
{
"role": "user",
"content": [
{
"text": "A vertical outdoor portrait photograph with a warm, film-like afternoon street atmosphere, featuring a beautiful young adult woman looking back over her shoulder at the camera with a joyful toothy smile, her long thick wavy black hair catching the golden rim light, her fair skin, delicate eyebrows, bright eyes, and soft coral-red lips creating a radiant expression. She wears a simple black backless dress with thin spaghetti straps, showcasing her back, and cradles a large, lush bouquet of orange, apricot, pink, and pale peach roses in her arms, creating a sharp contrast against her dress. The top-left of the frame is covered with dark green vines and small orange flowers draping naturally, partially obscuring a matte dark blue signboard with the white Gothic text \"Il Messaggero\". Below the sign is a blurred glass newsstand window with black metal frames showing hints of newspapers and magazines. The right background features strong golden hour backlighting streaming down a warm-toned, sun-drenched city street, with buildings blurred into soft beige-gray shapes, creating a beautiful bokeh effect and a blurry red traffic sign in the far distance. The entire image has a cinematic, romantic, and bright urban stroll atmosphere, characterized by soft contrast, fine film grain, a shallow depth of field, and stunning backlit highlights."
}
]
}
]
},
"parameters": {
"prompt_extend": true
}
}'