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/af75fd35-26ee-41cd-a51b-6ea0834b307e.","https://assets.modelslab.com/generations/057b4883-672d-480e-a1e3-19340abdcb2c.","https://assets.modelslab.com/generations/da2297a6-1860-4913-98f2-8b03503cd926.jpg","https://assets.modelslab.com/generations/fda21df2-d370-4b0b-9e28-1c8bb2a505b0.jpg"],"prompt": "A model strolling with bag, chain, dress on a walkway. Cinematic, hyperrealistic, 8K.","model_id": "kling-v1-6","duration": "10","aspect_ratio": "16:9","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 |
| Model | model_id | model_id is required for selecting the right model for API |
| duration | duration | Video Length, unit: s (seconds) Enum values:5,10 |
| aspect_ratio | aspect_ratio | The aspect ratio of the generated video frame (width:height) Enum values:16:9, 9:16, 1:1 |
