Qwen Image 2.1 TurboText to Image
$0.015 /image
- One image per request
- 8 steps recommended; 1–16 supported
Qwen Image 2.1 API / Turbo text-to-image with predictable limits
Generate one image from a text prompt with Qwen Image 2.1 Turbo. Use 8 steps by default, choose 1–16 steps when needed, and keep the output area within the documented limit.
Pay per generated image through PiAPI.
$0.015 /image
A focused text-to-image contract for production API integrations.
The default and recommended setting is 8 steps. Values from 1 through 16 are accepted.
Width and height each accept 64–4096 pixels. The total area cannot exceed 1,763,584 pixels.
negative_prompt and flow_shift remain accepted for client compatibility and are ignored by Turbo.
Create a task, poll its task_id, and read the completed image output from the task result.
Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.
Add credits on the billing page when you are ready to scale beyond the free tier.
POST your first task following the API docs, then poll the task until the result is ready.
Prototype prompts and settings in the the playground above before wiring them into your product.
curl -X POST 'https://api.piapi.ai/api/v1/task' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "Qubico/qwen-image-2.1",
"task_type": "txt2img",
"input": {
"prompt": "An editorial photograph of a ceramic teapot on a wooden table in morning light.",
"width": 1024,
"height": 1024,
"steps": 8,
"seed": -1,
"negative_prompt": "",
"flow_shift": 1
}
}'curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'image_url / image_urls
Qwen Image 2.1 is Alibaba's Qwen Image Turbo text-to-image model served through the PiAPI task API.
Use 8 steps for the recommended evaluated setup. The API accepts 1–16 steps, but custom counts are not guaranteed to improve quality.
Width and height each accept 64–4096 pixels. Their product must be at most 1,763,584 pixels, so 1328 × 1328 fits while 4096 × 4096 does not.
No. Both fields are accepted for compatibility with existing clients but are ignored by Qwen Image 2.1 Turbo.
Each request generates one image and costs $0.015. Create a task, then poll the task_id for the completed output.
More questions? See the API docs.