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 start | Mode |
|---|---|
| a written visual brief | Wan 2.7 Text to image |
| an image that needs a directed change | Wan 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
| Parameter | Required | Description |
|---|---|---|
seed | No | Use the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647 |
prompt | Yes | Describe what you want to make. |
resolution | No | Choose an available output size. 1k · 2k · Default: 1k |
num_outputs | No | How many results to make in one go. ≥ 1 · ≤ 4 · Default: 1 |
aspect_ratio | No | The 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_palette | No | Your color theme: 3 to 10 colors, each with an optional share of the picture. |
enable_thinking | No | The 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.
| Option | USD 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
- 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.
- 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.
- 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
| errorCode | What it usually means and how to fix it |
|---|---|
invalid_request | num_outputs above four or more than nine references. |
invalid_asset | A reference that cannot be fetched. |
content_rejected | A refused prompt or reference. |
Wan 2.7 price on other platforms
| Options | fal | Replicate | |
|---|---|---|---|
| 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.
- Wan 3.0 APIUp to 30-second clips with synced audioFrom $0.215 for a 5-second clip
- Wan 3.0 Prime APIQuicker Wan 3.0 renders, up to 30 seconds with audioFrom $0.29 for a 5-second clip
- Wan 3.0 Pro Prime APIQuicker Wan 3.0 Pro with 2K and 4K outputFrom $1.17 for a 5-second clip
- Wan 3.0 Pro APIWan 3.0 at 1080p, 2K or 4K, up to 30 secondsFrom $0.72 for a 5-second clip
- Wan 2.7 Pro APILarge 4K canvases and nine-image compositesFrom $0.075 per image
- Wan 2.7 APIThinks through the composition, then draws up to four imagesFrom $0.03 per image
- Wan 2.6 Flash APIQuick multi-shot clips from a single imageFrom $0.1125 for a 5-second clip
- Wan 2.6 APIMulti-shot sequences with sound at up to 1080pFrom $0.325 for a 5-second clip
- Wan 2.5 API1080p clips with sound that can follow your own audioFrom $0.225 for a 5-second clip
- Wan 2.2 Animate APIDrive a character photo with a reference videoFrom $0.053 per second
- Wan 2.2 LoRA APIWan 2.2 video with your LoRAs on either expert passFrom $0.12 for a 5-second clip
- Wan 2.2 APISimple five-second clips at 480p or 720pFrom $0.24 per run
- Wan 2.2 5B LoRA APILight 720p Wan 2.2 clips that load your own LoRAsFrom $0.12 per run
- Wan 2.2 Image LoRA APIWan 2.2 stills with up to nine LoRAs across three slotsFrom $0.03 per image
- Wan 2.1 LoRA APIWan 2.1 video and edits with your own LoRAs, camera moves includedFrom $0.24 per run
- Wan 2.1 Image LoRA APIPhotoreal Wan 2.1 stills and restyles with your LoRAsFrom $0.03 per image
More about Wan 2.7
- Endpoints
- Wan 2.7 · Edit Image