Wan 2.7

AlibabaImages

Alibaba Wan 2.7: image generation and inline editing up to 2K.

Our price
$0.030
per image

First request

from openai import OpenAI

client = OpenAI(
    base_url="https://api.altrouter.ai/v1",
    api_key="ar-...",
)

img = client.images.generate(
    model="wan-2.7",
    prompt="a red fox in the snow",
)
print(img.data[0].url)

The interface is OpenAI-compatible: in existing code only the base_url, the key and the model id change — nothing else.

Wan 2.7 against its price neighbours

Wan 2.7 and its closest neighbours by price: prices and parameters from the AltRouter AI catalog
ModelPriceUnitDiscount
Qwen Image 3.0Alibaba$0.028image−8%Open
Nano Banana 2 LiteGoogle$0.028image−17%Open
Wan 2.7this pageAlibaba$0.030image—
Seedream 5 LiteByteDance$0.035image—Open
Nano Banana FastGoogle$0.035image−10%Open

Prices and parameters come from the same catalog as the price above; this is not a benchmark, it is comparable billing terms.

Limits

Pricing is flat — $0.030 per image, regardless of prompt length. The n parameter multiplies both the output and the bill: 4 images cost 4× as much. Allowed aspect_ratio values: 1:1, 16:9, 9:16, 4:3, 3:4, 21:9, 8:1, 1:8.

There is no subscription: every successful request is billed at the price above, and a failed one is not billed at all. There is no markup over the vendor's official price. No Alibaba account of your own is needed: requests go to api.altrouter.ai and we make the upstream call.

Rate limiting is shared across models and counted per key: 600 requests per minute by default, and a 429 with retry-after: 60 above it. An individual key can get its own limit and a spending cap per day, week, month or lifetime in the dashboard.

Full limits and credits

When to pick Wan 2.7, and when a neighbour

The cheaper neighbour is Nano Banana 2 Lite: $0.028 per image against $0.030 for Wan 2.7. On the same volume the bill comes out 1.1× smaller. It is the sensible pick where the task is repetitive and high-volume — labelling, classification, short templated answers — the kind of work where quality is bounded by the prompt rather than the model.

The dearer neighbour is Seedream 5 Lite: $0.035 per image, or 1.2× the price. On catalog parameters it offers the same capabilities and the same order of context, so the premium is only justified if Wan 2.7 falls short on your own task.

Guessing is more expensive than checking: the table above is prices and parameters, not a benchmark, and it cannot tell you which model does better on your own prompt. Switching costs one line — the model id in the request changes, the base_url and the key stay — so running both on your own data takes minutes.

API

OpenAI-compatible image generation endpoint. The result is re-hosted on our CDN and returned as a URL.

POST/v1/images/generations
Body parameters
modelstringrequired"wan-2.7"
The model id.
promptstringrequired
The text description of the image.
imagestringURL or base64
Reference images for editing.
aspect_ratioenum1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 21:9 · 8:1 · 1:8default 1:1
Output aspect ratio.
resolutionenum1K · 2Kdefault 2K
Resolution tier (affects price).
nnumber1–4default 1
How many images to generate (affects price).
seednumber0–2147483647
Seed for reproducibility.
Response
createdinteger
Unix creation time (seconds).
dataarray
Images. Each: url (our CDN), b64_json, revised_prompt.
Example
cURLPythonJavaScriptJSON
curl https://api.altrouter.ai/v1/images/generations \
  -H "Authorization: Bearer ar-..." \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan-2.7",
  "prompt": "a red fox in the snow",
  "aspect_ratio": "1:1",
  "resolution": "2K"
}'
Errors
400Invalid request.
401Missing or invalid API key.
402Insufficient credits, or the key’s spending cap is exhausted.
404Model not found.
429Rate limit exceeded.

More from Alibaba