API Endpoint URL
Base URL for all API requests to this endpoint.
https://modelslab.com/api/v7/video-fusion/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": "Ultra-realistic cinematic scene of a powerful rocket launching from a space center at sunrise, with bright flames and thick smoke billowing from the engines, camera shaking slightly from the force, slow-motion takeoff, detailed metal reflections on the rocket body, glowing exhaust, dramatic lighting, 4K high detail, smooth motion, cinematic atmosphere","duration": "5","model_id": "kling-v2-5-turbo-t2v","aspect_ratio": "1:1","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 | Text description of the video you want to generate |
| Duration | duration | Video Length, unit: s (seconds) values: 5,10 The default is 5. |
| Model | model_id | model_id is required for selecting the right model for API |
| Aspect Ratio | aspect_ratio | The aspect ratio of the generated video frame (width:height) Enum values:16:9, 9:16, 1:1 |