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/ee582a49-2fb3-4176-be8b-12a5bc1dfdd1.png","prompt": "A cinematic action sequence featuring a team of muscular, yellow-suited tactical soldiers wearing black armor and helmets labeled “NEVER GOON.” They move stealthily through a dimly lit corridor filled with smoke and tension. The camera pans dynamically as the soldiers take sniper positions and begin firing precise shots down the hallway — muzzle flashes lighting up the darkness, bullet sparks against concrete walls, and echoing gunfire. Realistic lighting, cinematic depth, intense slow-motion shots, 4K ultra detail, dramatic atmosphere, tactical teamwork, war-movie style realism.","duration": "5","model_id": "kling-v2-1-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 |
