# kling V2.1 Master Text To Video > Generates hyper-realistic 1080p text-to-video clips with smooth motion, cinematic visuals, and advanced temporal attention for frame consistency in short videos. ## Overview - **Model ID**: `kling-v2-1-master-t2v` - **Category**: video - **Provider**: klingai - **Status**: model_ready - **Screenshot**: `https://assets.modelslab.com/generations/4c066928-ae15-4d08-99f0-1cdcab52742c.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/text-to-video` - **Method**: POST ### Parameters - **`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/text-to-video \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "kling-v2-1-master-t2v", "prompt": "Cinematic drone shot of a luxury cruise ship sailing through the blue ocean, passengers on deck, sunlight glimmering on the water, smooth tracking camera, ultra-realistic lighting, serene vacation vibe, 4K cinematic tone.", "duration": "5" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v7/video-fusion/text-to-video", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "kling-v2-1-master-t2v", "prompt": "Cinematic drone shot of a luxury cruise ship sailing through the blue ocean, passengers on deck, sunlight glimmering on the water, smooth tracking camera, ultra-realistic lighting, serene vacation vibe, 4K cinematic tone.", "duration": "5" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v7/video-fusion/text-to-video", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "kling-v2-1-master-t2v", "prompt": "Cinematic drone shot of a luxury cruise ship sailing through the blue ocean, passengers on deck, sunlight glimmering on the water, smooth tracking camera, ultra-realistic lighting, serene vacation vibe, 4K cinematic tone.", "duration": "5" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/kling-v2.1-master-t2v/kling-v2-1-master-t2v) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)