# Alibaba Qwen Image 3 Text to Image API

> Qwen Image 3 by Alibaba - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.

Source: https://www.sandbase.ai/models/alibaba/qwen-image-3/text-to-image
API reference: https://www.sandbase.ai/models/alibaba/qwen-image-3/text-to-image/docs

## Facts

- Provider: Alibaba
- Type: Image model
- Model ID: `alibaba/qwen-image-3/text-to-image`
- Price: From $0.04 per run
- Capabilities: text to image
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "alibaba/qwen-image-3/text-to-image",
  "prompt": "A cute baby koala holding a card that says \"Qwen Image 3 is now available on fal\" while on a water slide",
  "num_images": 1,
  "resolution": "1K",
  "output_format": "png"
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call Alibaba Qwen Image 3 Text to Image through SandBase?

Create a SandBase API key, then send requests with the model ID "alibaba/qwen-image-3/text-to-image" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate Alibaba account?

No. One SandBase API key and balance gives you access to Alibaba Qwen Image 3 Text to Image and the other models in the catalog; you do not need to sign up with Alibaba separately.

## README

### Qwen Image 3 Text to Image

Qwen Image 3 (Pro) generates photorealistic images and dense layouts such as posters, infographics, and slides, with accurate Chinese and English text rendering. Up to 6 images per request at 1K or 2K.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Up to 5,000 characters. |
| `output_format` | `jpeg` / `png` | `png` | Output file format. |
| `seed` | integer | random | Fix it to compare prompt changes. |
| `num_images` | integer 1–6 | 1 | Images to generate (1–6); each is billed. |
| `resolution` | `1K` / `2K` | `1K` | Sets the per-image rate. |

#### Billing

$0.04 per image at 1K and $0.075 at 2K, Alibaba's list price for Qwen Image 3.0 Pro.

| Images | 1K | 2K |
|---|---|---|
| 1 | $0.04 | $0.075 |
| 2 | $0.08 | $0.15 |
| 4 | $0.16 | $0.30 |
| 6 | $0.24 | $0.45 |

Failed runs are not charged.

#### Prompting

- Quote every piece of text that must appear and say where it goes.
- For infographics and slides, describe the layout region by region.
- Name the style explicitly: photo, flat illustration, 3D render.

#### Limits

- Up to 6 images per request.

#### Also on SandBase

Related: `alibaba/qwen-image-3/edit` (edit with Qwen Image 3), `alibaba/qwen-image-2`.
