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/5f3337ad-7f64-4c1d-a690-5ffe3cd0982d.jpg","prompt": "Spider-Man standing in the rain at night, water droplets falling across his mask and suit, glistening in neon city lights. The rain intensifies, each droplet realistically rolling down his face and shoulders. The camera slowly moves closer, focusing on the reflections in his eyes. Suddenly, Spider-Man raises his hand and shoots a web directly at the camera lens — the web hits the lens with impact, blurring the view slightly with water and motion. Ultra-realistic cinematic lighting, dramatic rain atmosphere, detailed wet textures, smooth camera movement, realistic web-shooting animation, movie-grade realism, 4K quality.","duration": "5","model_id": "kling-v2-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 |
