About Wan 2.7 Pro
Wan 2.7 Pro edit takes a prompt and up to nine image_urls and returns one 2K image, typically in about 31 seconds.
Call it with the model name alibaba/wan-2.7-pro/edit on POST /jobs/createTask, from $0.075.
Introduction
Wan 2.7 Pro 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 Pro mode by starting material
| What you have at the start | Mode |
|---|---|
| a written visual brief | Wan 2.7 Pro Text to image |
| an image that needs a directed change | Wan 2.7 Pro Image to image |
Key features
Up to 4K, on text-to-image
Text-to-image here defaults to 2k, about 4 megapixels, and goes up to 4k, about 16 megapixels, where the standard family stops at 2k. Image-to-image works at 2k. That split is the point: reach for 4k when you are generating a hero frame that will be cropped or printed, not when you are recolouring a packshot.
Candlelight, skin and brushwork
The second frame for this endpoint is a painterly interior: a figure against a backlit folding screen, one candle and a glass of wine on a lacquer table. Soft falloff, visible brush texture and a face read at that size are the first things to collapse on a small canvas, and exactly what the larger one is for.
Following compound instructions
On image-to-image the extra capacity goes into following compound instructions — take this object, put it on that surface, match the second image's light, leave the condensation alone. The standard family drops one clause of an instruction like that more often than this one does.
Request parameters
| Parameter | Required | Description |
|---|---|---|
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 |
bounding_boxes | No | Mark the areas to edit with rectangles positioned relative to the reference image. |
color_palette | No | Your color theme: 3 to 10 colors, each with an optional share of the picture. |
image_urls | Yes | Photos to edit or combine. Say in the prompt what each one adds. |
prompt | Yes | Describe what you want to make. |
seed | No | Use 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.
| Option | USD per image |
|---|---|
| Standard | $0.075 |
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 packshot and the destination surface as two labelled references and ask for the light direction and colour temperature of the second to be matched.
Explore a controlled art-direction change
Keep the reference's pose and wardrobe and change the light or the setting in the same instruction. Compound instructions are what this endpoint is tuned for, so name light direction, colour temperature and the parts that must not move.
Prepare a consistent set of variations
Fix seed across a variant set so the only difference between two edits is the clause you changed. Every edit runs on a 2k canvas, about 4 megapixels; 4k is available on text-to-image only.
Prompt guide & pro tips
State what must stay and what may change
Refer to the sources by position — image 1, image 2 — and write the change followed by the do-not-change list. With one to nine references, name each one's job; the last reference sets the proportions when aspect_ratio is left out.
Keep the revision locally testable
Each request returns one image. Build a variant set by repeating the call with the seed and everything else held, change one clause at a time, and compare each result with the source rather than with the previous edit.
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. A different aspect_ratio recomposes the frame rather than cropping it, so check that the retained elements still sit where they should.
API quick start
Call the Wan 2.7 Pro 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-pro/edit 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-pro/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"
]
}
}'
# 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 Pro Edit Image endpoint
bounding_boxes let your app specify where an element should land, which is useful for layout tools that already know the target region.
color_palette steers the overall colours toward brand values.
It follows long, compound instructions well: object from image 1, surface from image 2, light from image 2, reflection kept.
seed steadies a series of edits for side-by-side review.
Because the edit canvas is 2K, it is a good final step after a cheaper composite draft: keep the same references and prompt, add the seed, and re-run here.
Product placements look most convincing when the prompt names where the light comes from in the target scene.
Wan 2.7 Pro API questions
How much does the Wan 2.7 Pro API cost?
Wan 2.7 Pro starts at $0.075 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 Pro · Edit Image API?
Aspect ratios: 1:1 · 4:3 · 3:4 · 16:9 · 9:16 · 3:2 · 2:3; Reference images: 9; Prompt length (characters): 5,000. Requests outside these limits are rejected before anything is charged.
More about Wan 2.7 Pro
- Endpoints
- Wan 2.7 Pro · Create Image