# Veo 2 > Generates high-quality, realistic videos up to 4K resolution from text or images, with cinematic control over camera angles, lens effects, and motion for dynamic storytelling. ## Overview - **Model ID**: `veo2` - **Category**: video - **Provider**: google - **Status**: model_ready - **Screenshot**: `https://assets.modelslab.com/generations/72987a72-d15f-4584-b921-8c9d8dce9bd2.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/v8/video-fusion/text-to-video` - **Method**: POST ### Parameters - **`prompt`** (required): Enter the text for the video you want to generate - Type: textarea - Example: Enter prompt for video - **`portrait`** (required): Toggle on for portrait generation - Type: toggle ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v8/video-fusion/text-to-video \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "veo2", "prompt": "A hooded wizard stands on a stormy mountainside. The camera slowly zooms in as he raises his glowing green hand of energy and places it firmly on his chest. The green energy rapidly pulses and spreads through his entire body like veins of lightning, illuminating his form. His eyes ignite with the same energy as powerful wind whips through his cloak and hood, making them billow dramatically. Debris lifts from the ground and swirls around him. He clenches his fists and lifts his head, clearly empowered. Magical sparks and glowing particles float in the air. High quality, cinematic, ultra realistic, 4k, dramatic lighting, cool special effects, dynamic wind motion, flowing fabric, immersive atmosphere.", "portrait": false }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v8/video-fusion/text-to-video", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "veo2", "prompt": "A hooded wizard stands on a stormy mountainside. The camera slowly zooms in as he raises his glowing green hand of energy and places it firmly on his chest. The green energy rapidly pulses and spreads through his entire body like veins of lightning, illuminating his form. His eyes ignite with the same energy as powerful wind whips through his cloak and hood, making them billow dramatically. Debris lifts from the ground and swirls around him. He clenches his fists and lifts his head, clearly empowered. Magical sparks and glowing particles float in the air. High quality, cinematic, ultra realistic, 4k, dramatic lighting, cool special effects, dynamic wind motion, flowing fabric, immersive atmosphere.", "portrait": False } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v8/video-fusion/text-to-video", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "veo2", "prompt": "A hooded wizard stands on a stormy mountainside. The camera slowly zooms in as he raises his glowing green hand of energy and places it firmly on his chest. The green energy rapidly pulses and spreads through his entire body like veins of lightning, illuminating his form. His eyes ignite with the same energy as powerful wind whips through his cloak and hood, making them billow dramatically. Debris lifts from the ground and swirls around him. He clenches his fists and lifts his head, clearly empowered. Magical sparks and glowing particles float in the air. High quality, cinematic, ultra realistic, 4k, dramatic lighting, cool special effects, dynamic wind motion, flowing fabric, immersive atmosphere.", "portrait": false }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/veo2/veo2) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)