# wan2.6 Image To Video (Flash) > AI model for generating video content ## Overview - **Model ID**: `wan2.6-i2v-flash` - **Category**: video - **Provider**: alibaba_cloud - **Status**: model_ready - **Screenshot**: `https://assets.modelslab.com/generations/118afa95-ea11-4749-8b78-d513b799afcd.webp` ## API Information This model can be used via our HTTP API. See the API documentation and usage examples below. ### Endpoint - **URL**: `https://modelslab.com/api/v7/video-fusion/image-to-video` - **Method**: POST ### Parameters - **`init_image`** (required): Add the image to convert it to video using prompt - Type: file - **`init_audio`** (required): The video content will attempt to align with the audio content, such as lip movements and rhythm. Format: WAV, MP3. If the audio duration exceeds the duration value (5 or 10 seconds), the first 5 or 10 seconds are automatically used, and the rest is discarded. If the audio is shorter than the video duration, the part of the video beyond the audio length will be silent. - Type: file - **`prompt`** (required): Enter a prompt to define the actions you want your image to perform. - Type: textarea - **`model_id`** (optional): Model_id for selecting the model from mutiple models - Type: text - **`duration`** (required): The duration of the generated video in seconds. - Type: select (options: 5sec, 10sec, 15sec) - **`resolution`** (required): The resolution of the generated video in pixel. - Type: select (options: 720p, 1080p) ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v7/video-fusion/image-to-video \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "wan2.6-i2v-flash", "init_image": "https://assets.modelslab.com/generations/0613c459-6ad7-4ddd-bd8c-65d4c4bde296.jpg", "init_audio": "https://example.com/image.jpg", "prompt": "15-second cinematic shot of a lone post-apocalyptic soldier in armor and gas mask walking straight toward the camera along a cracked, dusty road between rows of rusted abandoned cars, holding a rifle and tattered flag, slow forward camera movement, smoke and dust drifting from ruined buildings in the background, warm orange sunset light, debris blowing slightly in the wind, realistic gritty atmosphere.", "duration": "15", "resolution": "720p" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v7/video-fusion/image-to-video", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "wan2.6-i2v-flash", "init_image": "https://assets.modelslab.com/generations/0613c459-6ad7-4ddd-bd8c-65d4c4bde296.jpg", "init_audio": "https://example.com/image.jpg", "prompt": "15-second cinematic shot of a lone post-apocalyptic soldier in armor and gas mask walking straight toward the camera along a cracked, dusty road between rows of rusted abandoned cars, holding a rifle and tattered flag, slow forward camera movement, smoke and dust drifting from ruined buildings in the background, warm orange sunset light, debris blowing slightly in the wind, realistic gritty atmosphere.", "duration": "15", "resolution": "720p" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v7/video-fusion/image-to-video", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "wan2.6-i2v-flash", "init_image": "https://assets.modelslab.com/generations/0613c459-6ad7-4ddd-bd8c-65d4c4bde296.jpg", "init_audio": "https://example.com/image.jpg", "prompt": "15-second cinematic shot of a lone post-apocalyptic soldier in armor and gas mask walking straight toward the camera along a cracked, dusty road between rows of rusted abandoned cars, holding a rifle and tattered flag, slow forward camera movement, smoke and dust drifting from ruined buildings in the background, warm orange sunset light, debris blowing slightly in the wind, realistic gritty atmosphere.", "duration": "15", "resolution": "720p" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/wan2.6-flash-image-to-video/wan2.6-i2v-flash) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)