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/91e963e0-c7e7-4e8e-8ff3-937d9a788557.webp","init_audio": "https://assets.modelslab.com/generations/1b41c758-3387-4de9-b81f-bcb98265a67c.mp3","prompt": "A scene of urban fantasy art. A dynamic graffiti art character. A boy painted with spray paint comes to life from a concrete wall. He sings an English rap song at a very fast pace while striking a classic, energetic rapper pose. The scene is set under an urban railway bridge at night. The lighting comes from a single streetlight, creating a cinematic atmosphere full of high energy and amazing detail. The audio of the video consists entirely of the boy's rap, with no other dialogue or noise.","model_id": "wan2.5-i2v","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 |
| Resolution | resolution | Resolution for the video generation output, available options : 480p, 720p, 1080p |
