Skip to main content

Qwen Image 2.1 Turbo - Image Generator

Fast, cost-efficient text-to-image model by Alibaba Cloud. Qwen Image 2.1 Turbo shares the full 2.1 feature set — 1–6 images per request, prompt optimization, and prompt-driven transparency — tuned for high-volume, everyday generation. All outputs are returned as PNG.

Endpoint​

Request Headers​

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Parameters​

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be IMAGE_GENERATOR
modelstringYesAI model identifier. Must be qwen-image-2.1-turbo
promptObjectobjectYesConfiguration object containing all generation params

Prompt Object Parameters​

ParameterTypeRequiredDescriptionDefault
promptstringYesText description of the image to generate-
widthnumberYesOutput width in pixels; total pixels (width × height) must be between 512×512 (262,144) and 2048×2048 (4,194,304)-
heightnumberYesOutput height in pixels; total pixels (width × height) must be between 512×512 (262,144) and 2048×2048 (4,194,304)-
nnumberNoNumber of images to generate (1–6)1
prompt_extendbooleanNoEnable AI prompt optimization for better resultstrue
prompt_extend_modestringNoPrompt rewrite strategy: direct (one rewrite) or agent (iterative; generation only)direct
enable_thinkingbooleanNoLet the model reason while optimizing the prompt. Requires prompt_extend to be enabledprompt_extend
seednumberNoRandom seed for reproducible results (0–2147483647)-
Negative prompts are not supported

Qwen Image 2.1 does not support negative_prompt. A non-empty value is rejected. Describe what you want directly in the prompt instead.

Output & Transparency​

Every output is returned as a PNG. Transparency is prompt-driven — ask for a transparent background in the prompt (e.g. "on a transparent background") and the alpha channel is preserved in the returned PNG.

Code Examples​

curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "IMAGE_GENERATOR",
"model": "qwen-image-2.1-turbo",
"promptObject": {
"prompt": "A serene mountain landscape at golden hour with dramatic clouds and natural lighting",
"width": 1024,
"height": 1024,
"n": 1,
"prompt_extend": true
}
}'

Interactive Playground​

API Playground

https://api.1min.ai/api/features
Describe the image you want to generate in detail
Pixels. Total pixels (width × height) must be between 512*512 and 2048*2048
Pixels. Total pixels (width × height) must be between 512*512 and 2048*2048
How many images to generate (1-6)
AI will enhance your prompt for better results
Direct rewrites once; Agent runs an iterative loop (generation only)
Reason while optimizing the prompt (requires Prompt Optimization)
Random seed for reproducible results (0-2147483647)

Generated cURL Command:

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE_GENERATOR",
"model": "qwen-image-2.1-turbo",
"promptObject": {
"prompt": "A serene mountain landscape at golden hour with dramatic clouds and natural lighting",
"width": 1024,
"height": 1024,
"n": 1,
"prompt_extend": true,
"prompt_extend_mode": "direct",
"enable_thinking": true
}
}'

Response Format​

{
"aiRecord": {
"uuid": "b237afb5-5826-49bd-ab4d-6f00e96545e1",
"model": "qwen-image-2.1-turbo",
"type": "IMAGE_GENERATOR",
"status": "SUCCESS",
"aiRecordDetail": {
"promptObject": {
"prompt": "A serene mountain landscape at golden hour with dramatic clouds and natural lighting",
"width": 1024,
"height": 1024,
"n": 1,
"prompt_extend": true,
"prompt_extend_mode": "direct",
"enable_thinking": true
},
"resultObject": [
"development/images/2026_01_12_17_06_40_810_283595.png"
],
"responseObject": {
"request_id": "a1b2c3d4-0000-0000-0000-abcdef123456",
"usage": { "image_count": 1, "width": 1024, "height": 1024 }
}
},
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset-staging.1min.ai/development/images/2026_01_12_17_06_40_810_283595.png?X-Amz-..."
}
}

Error Examples​

// Negative prompts are not supported by Qwen Image 2.1
{
"error": {
"code": "QWEN_IMAGE_21_INVALID_PARAMS",
"message": "negative_prompt is not supported for Qwen Image 2.1"
}
}
// n must be an integer between 1 and 6
{
"error": {
"code": "QWEN_IMAGE_21_INVALID_PARAMS",
"message": "n must be an integer between 1 and 6"
}
}