qwen/qwen-image
An image generation foundation model in the Qwen series that achieves significant advances in complex text rendering.
Capabilities
Cost
Community model (estimated from hardware time)
Input Parameters
| Name | Type | Description | Default | Constraints |
|---|---|---|---|---|
prompt* | string | Prompt for generated image | — | — |
aspect_ratio | string | Aspect ratio for the generated image | "16:9" | 1:116:99:164:33:43:22:3 |
disable_safety_checker | boolean | Disable safety checker for generated images. | false | — |
enhance_prompt | boolean | Enhance the prompt with positive magic. | false | — |
extra_lora_scale | array | Scales for additional LoRAs as an array of numbers (e.g., 0.5, 0.7). Must match the number of weights in extra_lora_weights. | — | — |
extra_lora_weights | array | Additional LoRA weights as an array of URLs. Same formats supported as lora_weights (e.g., ['https://huggingface.co/flymy-ai/qwen-image-lora/resolve/main/pytorch_lora_weights.safetensors', 'https://huggingface.co/flymy-ai/qwen-image-realism-lora/resolve/main/flymy_realism.safetensors']) | — | — |
go_fast | boolean | Run faster predictions with additional optimizations. | true | — |
guidance | number | Guidance for generated image. Lower values can give more realistic images. Good values to try are 2, 2.5, 3 and 3.5 | 3 | min: 0, max: 10 |
image | string(uri) | Input image for img2img pipeline | — | — |
image_size | string | Image size for the generated image | "optimize_for_quality" | optimize_for_qualityoptimize_for_speed |
lora_scale | number | Determines how strongly the main LoRA should be applied. | 1 | — |
lora_weights | string | Load LoRA weights. Only works with text to image pipeline. Supports arbitrary .safetensors URLs, tar files, and zip files from the Internet (for example, 'https://huggingface.co/flymy-ai/qwen-image-lora/resolve/main/pytorch_lora_weights.safetensors', 'https://example.com/lora_weights.tar.gz', or 'https://example.com/lora_weights.zip') | — | — |
negative_prompt | string | Negative prompt for generated image | " " | — |
num_inference_steps | integer | Number of denoising steps. Recommended range is 28-50, and lower number of steps produce lower quality outputs, faster. | 30 | min: 1, max: 50 |
output_format | string | Format of the output images | "webp" | webpjpgpng |
output_quality | integer | Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs | 80 | min: 0, max: 100 |
replicate_weights | string | Load LoRA weights from Replicate training. Only works with text to image pipeline. Supports arbitrary .safetensors URLs, tar files, and zip files from the Internet. | — | — |
seed | integer | Random seed. Set for reproducible generation | — | — |
strength | number | Strength for img2img pipeline | 0.9 | min: 0, max: 1 |
promptrequiredstringPrompt for generated image
aspect_ratiostringAspect ratio for the generated image
"16:9"disable_safety_checkerbooleanDisable safety checker for generated images.
falseenhance_promptbooleanEnhance the prompt with positive magic.
falseextra_lora_scalearrayScales for additional LoRAs as an array of numbers (e.g., 0.5, 0.7). Must match the number of weights in extra_lora_weights.
extra_lora_weightsarrayAdditional LoRA weights as an array of URLs. Same formats supported as lora_weights (e.g., ['https://huggingface.co/flymy-ai/qwen-image-lora/resolve/main/pytorch_lora_weights.safetensors', 'https://huggingface.co/flymy-ai/qwen-image-realism-lora/resolve/main/flymy_realism.safetensors'])
go_fastbooleanRun faster predictions with additional optimizations.
trueguidancenumberGuidance for generated image. Lower values can give more realistic images. Good values to try are 2, 2.5, 3 and 3.5
3min: 0, max: 10imagestringInput image for img2img pipeline
image_sizestringImage size for the generated image
"optimize_for_quality"lora_scalenumberDetermines how strongly the main LoRA should be applied.
1lora_weightsstringLoad LoRA weights. Only works with text to image pipeline. Supports arbitrary .safetensors URLs, tar files, and zip files from the Internet (for example, 'https://huggingface.co/flymy-ai/qwen-image-lora/resolve/main/pytorch_lora_weights.safetensors', 'https://example.com/lora_weights.tar.gz', or 'https://example.com/lora_weights.zip')
negative_promptstringNegative prompt for generated image
" "num_inference_stepsintegerNumber of denoising steps. Recommended range is 28-50, and lower number of steps produce lower quality outputs, faster.
30min: 1, max: 50output_formatstringFormat of the output images
"webp"output_qualityintegerQuality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs
80min: 0, max: 100replicate_weightsstringLoad LoRA weights from Replicate training. Only works with text to image pipeline. Supports arbitrary .safetensors URLs, tar files, and zip files from the Internet.
seedintegerRandom seed. Set for reproducible generation
strengthnumberStrength for img2img pipeline
0.9min: 0, max: 10bba9e70f784Updated: 7/25/20261.6M runs
cinemasetfree.com