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/bf96da3b-df2f-4bc3-8834-583bc1640de6.png","prompt": "Two beautiful birds flying gracefully over a sunlit meadow filled with white flowers, their wings glowing softly in the warm golden sunlight. The camera moves in slow motion, capturing the delicate motion of their wings as they circle and glide in the gentle mountain breeze. The background shows misty hills and soft morning light filtering through the air, creating a peaceful, cinematic atmosphere. Ultra-realistic detail, smooth motion, shallow depth of field, 4K nature cinematography, serene and poetic tone.","duration": "5","model_id": "Kling-V2-5-Turbo-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 |
