# Wan 2.5 Text to Video > Next-gen video generation creates cinematic-quality clips up to 10 seconds in 1080p with synchronized audio and realistic motion. ## Overview - **Model ID**: `wan2.5-t2v` - **Category**: video - **Provider**: alibaba_cloud - **Status**: model_ready - **Screenshot**: `https://assets.modelslab.com/generations/07a703f4-3417-47a5-b3c6-4fb33913328f.` ## API Information This model can be used via our HTTP API. See the API documentation and usage examples below. ### Endpoint - **URL**: `https://modelslab.com/api/v7/video-fusion/text-to-video` - **Method**: POST ### Parameters - **`prompt`** (required): Enter the text for the video you want to generate - Type: textarea - Example: Enter Prompt for video generation - **`init_audio`** (required): 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. - Type: file - **`enhance_prompt`** (optional): Specifies whether to enable prompt rewriting. This can significantly improve the generation quality for shorter prompts but increases the time required. - Type: toggle - **`model_id`** (optional): Model for making an API call - Type: text - **`generate_audio`** (optional): Keep this parameter true to have the audio in the generated video. This parameter is used only when audio_url is empty because the audio_url parameter has a higher priority than the audio parameter. - Type: toggle - **`resolution`** (required): The resolution of the generated video in pixel available values. 480p, 720p, 1080p - Type: select (options: 480p, 720p, 1080p) - **`duration`** (required): Select the duration for how long you want to generate the video, available values 5, 10 - Type: select (options: 5, 10) ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v7/video-fusion/text-to-video \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "wan2.5-t2v", "prompt": " Shot from a low angle, in a medium close-up, with warm tones, mixed lighting (the practical light from the desk lamp blends with the overcast light from the window), side lighting, and a central composition. In a classic detective office, wooden bookshelves are filled with old case files and ashtrays. A green desk lamp illuminates a case file spread out in the center of the desk. A fox, wearing a dark brown trench coat and a light gray fedora, sits in a leather chair, its fur crimson, its tail resting lightly on the edge, its fingers slowly turning yellowed pages. Outside, a steady drizzle falls beneath a blue sky, streaking the glass with meandering streaks. It slowly raises its head, its ears twitching slightly, its amber eyes gazing directly at the camera, its mouth clearly moving as it speaks in a smooth, cynical voice: 'The case was cold, colder than a fish in winter. But every chicken has its secrets, and I, for one, intended to find them '.", "init_audio": "https://assets.modelslab.com/generations/2f7dfdcb-2295-4c6f-966d-4e673baee8e3.mp3", "enhance_prompt": false, "generate_audio": false, "resolution": "720", "duration": "5" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v7/video-fusion/text-to-video", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "wan2.5-t2v", "prompt": " Shot from a low angle, in a medium close-up, with warm tones, mixed lighting (the practical light from the desk lamp blends with the overcast light from the window), side lighting, and a central composition. In a classic detective office, wooden bookshelves are filled with old case files and ashtrays. A green desk lamp illuminates a case file spread out in the center of the desk. A fox, wearing a dark brown trench coat and a light gray fedora, sits in a leather chair, its fur crimson, its tail resting lightly on the edge, its fingers slowly turning yellowed pages. Outside, a steady drizzle falls beneath a blue sky, streaking the glass with meandering streaks. It slowly raises its head, its ears twitching slightly, its amber eyes gazing directly at the camera, its mouth clearly moving as it speaks in a smooth, cynical voice: 'The case was cold, colder than a fish in winter. But every chicken has its secrets, and I, for one, intended to find them '.", "init_audio": "https://assets.modelslab.com/generations/2f7dfdcb-2295-4c6f-966d-4e673baee8e3.mp3", "enhance_prompt": False, "generate_audio": False, "resolution": "720", "duration": "5" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v7/video-fusion/text-to-video", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "wan2.5-t2v", "prompt": " Shot from a low angle, in a medium close-up, with warm tones, mixed lighting (the practical light from the desk lamp blends with the overcast light from the window), side lighting, and a central composition. In a classic detective office, wooden bookshelves are filled with old case files and ashtrays. A green desk lamp illuminates a case file spread out in the center of the desk. A fox, wearing a dark brown trench coat and a light gray fedora, sits in a leather chair, its fur crimson, its tail resting lightly on the edge, its fingers slowly turning yellowed pages. Outside, a steady drizzle falls beneath a blue sky, streaking the glass with meandering streaks. It slowly raises its head, its ears twitching slightly, its amber eyes gazing directly at the camera, its mouth clearly moving as it speaks in a smooth, cynical voice: 'The case was cold, colder than a fish in winter. But every chicken has its secrets, and I, for one, intended to find them '.", "init_audio": "https://assets.modelslab.com/generations/2f7dfdcb-2295-4c6f-966d-4e673baee8e3.mp3", "enhance_prompt": false, "generate_audio": false, "resolution": "720", "duration": "5" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/wan25-text-to-video-audioSupport/wan2.5-t2v) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)