Alibaba Wan 2.7 text-to-video model. Supports up to 15 seconds, audio synchronization for voice/music, multilingual prompts, and prompt expansion, at 720p or 1080p.
Test this model instantly in the Console Playground โ no code required
Copy usage instructions for Claude, ChatGPT, or other AI
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "wan-video/wan-2.7-t2v",
"input": {
"prompt": "A chef in a busy kitchen explains a recipe while chopping vegetables, warm natural lighting.",
"audio": "https://example.com/narration-ko.mp3",
"resolution": "1080p",
"duration": 8
}
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | Yes | - | Text prompt for video generation |
negative_prompt | string | No | - | Negative prompt โ describes content that should not appear in the video |
audio | string | No | - | Audio file (wav/mp3, 3-30s, โค15MB) for voice/music synchronization. If not provided, the model auto-generates matching audio. |
resolution | string | No | 1080p | Output video resolution 720p1080p |
aspect_ratio | string | No | 16:9 | Aspect ratio of the generated video 16:99:161:14:33:4 |
duration | integer | No | 5 | Duration of the generated video in seconds |
enable_prompt_expansion | boolean | No | true | Automatically expand and optimize the prompt for better results. Improves quality for short prompts but increases latency. |
seed | integer | No | - | Random seed for reproducible generation. Range: 0-2147483647 |
There are 3 ways to provide files for the audio parameter:
Attach files directly to POST /v1/predictions/upload. No separate upload step needed.
curl -X POST "https://api.core.today/v1/predictions/upload" \
-H "X-API-Key: cdt_your_api_key" \
-F "model=wan-video/wan-2.7-t2v" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:audio=@your_file.png"Pass a publicly accessible URL directly. You can also use file_url from the Storage API.
{
"model": "wan-video/wan-2.7-t2v",
"input": {
"prompt": "your prompt here",
"audio": "https://example.com/image.jpg"
}
}Common parameters used when calling POST /v1/predictions.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | - | Model identifier |
input | object | Yes | - | Object containing the model-specific parameters from the table above |
output_folder | string | No | - | Folder path for output files (max 256 chars, '..' not allowed) |
webhook_url | string | No | - | Webhook URL to call on completion |
is_public | boolean | No | false | If true, output files are also available via permanent public URLs |
Generate a video with dialogue synchronized to an uploaded audio track.
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "wan-video/wan-2.7-t2v",
"input": {
"prompt": "A chef in a busy kitchen explains a recipe while chopping vegetables, warm natural lighting.",
"audio": "https://example.com/narration-ko.mp3",
"resolution": "1080p",
"duration": 8
}
}'Let the model expand a short prompt and auto-generate matching audio.
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "wan-video/wan-2.7-t2v",
"input": {
"prompt": "A drummer performing an energetic solo on stage.",
"enable_prompt_expansion": true,
"resolution": "720p",
"duration": 5
}
}'POST /v1/predictions