Edit and transform images using text instructions with the WAN 2.7 Pro model for precise, professional-grade image modifications.
pip install requestsimport 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"])| Parameter | Type | Description |
|---|---|---|
| prompt | string | Text prompt describing the desired image edit. Supports Chinese and English. |
| image_urls | array | Reference images for editing (1-4 images required). Order matters: reference them as image 1, image 2, image 3, image 4 in the prompt. |
| negative_prompt | string | Content to avoid in the generated image. Max 500 characters. |
| image_size | string | Output image size. Uses fal image size presets or explicit dimensions and is converted to DashScope size format. |
| num_images | integer | Number of images to generate (1-4). |
| enable_prompt_expansion | boolean | Enable DashScope prompt expansion. Supported only for image edit mode. |
| seed | integer | Random seed for reproducibility (0-2147483647). |
| enable_safety_checker | boolean | Enable content moderation for input and output. |
| Field | Type | Description |
|---|---|---|
| images | json | Generated images. |
| seed | integer | The seed used for generation. |
Wan 2.7 Text to Video
alibaba/wan/v2.7/text-to-video
Wan 2.7 is the latest generation AI video model, delivering enhanced motion smoo...
Wan 2.7 — Image to Video
alibaba/wan/v2.7/image-to-video
Wan 2.7 delivers enhanced motion smoothness, superior scene fidelity, and greate...
FLUX.2 [klein] 9B — Edit
black-forest-labs/flux-2-klein-9b/edit
Image-to-image editing with FLUX.2 [klein] 9B from Black Forest Labs. Precise mo...
Reve Edit
reve/edit
Reve's edit model lets you upload an existing image and then transform it via a ...
Get API access in minutes. No GPU setup, no infrastructure to manage.