text_to_video
Generate videos from text prompts by creating a Wan task on RunAPI, returning task ID, status, and output URLs.
Instructions
Create a Wan task on RunAPI (text to video). Returns a task id, status, and output URLs.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "text_to_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Declared type: integer. | |
| wait | No | Poll until the task reaches a terminal status. | |
| model | No | RunAPI model slug for this model line. | |
| ratio | No | Declared type: string. | |
| prompt | No | Declared type: string. | |
| watermark | No | Declared type: boolean. | |
| timeout_ms | No | ||
| multi_shots | No | Declared type: boolean. | |
| acceleration | No | Declared type: string. | |
| aspect_ratio | No | Declared type: string. | |
| callback_url | No | Declared type: string. | |
| negative_prompt | No | Declared type: string. | |
| duration_seconds | No | Declared type: integer. | |
| poll_interval_ms | No | ||
| output_resolution | No | Declared type: string. Known values: "480p", "580p", "720p", "1080p". | |
| reference_audio_url | No | Declared type: string. | |
| background_audio_url | No | Declared type: string. | |
| reference_image_urls | No | Declared type: array. | |
| reference_video_urls | No | Declared type: array. | |
| enable_safety_checker | No | Declared type: boolean. | |
| first_frame_image_url | No | Declared type: string. | |
| enable_prompt_expansion | No | Declared type: boolean. |