by Alibaba

Wan 2.7 edit API: combine a face, garment, room and colour reference from up to 9 photos without masks, 1 to 4 outputs, bounding boxes, about 28 s.

alibaba/wan-2.7/edit
Wan 2.7 AI Image Generator online
  • Up to 2K
  • Up to 9 reference images
  • 7 aspect ratios
  • Up to 4 per run
  • Create Image
  • Edit Image

About Wan 2.7

Wan 2.7 edit takes a prompt and one to nine image_urls and returns one to four images, typically in about 28 seconds.

Call it with the model name alibaba/wan-2.7/edit on POST /jobs/createTask, from $0.03.

Introduction

Wan 2.7 Image to image reworks supplied imagery with a directed change. Use it when the source image contains details that must remain recognizable while a local or stylistic decision changes.

Choose a Wan 2.7 mode by starting material

What you have at the startMode
a written visual briefWan 2.7 Text to image
an image that needs a directed changeWan 2.7 Image to image

Key features

Choose text generation or reference-based editing

Image-to-image uses your references to guide wardrobe, framing and the requested changes. Text-to-image creates a new composition from the written brief. Choose the mode by whether you already have a source image.

Combine up to nine images without painting a mask

Image-to-image takes one to nine source images in a single request, so a garment, a face, a room and a colour reference can all enter the same edit. Say what each source is for in the prompt — an unlabelled stack gets averaged, which is the most common reason a nine-image edit comes back muddy.

It plans the layout before it draws

Wan 2.7 plans the frame before it draws it, which shows up in things that need a spatial decision: who is in the foreground, what the hand is holding, where the light source sits. Long descriptive prompts with a clear subject and one clear relationship beat keyword piles here.

Request parameters

ParameterRequiredDescription
aspect_ratioNoThe shape of the frame: wide, square or tall. 1:1 · 4:3 · 3:4 · 16:9 · 9:16 · 3:2 · 2:3
bounding_boxesNoMark the areas to edit with rectangles positioned relative to the reference image.
color_paletteNoYour color theme: 3 to 10 colors, each with an optional share of the picture.
image_urlsYesPhotos to edit or combine. Say in the prompt what each one adds.
num_outputsNoHow many results to make in one go. ≥ 1 · ≤ 4 · Default: 1
promptYesDescribe what you want to make.
resolutionNoChoose an available output size. 1k · 2k · Default: 1k
seedNoUse the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647

Pricing

Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

OptionUSD per image
Standard$0.03

Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.

Use cases

Adapt an approved image for a new campaign context

Send the approved image as the reference and name the one element that changes — the setting, the colour treatment, a prop — and everything that must not. Leave aspect_ratio out and the result follows the last reference's proportions.

Explore a controlled art-direction change

Send the packshot and a colour reference and ask for the glaze, fabric or finish to change while the linen, the props and the window light stay untouched. One call, no mask, and a fixed seed so the variant set stays comparable.

Prepare a consistent set of variations

Image-to-image takes one to nine references in a single call, so a garment, a face, a room and a colour reference can enter the same edit. Fix seed across the set so the only difference between two edits is the clause you changed.

Prompt guide & pro tips

State what must stay and what may change

Refer to the sources by position — image 1, image 2 — so the model knows which is the subject and which is the surface. Name what must stay identical first, then the change; an unlabelled stack of references gets averaged.

Keep the revision locally testable

Ask for one focused adjustment and compare it with the source.

Validate the source-dependent result

Each reference must be JPEG, PNG without transparency, BMP or WEBP, 240 to 8,000 pixels on each side, between 1:8 and 8:1 in shape and no larger than 20 MB. At the 1k default the edit is about one megapixel; set resolution to 2k for four times that.

API quick start

Call the Wan 2.7 API in three steps

  1. Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
  2. Send the request. POST /jobs/createTask with model alibaba/wan-2.7/edit and an input object that follows the parameter table. The response returns a task ID straight away.
  3. Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{
  "model": "alibaba/wan-2.7/edit",
  "input": {
    "prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
    "image_urls": [
      "https://media.popnow.ai/influencer/examples/marco.webp"
    ],
    "num_outputs": 1,
    "resolution": "1k"
  }
}'

# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.

About the Wan 2.7 Edit Image endpoint

It combines elements from several photos without masks: a garment from one, a face from another, a room from a third.

State what must stay identical first (face, proportions, pose), then the change.

bounding_boxes and color_palette give extra control for layout and brand colours.

Each output image is billed, so default num_outputs to one or two in production.

A common product use is recolouring: keep the props and light, change the product's colour through the prompt or color_palette.

For character sheets, send the same face reference with every request and vary only the pose or setting in the prompt.

Wan 2.7 API questions

How much does the Wan 2.7 API cost?

Wan 2.7 starts at $0.03 per image with Edit Image, its lowest-priced task. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

What are the limits of the Wan 2.7 · Edit Image API?

Resolutions: 1K · 2K; Aspect ratios: 1:1 · 4:3 · 3:4 · 16:9 · 9:16 · 3:2 · 2:3; Outputs per call: 1–4; Reference images: 9; Prompt length (characters): 5,000. Requests outside these limits are rejected before anything is charged.

More about Wan 2.7