API Endpoint URL
Base URL for all API requests to this endpoint.
https://modelslab.com/api/v8/videos/text-to-video
API Authentication
Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.
Integration Examples
Production-ready code samples for API integration
{"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.","model_id": "veo2","portrait": false,"key": "YOUR_API_KEY"}
SDKs
Official SDKs
Production-ready SDKs and client libraries for all major programming languages
API Parameters
Technical specifications for API request parameters.
| Field Name | Parameter | Technical Description |
|---|---|---|
| Prompt | prompt | Enter the text for the video you want to generate |
| Model | model_id | Model to use for generation |
| portrait | portrait | Toggle on for portrait generation |