wan2.7-image-pro API
Generate up to 4K images, edit references, and create coherent image sequences with wan2.7-image-pro on Openrouter API.
wan2.7-image-prowan2.7-image-pro API pricing
All prices in USD. Openrouter API rates compared with the official list price for the same unit.
| Option | Openrouter API | Official | Save |
|---|---|---|---|
| DefaultDefault | $0.05984 | $0.069 | −13% |
Prices are per image.
What is wan2.7-image-pro?
Alibaba’s wan2.7-image-pro is the professional edition of the Wan Image family, built for text-to-image generation, image editing, and thematically coherent image sequences. It supports up to 4K output for non-sequential text-to-image requests and up to 2K for editing or sequential generation. Developers can supply text prompts, reference images, or bounding boxes for targeted edits, with controls for aspect ratio, negative prompts, seeds, and optional watermarks.
On Openrouter API, call wan2.7-image-pro through POST /v1/images/generations using your API key and the OpenAI-compatible base URL https://openrouterapi.ru/v1. Generation is asynchronous: submit a task, then poll using the returned task_id. Openrouter API Default pricing is $0.05984 per image, about 13% below the developer's list price of $0.069 per image. Billing counts successfully generated images only; input, resolution, and aspect ratio do not change the image price, and failed requests are not charged.
wan2.7-image-pro highlights
Up to 4K Output
Generate text-to-image outputs at 1K, 2K, or 4K in non-sequential mode. Editing and sequential generation support up to 2K.
Reference-Based Image Editing
Supply up to nine input images for editing and multi-image reference workflows. Bounding boxes let you specify regions to edit or insert content.
Coherent Image Sequences
Enable sequential generation to request up to 12 thematically coherent images in one task. This mode supports storyboard and image-series workflows.
Detailed Generation Controls
Set negative prompts, seeds, aspect ratios, and optional watermarks. Enhanced reasoning mode can improve image quality at the cost of longer generation time in non-sequential text-to-image mode.
How to call the wan2.7-image-pro API in 4 steps
- 01
Get an API key
Sign in to Openrouter API, top up from $50, and create an sk-ora key in the console.
- 02
Set the base URL
Use https://openrouterapi.ru/v1 as the base URL in your SDK or HTTP client.
- 03
Send the request
Call POST /v1/images/generations with "model": "wan2.7-image-pro" and the parameters below.
- 04
Handle the response
The response contains a task_id. Poll GET /v1/tasks/{task_id} until the status is completed, then download the result URLs.
Request examples
Documentation: wan2.7 Image Generation & Editingcurl --request POST \
--url https://openrouterapi.ru/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "wan2.7-image-pro",
"prompt": "A flower shop with exquisite windows, beautiful wooden door, flowers on display"
}'Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Required | — | Image generation model name. |
nsfw_check | boolean | Optional | false | Whether to run content moderation before submitting the image task. |
prompt | string | Optional | — | Text description for image generation, up to 5000 characters. |
image_urls | array\<string\> | Optional | — | Input image URL array for editing and multi-image reference scenarios. |
n | integer | Optional | 1 | Number of images to generate. |
size | string | Optional | — | Output resolution or aspect ratio. Supports three formats: |
resolution | string | Optional | — | Resolution tier keyword: `1K` / `2K` / `4K`. Can be combined with `size` (aspect ratio). |
negative_prompt | string | Optional | — | Negative prompt describing elements to avoid. Example: `"blurry, distorted, low quality"` |
watermark | boolean | Optional | false | Whether to add an "AI Generated" watermark to the bottom-right corner. |
seed | integer | Optional | — | Random seed, range 0–2147483647. Same seed with identical parameters produces visually consistent results. |
thinking_mode | boolean | Optional | true | Enable enhanced reasoning mode to improve image quality at the cost of longer generation time. |
enable_sequential | boolean | Optional | false | Enable **sequential image generation** mode — generates multiple thematically coherent images in one request. Ideal for storyboards and series. |
bbox_list | array | Optional | — | Bounding boxes for interactive editing — specifies exact regions to edit or insert content. |
Structure: | [[[x1, y1, x2, y2], ...], ...] | Optional | — | |
color_palette | array\<object\> | Optional | — | Custom color theme. **Standard mode only** (not sequential mode). |
What you can build with wan2.7-image-pro
Creative Asset Generation
Build a tool that turns creative briefs into images with selectable aspect ratios and up to 4K text-to-image output.
Targeted Visual Editing
Let users upload reference images and specify bounding boxes for localized changes instead of requesting an entirely new composition.
Storyboard Production
Generate a thematically coherent sequence of up to 12 images from one request for storyboards or visual series.
Reference-Driven Design
Build a design workflow that accepts multiple reference images alongside a prompt to guide image editing.
Tips for better results
- 01
Choose Resolution by Mode
Use the resolution parameter with size to select a tier and aspect ratio. Reserve 4K for non-sequential text-to-image; editing and sequential requests are limited to 2K.
- 02
Keep Iterations Consistent
Reuse the same seed and identical parameters for visually consistent results. Use negative_prompt to describe unwanted elements such as blur or distortion.
- 03
Budget by Image Count
Set n to 1–4 in standard mode or 1–12 in sequential mode. Requests are pre-charged based on n, with final billing based on successfully generated images.
- 04
Build for Async Results
Store the returned task_id and poll for results after submitting a generation request. Do not treat task submission as delivery of the finished images.
Limits and things to know
Editing accepts up to nine input images and automatically matches the last input image’s aspect ratio.
Prompts support up to 5000 characters; text-to-image requires a prompt.
Sequential mode ignores thinking_mode and color_palette; thinking_mode also has no effect with image inputs.
wan2.7-image-pro API FAQ
How much does wan2.7-image-pro cost on Openrouter API?
Openrouter API Default pricing is $0.05984 per image, about 13% below the developer's list price of $0.069 per image. Only successfully generated images are billed; input, resolution, and aspect ratio do not affect pricing.
How do I call wan2.7-image-pro through the API?
Send a Bearer-authenticated POST request to https://openrouterapi.ru/v1/images/generations with model set to wan2.7-image-pro. Include a prompt for text-to-image, then poll for results using the returned task_id.
Does wan2.7-image-pro support 4K image editing?
No. It supports up to 4K for non-sequential text-to-image generation, while editing and sequential generation are limited to 2K.
Which image inputs and controls are supported?
Editing accepts up to nine images via HTTP/HTTPS URLs or Base64 data URLs in JPEG, PNG, WEBP, or BMP format. Controls include negative_prompt, seed, size, resolution, watermark, and bbox_list for region-based editing.
How does wan2.7-image-pro compare with wan2.7-image?
The documentation describes wan2.7-image-pro as the professional edition with better details and up to 4K text-to-image output. wan2.7-image is described as faster and supports up to 2K; both support up to 2K for editing and sequential generation.
Can I use generated images commercially?
Commercial use is subject to the model developer’s terms. Review Alibaba’s applicable terms and any rights associated with your input images before using outputs commercially.
Related models
wan2.7-image
qwen-image-2.0
qwen-image-2.0-pro
qwen-image-3.0
qwen-image-3.0-pro
z-image-turbo
flux-2-flex
flux-2-max
Start building with wan2.7-image-pro
One key, pay as you go from $50, billed only for successful requests.
