> ## Documentation Index
> Fetch the complete documentation index at: https://docs.geekai.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Qwen Text-to-Image

Qwen-Image is a general-purpose text-to-image model that supports many artistic styles and excels at complex text rendering. It can arrange multiple lines, generate entire paragraphs, and render fine details in layouts that combine text and images.
Z-Image is a lightweight text-to-image model for fast generation. It renders Chinese and English text and supports a range of resolutions and aspect ratios.

### Model parameters

* Model IDs: `qwen-image`/`qwen-image-plus`/`z-image-turbo`
* Pricing: Check the [Model Hub](https://geekai.co/models?platform=dashscope\&type=image) for current prices.
* Endpoint: `https://geekai.co/api/v1/images/generations`
* Parameters: See the [Image API reference](https://docs.geekai.co/en/api/image/generations.md).
* Authentication: [Get an API key](https://docs.geekai.co/en/docs/quick_start.md).

> [!NOTE]
>
> The following Image API parameters are not supported:
>
> * `image`
> * `strength`
> * `aspect_ratio`
> * `quality`
> * `style_preset`
> * `response_format`
> * `output_format`
> * `mask`
> * `background`
>
> See also: [Official Qwen text-to-image API documentation](https://bailian.console.aliyun.com/?spm=5176.12818093_47.overview_recent.2.39e42cc9oUX0MV\&tab=doc#/doc/?type=model\&url=2840914).

Use `size` to set the Qwen text-to-image output resolution:

Available resolutions and their aspect ratios:

| Aspect ratio | Pixel dimensions |
| - | - |
| 1:1 | 1328x1328 |
| 4:3 | 1472x1104 |
| 3:4 | 1104x1472 |
| 16:9 | 1664x928 |
| 9:16 | 928x1664 |

### Text-to-image generation

**qwen-image**

Give the model a clear, precise description to quickly generate a single high-quality image:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "qwen-image",
    "prompt": "An elegant, stately pair of calligraphy scrolls hangs in a quiet, traditionally furnished Chinese hall. Blue-and-white porcelain sits on the table. The left scroll reads ‘义本生知人机同道善思新’, the right reads ‘通云赋智乾坤启数高志远’, and the horizontal inscription reads ‘智启通义’. Use flowing calligraphy. Hang a traditional Chinese painting of Yueyang Tower between the scrolls.",
    "size": "1328x1328",
    "negative_prompt ": "Low resolution, low image quality, malformed limbs or fingers, oversaturation, waxy appearance, featureless faces, excessive smoothing, artificial-looking imagery, chaotic composition, blurry or distorted text.",
    "watermark": false
}'
```

The response is a JSON object containing the URL of the generated image:

```json theme={null}
{
  "model": "qwen-image",
  "created": 1767516972,
  "task_id": "93bf3349-1944-4e79-8bed-e73f1c446141",
  "task_status": "succeed",
  "data": [
    {
      "url": "https://static.geekai.co/image/2026/01/04/7a3b4052d71060d17e10743fc0082eb1.png"
    }
  ],
  "usage": {
    "billed_units": 1
  }
}
```

**z-image-turbo**

In addition to the parameters listed above, Z-Image does not support `negative_prompt` or `watermark`.

Recommended resolutions for a total pixel count of 1024x1024:

| Aspect ratio | Pixel dimensions |
| - | - |
| 1:1 | 1024x1024 |
| 2:3 | 832x1248 |
| 3:2 | 1248x832 |
| 3:4 | 864x1152 |
| 4:3 | 1152x864 |
| 7:9 | 896x1152 |
| 9:7 | 1152x896 |
| 9:16 | 720x1280 |
| 16:9 | 1280x720 |
| 9:21 | 576x1344 |
| 21:9 | 1344x576 |

Recommended resolutions for a total pixel count of 1280x1280:

| Aspect ratio | Pixel dimensions |
| - | - |
| 1:1 | 1280x1280 |
| 2:3 | 1024x1536 |
| 3:2 | 1536x1024 |
| 3:4 | 1104x1472 |
| 4:3 | 1472x1104 |
| 7:9 | 1120x1440 |
| 9:7 | 1440x1120 |
| 9:16 | 864x1536 |
| 16:9 | 1536x684 |
| 9:21 | 720x1680 |
| 21:9 | 1680x720 |

Recommended resolutions for a total pixel count of 1536x1536:

| Aspect ratio | Pixel dimensions |
| - | - |
| 1:1 | 1536x1536 |
| 2:3 | 1248x1872 |
| 3:2 | 1872x1248 |
| 3:4 | 1296x1728 |
| 4:3 | 1728x1296 |
| 7:9 | 1344x1728 |
| 9:7 | 1728x1344 |
| 9:16 | 1152x2048 |
| 16:9 | 2048x1152 |
| 9:21 | 864x2016 |
| 21:9 | 2016x864 |

The total pixel count must be within `[512x512, 2048x2048]`. For best results, use a resolution in the range `[1024x1024, 1536x1536]`.

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "z-image-turbo",
    "prompt": "An elegant, stately pair of calligraphy scrolls hangs in a quiet, traditionally furnished Chinese hall. Blue-and-white porcelain sits on the table. The left scroll reads ‘义本生知人机同道善思新’, the right reads ‘通云赋智乾坤启数高志远’, and the horizontal inscription reads ‘智启通义’. Use flowing calligraphy. Hang a traditional Chinese painting of Yueyang Tower between the scrolls.",
    "size": "1024x1024"
}'
```

As in the qwen-image example above, the response is a JSON object containing the generated image URL.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.