Skip to main content
POST
/
v3
/
async
/
wan-t2v
Wan 2.1 Text to Video
curl --request POST \
  --url https://api.myrouter.ai/v3/async/wan-t2v \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "seed": 123,
  "extra": {
    "webhook": "<string>",
    "response_video_type": "<string>"
  },
  "loras": [
    {
      "path": "<string>",
      "scale": 123
    }
  ],
  "steps": 123,
  "width": 123,
  "height": 123,
  "prompt": "<string>",
  "fast_mode": true,
  "watermark": true,
  "flow_shift": 123,
  "guidance_scale": 123,
  "negative_prompt": "<string>",
  "enable_safety_checker": true
}
'
{
  "task_id": "<string>",
  "provider_request_id": "<string>"
}
undefined
This is an async API that only returns the task_id of the async task. Use the task_id to call the Get Async Task Result API to retrieve the generated result.

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

seed
integer
Range: [-1, 9999999999]
extra
object
loras
array
Array length: 0 - 3
steps
integer
Range: [1, 40]
width
integer
default:832
Possible values: 480, 720, 832, 1280
height
integer
default:480
Possible values: 480, 720, 832, 1280
prompt
string
required
Length limit: 1 - 2000
fast_mode
boolean
watermark
boolean
flow_shift
number
Range: [1, 10]
guidance_scale
number
Range: [0, 10]
negative_prompt
string
Length limit: 0 - 2000
enable_safety_checker
boolean

Response

task_id
string
Use the task_id to call the Get Async Task Result API to retrieve the generated output.
provider_request_id
string