ModelsLab/Wan2.1
Generate high-quality videos from images or text with smooth motion, readable text overlay, and support for 480p/720p resolutions; runs efficiently on consumer GPUs, offers 81–100 frames at 5–24 FPS, and enables versatile video editing and generation tasks.
API Endpoint URL
Base URL for all API requests to this endpoint.
https://modelslab.com/api/v6/video/img2video_ultra
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/91c519f4-20fe-4834-ac47-fe5c39c44b34","model_id": "wan2.1","prompt": "Flirting, flirtatious, charming, seductive ","output_type": "mp4","negative_prompt": "blurry, low quality, distorted, extra limbs, missing limbs, broken fingers, deformed, glitch, artifacts, unrealistic, low resolution, bad anatomy, duplicate, cropped, watermark, text, logo, jpeg artifacts, noisy, oversaturated, underexposed, overexposed, flicker, unstable motion, motion blur, stretched, mutated, out of frame, bad proportions","resolution": "480","num_frames": "89","fps": "16","base64": "false","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 | Image to upscale/enhance |
| model_id | model_id | Select the model id |
| Prompt | prompt | Text description of the image you want to generate |
| Output Format | output_type | output_type |
| Negative Prompt | negative_prompt | Negative prompt are used for things that do not want in the generated video |
| Resolution | resolution | Video resolution |
| Number of Frames | num_frames | Number of frames (fps=16, frames=81 = 5 seconds) |
| fps | fps | Frames per second |
| base64 | base64 | Indicates whether the init_image is provided in base64 format. Defaults to false. ( true or false) |