API Endpoint URL
Base URL for all API requests to this endpoint.
https://modelslab.com/api/v7/video-fusion/image-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
{"init_image": "https://assets.modelslab.com/generations/1d42ba09-9158-453c-a013-66b9bd69a415.jpeg","prompt": "A cinematic fantasy battle scene showing two massive stone-skinned giants with glowing eyes towering over the landscape, both roaring and spitting streams of fire from their mouths. The flames light up the misty air as they move their heads in fury. A brave warrior stands on a rocky cliff below, holding up his shield to protect himself from the incoming flames, his cape fluttering in the intense heat and wind. The sky burns orange with fire reflections, smoke and sparks fill the air, camera moves dramatically around the scene, ultra-realistic lighting, high-detail 4K fantasy tone, epic and powerful atmosphere.","duration": "5","model_id": "kling-v2-1-master-i2v","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 |
|---|---|---|
| Reference Image | init_image | Upload the reference image |
| 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 |
