API Endpoint URL
Base URL for all API requests to this endpoint.
https://modelslab.com/api/v7/video-fusion/text-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_audio": "https://assets.modelslab.com/generations/74c4f2e6-2fa6-4d8f-a0e3-09ff1a94d9e1.mp3","prompt": "I man talking towards camera from great wall of china and saying, Welcome to my vlogs the beautiful views from this place is breathetaking and amazing you should also come here","model_id": "wan2.6-t2v","duration": "5","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 |
|---|---|---|
| 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. |
