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/748c662c-7438-4c47-9540-c8d26c0e3217.jpg","prompt": "Add drifting fog and torchlight flicker, a slow forward camera move toward the castle gate, moody ambiance and subtle sound of wind.","duration": "6","model_id": "Hailuo-2.3-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: 6,10 The default is 6. |
| Model | model_id | model_id is required for selecting the right model for API |
