Skip to main content

Try Qwen Image 2.0 Pro in the Workbench

Run this model interactively, tune parameters, and compare outputs.
Model ID: qwen-image-2 Qwen Image 2.0 Pro is the pro version of Qwen Image 2 from Alibaba’s Qwen team. Enhanced text rendering, realism, and semantic adherence for high-quality image generation and editing. It is a 7B-parameter architecture that generates images natively at up to 2048×2048 pixels (2K resolution) and supports prompts up to 1,000 tokens. The model excels in professional-grade typography for complex layouts including PPT slides, infographics, movie posters, calendars, data charts, and comics. Text adapts to surfaces like glass, fabric, and signage with correct perspective and supports both Chinese and English characters.
MetricValue
Parameter Count7 billion
Mixture of ExpertsNo
Context Length1,000 tokens
Max Resolution2048×2048 (2K)
MultilingualYes (Chinese, English)
Quantized*Unknown
*Quantization is specific to the inference provider and the model may be offered with different quantization levels by other providers.

Example request

Use the Workbench as a request builder: configure parameters for this model in the UI, then open the API tab to copy the exact cURL or Python call.
See the image editing reference for more details.
curl -X POST https://hub.oxen.ai/api/ai/images/edit \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OXEN_API_KEY" \
  -d '{
  "model": "qwen-image-2",
  "prompt": "<prompt>"
}'

Fetch model details

The models endpoint returns the full model object, including its json_request_schema.
curl -H "Authorization: Bearer $OXEN_API_KEY" https://hub.oxen.ai/api/ai/models/qwen-image-2

Request parameters

Required parameters

FieldTypeDefaultDescription
promptstringText prompt for image generation or editing

Optional parameters

FieldTypeDefaultDescription
input_imagestringOptional reference image for image editing, style transfer, or image-to-image generation Format: uri.
match_input_imagebooleanfalseWhen true and an image is provided, use the input image’s aspect ratio and resolution instead of the aspect_ratio parameter
aspect_ratiostring"1:1"Aspect ratio of the generated image One of: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 2:1, 1:2.
enable_prompt_expansionbooleantrueAutomatically expand and optimize the prompt for better results
negative_promptstring""Negative prompt to specify elements to avoid in the generated image
seedintegerRandom seed for reproducible generation. Range: 0-2147483647