Images

Wan 2.7 Image

Alibaba’s Wan 2.7 Image and Wan 2.7 Image Pro: new images, edits and pictures made from up to 9 reference images, at 1K or 2K in ten shapes, and 4K from a prompt alone on Pro. Good at posters, product shots and text in the picture.

Price

ModelSizesPer image
Wan 2.7 Image1K, 2K$0.026
Wan 2.7 Image Pro1K, 2K, 4K$0.065

One price at every size and shape. Reference and input images cost nothing extra.

Make an image

import os
from openai import OpenAI
client = OpenAI(base_url="https://api.zurelay.com/v1", api_key=os.environ["ZURELAY_API_KEY"])
result = client.images.generate(
model="wan-2.7-image",
prompt="A poster for a summer jazz night on a rooftop: a saxophonist against a pink sunset, the words 'ROOFTOP JAZZ' in bold letters at the top and 'Saturday 8 pm' below",
size="2K",
extra_body={
"aspect_ratio": "3:4"
},
)
print(result.data[0].url)

Parameters

sizestring
1K (the default) or 2K, and 4K on Wan 2.7 Image Pro for new images, or pixels like 1536x1024, read as the nearest resolution and shape.
aspect_ratiostring
1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9 or 21:9. Without it a new image is square; an edit takes the shape of the last image you send.
imagesarray
Up to 9 images to edit or work from, as links or data URLs (or files on /v1/images/edits), in the order the prompt names them: “Image 1”, “Image 2”.
ninteger
1 to 4 images.

Images are about one megapixel at 1K (1024 × 1024 square, 1376 × 768 for 16:9), four at 2K (2048 × 2048, or 2736 × 1520 for 16:9) and sixteen at 4K (4096 × 4096). An image smaller than asked, or in another shape, is retried, never delivered.

Edits and reference images

Send the images with the prompt and say what to change and what to keep. With several images, refer to them in order (“the fox from Image 1 on the car from Image 2”). Edits and reference images go up to 2K, on Pro too.

import os
import requests
response = requests.post(
"https://api.zurelay.com/v1/images/generations",
headers={"Authorization": f"Bearer {os.environ['ZURELAY_API_KEY']}"},
json={
"model": "wan-2.7-image",
"prompt": "Make it a snowy night with warm light in the windows. Keep the house exactly the same.",
"images": [
"https://example.com/house.png"
],
"size": "2K"
},
)
response.raise_for_status()
print(response.json())

Prompting

  • Describe the subject, the setting, the light and the style in full sentences.
  • Put words that must appear in quotes and say where they go.
  • For edits, name what changes and what stays: “Change the jacket to red. Keep everything else the same.”

Good to know

  • Images take 20 to 60 seconds at 1K and 2K; Pro’s 4K takes about 2 minutes.
  • Images carry no visible watermark.
  • Prompts the model declines return image_not_generated, free of charge.
  • Links last 24 hours; the Library in your dashboard keeps images returned as links for 30 days.

More on sending images: Image editing and reference images.

Questions, or something missing? Ask our support team and we’ll answer by email, usually within a minute.