wan-mcp
v0.2.3RunAPI MCP server for Wan: create tasks, poll status, check pricing.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
login
Authenticate RunAPI by opening a browser PKCE login flow and saving the API key to ~/.config/runapi/config.json.
| Parameter | Type | Description |
|---|---|---|
force | boolean | Re-run browser login when the current credential comes from the local config file. |
animate
Create a Wan task on RunAPI (animate). Returns a task id, status, and output URLs.
| Parameter | Type | Description |
|---|---|---|
reference_video_url * | string | Declared type: string. |
source_image_url * | string | Declared type: string. |
callback_url | string | Declared type: string. |
enable_safety_checker | boolean | Declared type: boolean. |
model | string | RunAPI model slug for this model line. |
output_resolution | string | Declared type: string. Known values: "480p", "580p", "720p". |
poll_interval_ms | integer | |
timeout_ms | integer | |
wait | boolean | Poll until the task reaches a terminal status. |
edit_video
Create a Wan task on RunAPI (edit video). Returns a task id, status, and output URLs.
| Parameter | Type | Description |
|---|---|---|
aspect_ratio | string | Declared type: string. |
audio | boolean | Declared type: boolean. |
audio_setting | string | Declared type: string. |
callback_url | string | Declared type: string. |
duration_seconds | integer | Declared type: integer. |
enable_prompt_expansion | boolean | Declared type: boolean. |
enable_safety_checker | boolean | Declared type: boolean. |
model | string | RunAPI model slug for this model line. |
multi_shots | boolean | Controls whether the generated video uses multiple shots with transitions instead of one continuous shot. Declared type: boolean. |
negative_prompt | string | Declared type: string. |
output_resolution | string | Declared type: string. |
poll_interval_ms | integer | |
prompt | string | Declared type: string. |
reference_image_url | string | Declared type: string. |
seed | integer | Declared type: integer. |
source_video_url | string | Declared type: string. |
source_video_urls | array | Declared type: array. |
timeout_ms | integer | |
wait | boolean | Poll until the task reaches a terminal status. |
watermark | boolean | Declared type: boolean. |
image_to_video
Create a Wan task on RunAPI (image to video). Returns a task id, status, and output URLs.
| Parameter | Type | Description |
|---|---|---|
acceleration | string | Declared type: string. |
aspect_ratio | string | Declared type: string. |
audio | boolean | Declared type: boolean. |
background_audio_url | string | Declared type: string. |
callback_url | string | Declared type: string. |
driving_audio_url | string | Declared type: string. |
duration_seconds | integer | Declared type: integer. |
enable_prompt_expansion | boolean | Declared type: boolean. |
enable_safety_checker | boolean | Declared type: boolean. |
first_frame_image_url | string | Declared type: string. |
last_frame_image_url | string | Declared type: string. |
model | string | RunAPI model slug for this model line. |
multi_shots | boolean | Declared type: boolean. |
negative_prompt | string | Declared type: string. |
output_resolution | string | Declared type: string. Known values: "480p", "720p", "1080p". |
poll_interval_ms | integer | |
prompt | string | Declared type: string. |
ratio | string | Declared type: string. |
seed | integer | Declared type: integer. |
source_video_url | string | Declared type: string. |
timeout_ms | integer | |
wait | boolean | Poll until the task reaches a terminal status. |
watermark | boolean | Declared type: boolean. |
speech_to_video
Create a Wan task on RunAPI (speech to video). Returns a task id, status, and output URLs.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Declared type: string. |
source_audio_url * | string | Declared type: string. |
source_image_url * | string | Declared type: string. |
callback_url | string | Declared type: string. |
enable_safety_checker | boolean | Declared type: boolean. |
frames_per_second | integer | Declared type: integer. |
guidance_scale | number | Declared type: number. |
model | string | RunAPI model slug for this model line. |
negative_prompt | string | Declared type: string. |
num_frames | integer | Declared type: integer. |
num_inference_steps | integer | Declared type: integer. |
output_resolution | string | Declared type: string. Known values: "480p", "580p", "720p". |
poll_interval_ms | integer | |
seed | integer | Declared type: integer. |
shift | number | Declared type: number. |
timeout_ms | integer | |
wait | boolean | Poll until the task reaches a terminal status. |
text_to_image
Create a Wan task on RunAPI (text to image). Returns a task id, status, and output URLs.
| Parameter | Type | Description |
|---|---|---|
aspect_ratio | string | Declared type: string. Known values: "1:1", "16:9", "4:3", "21:9", "3:4", "9:16", "8:1", "1:8". |
bbox_list | array | Declared type: array. |
callback_url | string | Declared type: string. |
color_palette | array | Declared type: array. |
enable_safety_checker | boolean | Declared type: boolean. |
enable_sequential | boolean | Declared type: boolean. |
model | string | RunAPI model slug for this model line. |
output_count | integer | Declared type: integer. |
output_resolution | string | Declared type: string. Known values: "1k", "2k", "4k". |
poll_interval_ms | integer | |
prompt | string | Declared type: string. |
seed | integer | Declared type: integer. |
source_image_urls | array | Declared type: array. |
thinking_mode | boolean | Declared type: boolean. |
timeout_ms | integer | |
wait | boolean | Poll until the task reaches a terminal status. |
watermark | boolean | Declared type: boolean. |
text_to_video
Create a Wan task on RunAPI (text to video). Returns a task id, status, and output URLs.
| Parameter | Type | Description |
|---|---|---|
acceleration | string | Declared type: string. |
aspect_ratio | string | Declared type: string. |
background_audio_url | string | Declared type: string. |
callback_url | string | Declared type: string. |
duration_seconds | integer | Declared type: integer. |
enable_prompt_expansion | boolean | Declared type: boolean. |
enable_safety_checker | boolean | Declared type: boolean. |
first_frame_image_url | string | Declared type: string. |
model | string | RunAPI model slug for this model line. |
multi_shots | boolean | Declared type: boolean. |
negative_prompt | string | Declared type: string. |
output_resolution | string | Declared type: string. Known values: "480p", "580p", "720p", "1080p". |
poll_interval_ms | integer | |
prompt | string | Declared type: string. |
ratio | string | Declared type: string. |
reference_audio_url | string | Declared type: string. |
reference_image_urls | array | Declared type: array. |
reference_video_urls | array | Declared type: array. |
seed | integer | Declared type: integer. |
timeout_ms | integer | |
wait | boolean | Poll until the task reaches a terminal status. |
watermark | boolean | Declared type: boolean. |
get_task
Fetch the current status and latest result payload for a wan task.
| Parameter | Type | Description |
|---|---|---|
action * | string | Asynchronous endpoint the task was created on. |
task_id * | string | Task id returned when the task was created. |
check_pricing
Look up RunAPI pricing for the wan model line.
| Parameter | Type | Description |
|---|---|---|
action | string | Endpoint name. Defaults to the endpoint that offers the model. |
model | string | Model slug. Defaults to the line's primary model. |