qwen/qwen-image-2 🔢🖼️📝❓✓ → 🖼️

⭐ Official ▶️ 11.8K runs 📅 Mar 2026 ⚙️ Cog 0.16.12 🔗 GitHub 📄 Paper ⚖️ License
image-editing image-to-image text-to-image

About

A next-generation image generation and editing model from Alibaba's Qwen team. Supports text-to-image and image editing with strong text rendering, especially for Chinese.

Example Output

Prompt:

"A serene Japanese garden with a red bridge over a koi pond, morning light"

Output

Example output

Performance Metrics

8.47s Prediction Time
8.51s Total Time
All Input Parameters
{
  "seed": 1001,
  "prompt": "A serene Japanese garden with a red bridge over a koi pond, morning light",
  "aspect_ratio": "4:3",
  "negative_prompt": "",
  "match_input_image": false,
  "enable_prompt_expansion": true
}
Input Parameters
seed Type: integer
Random seed for reproducible generation. Range: 0-2147483647
image Type: string
Optional reference image for image editing, style transfer, or image-to-image generation
prompt (required) Type: string
Text prompt for image generation or editing
aspect_ratio Default: 1:1
Aspect ratio of the generated image
negative_prompt Type: stringDefault:
Negative prompt to specify elements to avoid in the generated image
match_input_image Type: booleanDefault: false
When true and an image is provided, use the input image's aspect ratio and resolution instead of the aspect_ratio parameter
enable_prompt_expansion Type: booleanDefault: true
Automatically expand and optimize the prompt for better results
Output Schema

Output

Type: stringFormat: uri

Example Execution Logs
Using seed: 1001
Generating image with qwen-image-2.0 (text-to-image)...
Sending request to qwen-image-2.0 with size=1024*768
Response status: stop
Generated 1 image(s) in 6.1sec
Downloading 1374486 bytes
Downloaded 1.31MB in 2.11sec
Version Details
Version ID
266e594fa007032292c211586354fe193d7aa4e675a1eeb0aef0c6a424468ddd
Version Created
March 4, 2026
Run on Replicate →