Skip to main content

image models

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.

立即开始!

Qwen Image 2.1 API pricing

Pay per generated image through PiAPI.

Qwen Image 2.1 TurboText to Image

$0.015 /image

  • One image per request
  • 8 steps recommended; 1–16 supported

Qwen Image 2.1 Turbo features

A focused text-to-image contract for production API integrations.

8 steps recommended

The default and recommended setting is 8 steps. Values from 1 through 16 are accepted.

Bounded image dimensions

Width and height each accept 64–4096 pixels. The total area cannot exceed 1,763,584 pixels.

Compatible request fields

negative_prompt and flow_shift remain accepted for client compatibility and are ignored by Turbo.

Asynchronous task API

Create a task, poll its task_id, and read the completed image output from the task result.

Get started

Create your API key

Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.

Top up credits

Add credits on the billing page when you are ready to scale beyond the free tier.

Call the API

POST your first task following the API docs, then poll the task until the result is ready.

Iterate in the playground

Prototype prompts and settings in the the playground above before wiring them into your product.

Create a task

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
  }
}'

Retrieve the result

curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
  -H 'X-API-Key: YOUR_API_KEY'

image_url / image_urls

Pricing

  • default: $0.015 / image

Qwen Image 2.1 API FAQ

What is Qwen Image 2.1?

Qwen Image 2.1 is Alibaba's Qwen Image Turbo text-to-image model served through the PiAPI task API.

Which step count should I use?

Use 8 steps for the recommended evaluated setup. The API accepts 1–16 steps, but custom counts are not guaranteed to improve quality.

What image dimensions are supported?

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.

Do negative_prompt and flow_shift affect generation?

No. Both fields are accepted for compatibility with existing clients but are ignored by Qwen Image 2.1 Turbo.

How much does a generation cost?

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.