# Wan2.2 Image to Video > Generate high-quality 720p videos at 24fps from images with advanced motion control and seamless transitions, ideal for animations and cinematic outputs. ## Overview - **Model ID**: `wan-2.2-i2v` - **Category**: video - **Provider**: modelslab - **Status**: active - **Screenshot**: `https://assets.modelslab.com/generations/72cf5631-fa0a-4073-a5a4-232be7e99716.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/v6/video/img2video_ultra` - **Method**: POST ### Parameters - **`init_image`** (required): - Type: file - **`prompt`** (required): - Type: textarea - **`resolution`** (required): - Type: select (options: 480) - **`output_type`** (optional): output_type - Type: select (options: mp4, mov) - **`model_id`** (optional): Select the model id - Type: text - **`negative_prompt`** (optional): Negative prompt are used for things that do not want in the generated video - Type: textarea - Example: Enter Negative Prompt - **`num_frames`** (optional): - Type: number (range: 82-122) - **`fps`** (optional): - Type: number (range: 16-20) ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v6/video/img2video_ultra \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "wan-2.2-i2v", "init_image": "https://assets.modelslab.com/generations/91c519f4-20fe-4834-ac47-fe5c39c44b34", "prompt": "Flirting, flirtatious, charming, seductive ", "resolution": "480", "output_type": "mp4", "negative_prompt": "blurry, low quality, distorted, extra limbs, missing limbs, broken fingers, deformed, glitch, artifacts, unrealistic, low resolution, bad anatomy, duplicate, cropped, watermark, text, logo, jpeg artifacts, noisy, oversaturated, underexposed, overexposed, flicker, unstable motion, motion blur, stretched, mutated, out of frame, bad proportions", "num_frames": "89", "fps": "18" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v6/video/img2video_ultra", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "wan-2.2-i2v", "init_image": "https://assets.modelslab.com/generations/91c519f4-20fe-4834-ac47-fe5c39c44b34", "prompt": "Flirting, flirtatious, charming, seductive ", "resolution": "480", "output_type": "mp4", "negative_prompt": "blurry, low quality, distorted, extra limbs, missing limbs, broken fingers, deformed, glitch, artifacts, unrealistic, low resolution, bad anatomy, duplicate, cropped, watermark, text, logo, jpeg artifacts, noisy, oversaturated, underexposed, overexposed, flicker, unstable motion, motion blur, stretched, mutated, out of frame, bad proportions", "num_frames": "89", "fps": "18" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v6/video/img2video_ultra", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "wan-2.2-i2v", "init_image": "https://assets.modelslab.com/generations/91c519f4-20fe-4834-ac47-fe5c39c44b34", "prompt": "Flirting, flirtatious, charming, seductive ", "resolution": "480", "output_type": "mp4", "negative_prompt": "blurry, low quality, distorted, extra limbs, missing limbs, broken fingers, deformed, glitch, artifacts, unrealistic, low resolution, bad anatomy, duplicate, cropped, watermark, text, logo, jpeg artifacts, noisy, oversaturated, underexposed, overexposed, flicker, unstable motion, motion blur, stretched, mutated, out of frame, bad proportions", "num_frames": "89", "fps": "18" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/wan-2.2-i2v/wan-2.2-i2v) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)