# Kling V2.1 Master Image To Video > Generates ultra-realistic 5-10 second videos from a single image with 1080p resolution, advanced physics-based motion, multiple aspect ratios, and cinematic-quality visuals. ## Overview - **Model ID**: `kling-v2-1-master-i2v` - **Category**: video - **Provider**: klingai - **Status**: model_ready - **Screenshot**: `https://assets.modelslab.com/generations/a9c4c8e5-86e7-4a76-8755-5eceecf86443.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): Upload the reference image - Type: file - **`prompt`** (required): Text description of the video you want to generate - Type: textarea - Example: Enter prompt for video - **`duration`** (required): Video Length, unit: s (seconds) values: 5,10 The default is 5. - Type: select (options: 5s, 10s) ## 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": "kling-v2-1-master-i2v", "init_image": "https://assets.modelslab.com/generations/1d42ba09-9158-453c-a013-66b9bd69a415.jpeg", "prompt": "A cinematic fantasy battle scene showing two massive stone-skinned giants with glowing eyes towering over the landscape, both roaring and spitting streams of fire from their mouths. The flames light up the misty air as they move their heads in fury. A brave warrior stands on a rocky cliff below, holding up his shield to protect himself from the incoming flames, his cape fluttering in the intense heat and wind. The sky burns orange with fire reflections, smoke and sparks fill the air, camera moves dramatically around the scene, ultra-realistic lighting, high-detail 4K fantasy tone, epic and powerful atmosphere.", "duration": "5" }' ``` ### 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": "kling-v2-1-master-i2v", "init_image": "https://assets.modelslab.com/generations/1d42ba09-9158-453c-a013-66b9bd69a415.jpeg", "prompt": "A cinematic fantasy battle scene showing two massive stone-skinned giants with glowing eyes towering over the landscape, both roaring and spitting streams of fire from their mouths. The flames light up the misty air as they move their heads in fury. A brave warrior stands on a rocky cliff below, holding up his shield to protect himself from the incoming flames, his cape fluttering in the intense heat and wind. The sky burns orange with fire reflections, smoke and sparks fill the air, camera moves dramatically around the scene, ultra-realistic lighting, high-detail 4K fantasy tone, epic and powerful atmosphere.", "duration": "5" } ) 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": "kling-v2-1-master-i2v", "init_image": "https://assets.modelslab.com/generations/1d42ba09-9158-453c-a013-66b9bd69a415.jpeg", "prompt": "A cinematic fantasy battle scene showing two massive stone-skinned giants with glowing eyes towering over the landscape, both roaring and spitting streams of fire from their mouths. The flames light up the misty air as they move their heads in fury. A brave warrior stands on a rocky cliff below, holding up his shield to protect himself from the incoming flames, his cape fluttering in the intense heat and wind. The sky burns orange with fire reflections, smoke and sparks fill the air, camera moves dramatically around the scene, ultra-realistic lighting, high-detail 4K fantasy tone, epic and powerful atmosphere.", "duration": "5" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/kling-v2-1-master-image-to-video/kling-v2-1-master-i2v) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)