Runflow
Back to Gallery

alibaba/wan/v2.7/pro/edit

Edit and transform images using text instructions with the WAN 2.7 Pro model for precise, professional-grade image modifications.

$0.075/image 2026-04-08

Install

pip install requests

Run the model

import requests

response = requests.post(
    "https://api.runflow.io/v1/run/wan/v2.7/pro/edit",
    headers={"Authorization": "Bearer RUNFLOW_API_KEY"},
    json={
    "prompt": "Turn the office into a cozy mountain cabin: snow falling outside the windows,...",
    "image_urls": [
        "https://public.runflow.io/images/models/_shared/base-engineer.png"
    ]
    },
)

data = response.json()
print(data["images"][0]["url"])

Input schema

ParameterTypeDescription
promptstringText prompt describing the desired image edit. Supports Chinese and English.
image_urlsarrayReference images for editing (1-4 images required). Order matters: reference them as image 1, image 2, image 3, image 4 in the prompt.
negative_promptstringContent to avoid in the generated image. Max 500 characters.
image_sizestringOutput image size. Uses fal image size presets or explicit dimensions and is converted to DashScope size format.
num_imagesintegerNumber of images to generate (1-4).
enable_prompt_expansionbooleanEnable DashScope prompt expansion. Supported only for image edit mode.
seedintegerRandom seed for reproducibility (0-2147483647).
enable_safety_checkerbooleanEnable content moderation for input and output.

Output schema

FieldTypeDescription
imagesjsonGenerated images.
seedintegerThe seed used for generation.

Related models

Start generating with Wan 2.7 Pro Edit

Get API access in minutes. No GPU setup, no infrastructure to manage.