# Wan 2.7 Pro Edit > Edit and transform images using text instructions with the WAN 2.7 Pro model for precise, professional-grade image modifications. ## Overview - **Endpoint**: `https://api.runflow.io/v1/run/alibaba/wan/v2.7/pro/edit` - **Model ID**: `alibaba/wan/v2.7/pro/edit` - **Provider**: Alibaba - **License**: commercial - **Last Updated**: 2026-04-08 ## Pricing - **Base price**: $0.075/image - **Note**: Per image ## Input Schema ### `prompt` (string, required) Text prompt describing the desired image edit. Supports Chinese and English. ### `image_urls` (array, required) 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, optional) Content to avoid in the generated image. Max 500 characters. - **Default**: `` ### `image_size` (string, optional) Output image size. Uses fal image size presets or explicit dimensions and is converted to DashScope size format. - **Default**: `square_hd` ### `num_images` (integer, optional) Number of images to generate (1-4). - **Default**: `1` ### `enable_prompt_expansion` (boolean, optional) Enable DashScope prompt expansion. Supported only for image edit mode. - **Default**: `true` ### `seed` (integer, optional) Random seed for reproducibility (0-2147483647). ### `enable_safety_checker` (boolean, optional) Enable content moderation for input and output. - **Default**: `true` ## Usage Examples ### cURL ```bash curl -X POST https://api.runflow.io/v1/run/alibaba/wan/v2.7/pro/edit \ -H "Authorization: Bearer $RUNFLOW_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "A professional headshot, soft studio lighting" }' ``` ### Python ```python import requests response = requests.post( "https://api.runflow.io/v1/run/alibaba/wan/v2.7/pro/edit", headers={"Authorization": "Bearer RUNFLOW_API_KEY"}, json={ "prompt": "A professional headshot, soft studio lighting", }, ) data = response.json() print(data["images"][0]["url"]) ``` ### JavaScript ```javascript const response = await fetch( "https://api.runflow.io/v1/run/alibaba/wan/v2.7/pro/edit", { method: "POST", headers: { "Authorization": "Bearer RUNFLOW_API_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ prompt: "A professional headshot, soft studio lighting", }), } ); const data = await response.json(); console.log(data.images[0].url); ``` ## Additional Resources - [Playground](https://www.runflow.io/models/alibaba/wan/v2.7/pro/edit) - [API Reference](https://www.runflow.io/models/alibaba/wan/v2.7/pro/edit/api) - [Documentation](https://www.runflow.io/docs)