by Alibaba

Thinks through the composition, then draws up to four images

alibaba/wan-2.7/text-to-image
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

The Wan 2.7 API combines a layout-planning step (enable_thinking) with practical batch output: num_outputs returns up to four images per call. Edits accept up to nine references, bounding_boxes and a color_palette. Typical latency is under 30 seconds for both endpoints.

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

Introduction

Wan 2.7 Text to image turns a written art direction into a new image. Use it when composition, subject, lighting, and visual hierarchy need to be designed from a brief.

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
seedNoUse the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647
promptYesDescribe what you want to make.
resolutionNoChoose an available output size. 1k · 2k · Default: 1k
num_outputsNoHow many results to make in one go. ≥ 1 · ≤ 4 · Default: 1
aspect_ratioNoThe shape of the frame: wide, square or tall. 1:1 · 4:3 · 3:4 · 16:9 · 9:16 · 3:2 · 2:3 · Default: 1:1
color_paletteNoYour color theme: 3 to 10 colors, each with an optional share of the picture.
enable_thinkingNoThe model plans more carefully first. Slower, but better with complex references. Default: true

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

Explore a visual concept before production

Text-to-image is the endpoint for a frame with nothing fixed yet: no face, garment or room that has to survive.

Create a storyboard key image

Generate the still at 3:2 or 9:16, then hand it to an image-to-video endpoint as the opening frame. The video prompt then only has to carry motion, which is the most literal way to get an exact wardrobe and pose into a clip.

Establish a campaign visual system

Hold one seed and one prompt skeleton, then sweep aspect_ratio across 1:1, 3:2 and 9:16 for a profile, a banner and a story card. The pixel budget is the same for every ratio, so a wider frame is wider, not larger.

Prompt guide & pro tips

Write composition before decoration

Name the subject, what they are doing and where the camera sits before light, materials and style. Wan 2.7 plans the frame before drawing it, so one clear spatial relationship beats a pile of adjectives.

Fix the seed, then change one thing

Once a frame is close, hold seed and vary a single clause: the wardrobe, the light, the ratio. The same seed keeps the draw steady, so any difference you see is the clause you changed; it does not guarantee an identical image.

Check the canvas before reusing the image

At the 1k default the canvas is about 1.01 to 1.05 megapixels whichever ratio you pick, and resolution: 2k gives about four times that. Text alone invents a new face on each seed, so when someone has to stay recognisable, move to image-to-image with a reference. Turning enable_thinking off is noticeably faster.

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/text-to-image 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/text-to-image",
  "input": {
    "prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
    "aspect_ratio": "1:1",
    "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.

What to build with the Wan 2.7 API

  • Option pickers that show four candidates per prompt.
  • Product recolour tools using color_palette.
  • Opening-frame generators for video pipelines.

Wan 2.7 parameter notes

  • num_outputs 1 to 4; each image is billed.
  • enable_thinking on text to image plans the layout before drawing.
  • bounding_boxes and color_palette on edit guide placement and colour.
  • resolution 1k (about one megapixel) or 2k; seed supported.

How Wan 2.7 API pricing adds up

A flat per-image price; total cost is that price times num_outputs.

  • Create Image: $0.03 per run, $3.00 for 100 runs

Async jobs, webhooks and rate limits

Every Wan 2.7 request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for alibaba/wan-2.7/text-to-image never runs or bills twice.

Common Wan 2.7 API errors

errorCodeWhat it usually means and how to fix it
invalid_requestnum_outputs above four or more than nine references.
invalid_assetA reference that cannot be fetched.
content_rejectedA refused prompt or reference.

Wan 2.7 price on other platforms

OptionsPopNowfalReplicate
Wan 2.7$0.0300/ image$0.0300/ image$0.0300/ image

Each platform's public API list price for the same model and settings, checked Nov 13, 2026.

Wan 2.7 API questions

How much does the Wan 2.7 API cost?

Wan 2.7 starts at $0.03 per image with Create 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 is the model name for Wan 2.7 in the API?

Put alibaba/wan-2.7/text-to-image for Create Image; alibaba/wan-2.7/edit for Edit Image in the model field of POST /jobs/createTask.

How many images can one Wan 2.7 API call return?

Up to four with num_outputs.

What does enable_thinking do on Wan 2.7?

It plans the composition before drawing, improving spatial layouts.

How fast is Wan 2.7?

About 26 seconds for text to image and 28 for edits.

What are the limits of the Wan 2.7 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; Prompt length (characters): 5,000. Requests outside these limits are rejected before anything is charged.

Can I try Wan 2.7 without writing code?

Run Wan 2.7 in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.

All Wan models

Wan 2.7 Pro adds a 4K canvas for text to image and 2K edits that hold longer instructions.

More about Wan 2.7