Qwen-Image
Advanced text-to-image generation with optional LoRA weights and prompt enhancement
Advanced text-to-image generation with optional LoRA weights and prompt enhancement
Qwen-Image is a high-quality text-to-image model that supports custom LoRA weights, prompt enhancement, image-to-image generation, and negative prompts for precise control over your output. It's excellent for creating detailed, refined images with specific style requirements.
Rate Limit: 150 requests per minute
Category: Text-to-Image Generation
Price: 0.025$ / image
curl -X POST 'https://api.pruna.ai/v1/predictions' \
-H 'Content-Type: application/json' \
-H 'apikey: YOUR_API_KEY' \
-H 'Model: qwen-image' \
-d '{
"input": {
"prompt": "Beautiful mountain landscape with a crystal clear lake reflecting the peaks",
"aspect_ratio": "16:9",
"enhance_prompt": true,
"guidance": 5
}
}'
Synchronous Request (Try-Sync)
curl -X POST 'https://api.pruna.ai/v1/predictions' \
-H 'Content-Type: application/json' \
-H 'apikey: YOUR_API_KEY' \
-H 'Model: qwen-image' \
-H 'Try-Sync: true' \
-d '{
"input": {
"prompt": "Beautiful mountain landscape with a crystal clear lake reflecting the peaks",
"aspect_ratio": "16:9",
"enhance_prompt": true,
"guidance": 5
}
}'
| Parameter | Type | Description |
|---|---|---|
| prompt | string | Text description of the image to generate |
| Parameter | Type | Default | Description |
|---|---|---|---|
| enhance_prompt | boolean | false | Automatically enhance the prompt with positive magic for better results |
| go_fast | boolean | true | Run faster predictions with additional optimizations |
| guidance | number | 3 | Guidance scale (0-10) - how closely to follow the prompt |
| negative_prompt | string | " " | Things to avoid in the generation (e.g., "blurry, low quality, distorted") |
| num_inference_steps | integer | 30 | Number of denoising steps (1-50, more = higher quality but slower) |
| seed | integer | random | Random seed for reproducible generation |
| disable_safety_checker | boolean | false | Disable safety checker for generated images |
Image-to-Image Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| image | string (URI) | - | Input image URL for img2img mode |
| strength | number | 0.9 | Strength for img2img pipeline (0-1) |
| Parameter | Type | Default | Description |
|---|---|---|---|
| lora_weights | string (URI) | - | URL to LoRA weights file (.safetensors, .tar, or .zip) |
| lora_scale | number | 1 | LoRA application strength |
| extra_lora_weights | array (strings) | - | Additional LoRA weights as array of URLs (same formats as lora_weights) |
| extra_lora_scale | array (numbers) | - | Scales for additional LoRAs (must match number of extra_lora_weights) |
| Parameter | Type | Default | Description |
|---|---|---|---|
| aspect_ratio | string | "16:9" | Options: "1:1", "16:9", "9:16", "4:3", "3:4" |
| image_size | string | "optimize_for_quality" | Image size: "optimize_for_quality" or "optimize_for_speed" |
| output_format | string | "webp" | Output format: "webp", "jpg", or "png" |
| output_quality | integer | 80 | Quality for jpg/webp (0-100) |