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/text2video_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
{"prompt": "astronaut in a spacesuit is jumping and diving on a springboard at competition, front jump, side view, then dives into water, water splash, he is wearing a a spacesuit","model_id": "wan2.1","portrait": true,"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","output_type": "mp4","fps": "16","num_frames": "81","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 |
|---|---|---|
| prompt | prompt | Prompt |
| model_id | model_id | Select the model id |
| Portrait | portrait | toggle off if you want horizontal video generation |
| Negative Prompt | negative_prompt | Things that you do not want in video |
| Output Type | output_type | Output type |
| fps | fps | Frames per second |
| Numer of frames | num_frames | if the fps is 16 and Number of frame is 81 it will generate 5 sec video |