Skip to content
Developer Portal

Qwen Image Fast

Rate Limit: 150 requests per minute

Category: Image Generation

Price: 0.005$ / image


Terminal window
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"
}
}'
Terminal window
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"
}
}'
Terminal window
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
}
}'
Terminal window
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
}
}'

ParameterTypeDescription
promptstringText prompt for image generation
ParameterTypeDefaultDescription
aspect_ratiostring"16:9"Aspect ratio for the generated image. Options: "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "custom"
widthinteger(optional)Width of the generated image. Only used when aspect_ratio="custom". Must be a multiple of 16 (256-1440)
heightinteger(optional)Height of the generated image. Only used when aspect_ratio="custom". Must be a multiple of 16 (256-1440)
creativityfloat0.62Control the creativity of the model. Higher values increase the seed diversity (0.0-1.0)
seedinteger(optional)Random seed. Set for reproducible generation
disable_safety_checkerbooleanfalseDisable safety checker for generated images