# SVD > Generate short videos from images with resolutions up to 576x1024 and customizable frame rates, ideal for creative and educational applications. ## Overview - **Model ID**: `svd` - **Category**: video - **Provider**: modelslab - **Status**: model_ready - **Screenshot**: `https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/livewire-tmp/vRDgVJCkNyxWUSxclogvFeMWlgP9rV-metac3ZkLndlYnA=-.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/text2video` - **Method**: POST ### Parameters - **`init_image`** (required): - Type: file - **`prompt`** (required): - Type: textarea - Example: Enter prompt for video - **`output_type`** (required): - Type: select (options: mp4, gif) - **`model_id`** (optional): - Type: select (options: cogvideox) - **`negative_prompt`** (optional): - Type: textarea - **`num_inference_steps`** (optional): - Type: number (range: 20-50) - **`guidance_scale`** (optional): - Type: number ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v6/video/text2video \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "svd", "init_image": "https://example.com/image.jpg", "prompt": "A suited astronaut, with the red dust of Mars clinging to their boots, reaches out to shake hands with an alien being, their skin a shimmering blue, under the pink-tinged sky of the fourth planet. In the background, a sleek silver rocket, a beacon of human ingenuity, stands tall, its engines powered down, as the two representatives of different worlds exchange a historic greeting amidst the desolate beauty of the Martian landscape.", "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_inference_steps": "35", "guidance_scale": "7.5" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v6/video/text2video", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "svd", "init_image": "https://example.com/image.jpg", "prompt": "A suited astronaut, with the red dust of Mars clinging to their boots, reaches out to shake hands with an alien being, their skin a shimmering blue, under the pink-tinged sky of the fourth planet. In the background, a sleek silver rocket, a beacon of human ingenuity, stands tall, its engines powered down, as the two representatives of different worlds exchange a historic greeting amidst the desolate beauty of the Martian landscape.", "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_inference_steps": "35", "guidance_scale": "7.5" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v6/video/text2video", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "svd", "init_image": "https://example.com/image.jpg", "prompt": "A suited astronaut, with the red dust of Mars clinging to their boots, reaches out to shake hands with an alien being, their skin a shimmering blue, under the pink-tinged sky of the fourth planet. In the background, a sleek silver rocket, a beacon of human ingenuity, stands tall, its engines powered down, as the two representatives of different worlds exchange a historic greeting amidst the desolate beauty of the Martian landscape.", "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_inference_steps": "35", "guidance_scale": "7.5" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/image-to-video-fast/svd) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)