About Wan 2.7 Pro
The Wan 2.7 Pro API offers large output and precise compositing controls. Text to image renders at 2K or 4K; the edit endpoint takes up to nine references plus bounding_boxes to place elements and color_palette to steer colours. Both typically finish in 30 to 45 seconds at a flat price.
Call it with the model name alibaba/wan-2.7-pro/text-to-image on POST /jobs/createTask, from $0.075.
Introduction
Wan 2.7 Pro 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 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 |
|---|---|---|
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. 2k · 4k · Default: 2k |
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. |
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
Explore a visual concept before production
Use text-to-image when nothing has to survive from a source and the frame will be cropped, enlarged or printed. It runs at 2k by default, about 4 megapixels, and 4k gives about 16 megapixels; every ratio gets the same pixel budget.
Create a storyboard key image
Render the still at 4k, then feed it to a 4K image-to-video endpoint as the opening frame. Video resolution governs the render, not the source, so starting from a large sharp still helps preserve fabric and skin texture in the clip.
Establish a campaign visual system
A magazine-cover frame with legible masthead type and cover lines needs the larger canvas to keep the lettering crisp. Generate at 3:2 or 2:3, hold the seed, and iterate on the typography clause alone until the words come out clean.
Prompt guide & pro tips
Write composition before decoration
Describe the frame, then name the materials worth the canvas: leather, wet concrete, glass, printed type. Composition is planned before drawing, so one clear spatial relationship beats a keyword pile.
Hold the seed and change one clause per run
With the seed and every other input held, the draw stays steady, so the difference between two runs is what the changed clause did. Only then sweep aspect_ratio for the crops you need to deliver.
Review before reusing the image downstream
Text-to-image returns one image per request and invents a new face on each seed, so a specific person needs a reference and the image-to-image endpoint. When the output is only going to a feed or a thumbnail, Wan 2.7 does the same job on a smaller canvas.
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/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-pro/text-to-image",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"aspect_ratio": "1:1",
"resolution": "2k"
}
}'
# 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 Pro API
- Product compositing tools that place an item into a scene at a defined location.
- Print-ready key visuals and posters at 16 megapixels.
- 4K opening frames for video pipelines.
Wan 2.7 Pro parameter notes
- resolution on text to image is 2k or 4k; edits return 2K.
- bounding_boxes on edit positions referenced elements within the frame.
- color_palette on both endpoints steers the colour scheme.
- seed steadies results; one image per request.
How Wan 2.7 Pro API pricing adds up
A single flat price per image for both endpoints, regardless of resolution, which makes 4K text to image the better value when you need a large file.
- Create Image: $0.075 per run, $7.50 for 100 runs
Async jobs, webhooks and rate limits
Every Wan 2.7 Pro 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-pro/text-to-image never runs or bills twice.
Common Wan 2.7 Pro API errors
| errorCode | What it usually means and how to fix it |
|---|---|
invalid_request | More than nine references or malformed bounding_boxes. |
unsupported_combination | resolution 4k sent to edit, which renders at 2K. |
content_rejected | A refused prompt or reference. |
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 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 Pro in the API?
Put alibaba/wan-2.7-pro/text-to-image for Create Image; alibaba/wan-2.7-pro/edit for Edit Image in the model field of POST /jobs/createTask.
What do bounding_boxes do in the Wan 2.7 Pro API?
They tell the edit where in the frame to place referenced elements.
Does 4K cost more on Wan 2.7 Pro?
No, the per-image price is flat.
How fast is Wan 2.7 Pro?
About 46 seconds for text to image and 31 for edits.
What are the limits of the Wan 2.7 Pro API?
Resolutions: 2K · 4K; Aspect ratios: 1:1 · 4:3 · 3:4 · 16:9 · 9:16 · 3:2 · 2:3; Prompt length (characters): 5,000. Requests outside these limits are rejected before anything is charged.
Can I try Wan 2.7 Pro without writing code?
Run Wan 2.7 Pro 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 renders at about 1 megapixel by default for less and returns up to four images per run; Pro is for the big canvas.
- 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 Pro
- Endpoints
- Wan 2.7 Pro · Edit Image