Qwen Image Fast
Overview
Rate Limit: 150 requests per minute
Category: Image Generation
Price: 0.005$ / image
Quickstart
Basic Image Generation (Asynchronous)
curl -X POST 'https://api.pruna.ai/v1/predictions' \
-H 'Content-Type: application/json' \
-H 'apikey: YOUR_API_KEY' \
-H 'Model: qwen-image-fast' \
-d '{
"input": {
"prompt": "A serene Japanese garden with cherry blossoms and a traditional wooden bridge"
}
}'
Basic Image Generation (Synchronous)
curl -X POST 'https://api.pruna.ai/v1/predictions' \
-H 'Content-Type: application/json' \
-H 'apikey: YOUR_API_KEY' \
-H 'Model: qwen-image-fast' \
-H 'Try-Sync: true' \
-d '{
"input": {
"prompt": "A serene Japanese garden with cherry blossoms and a traditional wooden bridge"
}
}'
Preset Aspect Ratio
curl -X POST 'https://api.pruna.ai/v1/predictions' \
-H 'Content-Type: application/json' \
-H 'apikey: YOUR_API_KEY' \
-H 'Model: qwen-image-fast' \
-d '{
"input": {
"prompt": "Cinematic landscape of mountains at sunset",
"aspect_ratio": "16:9",
"creativity": 0.8,
"seed": 42
}
}'
Custom Dimensions
curl -X POST 'https://api.pruna.ai/v1/predictions' \
-H 'Content-Type: application/json' \
-H 'apikey: YOUR_API_KEY' \
-H 'Model: qwen-image-fast' \
-d '{
"input": {
"prompt": "Abstract geometric patterns in vibrant colors",
"aspect_ratio": "custom",
"width": 1280,
"height": 960,
"creativity": 0.75,
"disable_safety_checker": false
}
}'
Parameters
Required Parameters
| Parameter | Type | Description |
|---|---|---|
| prompt | string | Text prompt for image generation |
Optional Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| aspect_ratio | string | "16:9" | Aspect ratio for the generated image. Options: "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "custom" |
| width | integer | (optional) | Width of the generated image. Only used when aspect_ratio="custom". Must be a multiple of 16 (256-1440) |
| height | integer | (optional) | Height of the generated image. Only used when aspect_ratio="custom". Must be a multiple of 16 (256-1440) |
| creativity | float | 0.62 | Control the creativity of the model. Higher values increase the seed diversity (0.0-1.0) |
| seed | integer | (optional) | Random seed. Set for reproducible generation |
| disable_safety_checker | boolean | false | Disable safety checker for generated images |