# Alibaba Wan 2.7 Pro Text to Image API

> Alibaba Wan 2.7 Pro text-to-image model with enhanced quality and selectable aspect ratio.

Source: https://www.sandbase.ai/models/alibaba/wan/2.7/pro/text-to-image
API reference: https://www.sandbase.ai/models/alibaba/wan/2.7/pro/text-to-image/docs

## Facts

- Provider: Alibaba
- Type: Image model
- Model ID: `alibaba/wan/2.7/pro/text-to-image`
- Price: From $0.07 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/wan/2.7/pro/text-to-image",
  "prompt": "A futuristic glass library building with organic curved walls surrounded by cherry blossom trees, blue sky with scattered clouds, architectural visualization, golden ratio composition",
  "aspect_ratio": "16:9"
}'
```

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 Wan 2.7 Pro Text to Image through SandBase?

Create a SandBase API key, then send requests with the model ID "alibaba/wan/2.7/pro/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 Wan 2.7 Pro Text to Image and the other models in the catalog; you do not need to sign up with Alibaba separately.

## README

### Wan 2.7 Pro Text to Image

Wan 2.7 Pro renders a written brief at higher fidelity than the standard tier, with sharper fine detail and more reliable text in the image. Chinese and English prompts are both supported.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Up to 10,000 characters. |
| `aspect_ratio` | `21:9` / `16:9` / `4:3` / `1:1` / `3:4` / `9:16` / `9:21` | `16:9` | Output shape. |

#### Billing

$0.075 per image, Alibaba's list price.

| Request | Price |
|---|---|
| One image | $0.075 |

Failed runs are not charged.

#### Prompting

- Put the main subject first, then layout, materials, and lighting.
- Quote any text that must be rendered, and say where it goes.

> A glass library with organic curved walls among cherry trees, blue sky with scattered clouds, architectural visualization, golden-ratio composition.

#### Limits

- One image per request.

#### Also on SandBase

Other Wan 2.7 image endpoints: `alibaba/wan/2.7/text-to-image`, `alibaba/wan/2.7/image-to-image`, `alibaba/wan/2.7/pro/image-to-image`.
