Skip to main content
POST
Submit a prompt and optional media to the AntiRouter Wan3.0 endpoint to create an asynchronous video task. Save the returned task ID and use Query Task to retrieve its status and finished video.
Use an inference key. Generation reserves account credits. Fixed output durations are 3–14 seconds; use -1 for automatic duration. Example IDs and resource URLs illustrate the response format only.

Request body

string
required
Model ID, such as w3.0-video. See Models for other Wan3.0 variants and check the live list for availability.
object
required
Content to generate, including a prompt and optional source media.
object
required
Generation options. Explicitly set duration, resolution, aspect ratio, and the audio and prompt-expansion options you need.

Media types

Choose either a first/last-frame workflow or a reference-media workflow. The service fetches your media; keep URLs accessible while the task runs. Image, video, and audio URLs must support HTTP byte-range requests and have a known file size. Local file paths, Base64, data URIs, private-network URLs, and live streams are not accepted for these media inputs. The 15-second reference-video limit uses original duration, before billing rounding. Keep document inputs supplied as file within 100 MB. file and link are content inputs, not file-upload endpoints.

Image-to-video example

Replace input in the full request with the following object and use your own public image URL:

Successful response

Accepted requests return HTTP 200 and an X-Request-ID header. The creation endpoint returns identifiers and status only, without a video URL or final usage.
string
required
Platform request ID for tracking the generation.
object
required

Billing and retries

Generation reserves credits before submission. See Models for usage calculation. duration: -1 reserves 30 output seconds plus billable reference-video seconds, then settles on actual usage. The hold is not a promise of the final output duration. Submit once and save the task ID. A connection timeout does not prove creation failed. Check console task history and query an existing task before resubmitting, since repeated submissions can create separately billed tasks.

Common errors