# Wan 2.7 — Image to Video > Wan 2.7 delivers enhanced motion smoothness, superior scene fidelity, and greater visual coherence. ## Overview - **Endpoint**: `https://api.runflow.io/v1/run/alibaba/wan/v2.7/image-to-video` - **Model ID**: `alibaba/wan/v2.7/image-to-video` - **Provider**: Alibaba - **License**: commercial - **Last Updated**: 2026-04-08 ## Pricing - **Base price**: $0.1/second - **Note**: Per second of video ## Input Schema ### `prompt` (string, optional) ### `image_url` (image, optional) ### `end_image_url` (image, optional) ### `video_url` (video, optional) ### `audio_url` (file, optional) ### `resolution` (string, optional) - **Default**: `1080p` - **Options**: `720p`, `1080p` ### `duration` (integer, optional) - **Default**: `5` ### `negative_prompt` (string, optional) ### `enable_prompt_expansion` (boolean, optional) - **Default**: `true` ### `seed` (integer, optional) ### `enable_safety_checker` (boolean, optional) - **Default**: `true` ## Usage Examples ### cURL ```bash curl -X POST https://api.runflow.io/v1/run/alibaba/wan/v2.7/image-to-video \ -H "Authorization: Bearer $RUNFLOW_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "A professional headshot, soft studio lighting", "image_url": "https://example.com/input.jpg", "audio_url": "https://example.com/input.mp3", "video_url": "https://example.com/input.mp4" }' ``` ### Python ```python import requests response = requests.post( "https://api.runflow.io/v1/run/alibaba/wan/v2.7/image-to-video", headers={"Authorization": "Bearer RUNFLOW_API_KEY"}, json={ "prompt": "A professional headshot, soft studio lighting", "image_url": "https://example.com/input.jpg", "audio_url": "https://example.com/input.mp3", "video_url": "https://example.com/input.mp4", }, ) data = response.json() print(data["video"]["url"]) ``` ### JavaScript ```javascript const response = await fetch( "https://api.runflow.io/v1/run/alibaba/wan/v2.7/image-to-video", { method: "POST", headers: { "Authorization": "Bearer RUNFLOW_API_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ prompt: "A professional headshot, soft studio lighting", image_url: "https://example.com/input.jpg", audio_url: "https://example.com/input.mp3", video_url: "https://example.com/input.mp4", }), } ); const data = await response.json(); console.log(data.video.url); ``` ## Additional Resources - [Playground](https://www.runflow.io/models/alibaba/wan/v2.7/image-to-video) - [API Reference](https://www.runflow.io/models/alibaba/wan/v2.7/image-to-video/api) - [Documentation](https://www.runflow.io/docs)