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/0613c459-6ad7-4ddd-bd8c-65d4c4bde296.jpg","init_audio": null,"prompt": "15-second cinematic shot of a lone post-apocalyptic soldier in armor and gas mask walking straight toward the camera along a cracked, dusty road between rows of rusted abandoned cars, holding a rifle and tattered flag, slow forward camera movement, smoke and dust drifting from ruined buildings in the background, warm orange sunset light, debris blowing slightly in the wind, realistic gritty atmosphere.","model_id": "wan2.6-i2v-flash","duration": "15","resolution": "720p","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 |
|---|---|---|
| Image URL | init_image | Add the image to convert it to video using prompt |
| Audio-URL | init_audio | The video content will attempt to align with the audio content, such as lip movements and rhythm. Format: WAV, MP3. If the audio duration exceeds the duration value (5 or 10 seconds), the first 5 or 10 seconds are automatically used, and the rest is discarded. If the audio is shorter than the video duration, the part of the video beyond the audio length will be silent. |
| Prompt | prompt | Enter a prompt to define the actions you want your image to perform. |
| Model | model_id | Model_id for selecting the model from mutiple models |
| Duration | duration | The duration of the generated video in seconds. |
| Resolution | resolution | The resolution of the generated video in pixel. |
