Create task POST /v1/video/generationsBearer authentication in the form Bearer YOUR_API_KEY.
Content-Type string
default: "application/json"
required
Request body format.
Request body Text description of the subject, action, setting, visual style, and camera movement.
Video duration from 3 through 5 seconds.
Optional random seed in [0, 2147483647] for more repeatable generation.
Optional extension fields passed to the upstream service.
Create response Task ID used to query the result.
Task ID, identical to id.
Returned object type, video.
AnyFast model ID used by the task.
Initial status string. Use the query endpoint for the authoritative task state.
Initial task progress percentage.
Creation time as a Unix timestamp in seconds.
Create task POST /v1/video/generationsBearer authentication in the form Bearer YOUR_API_KEY.
Content-Type string
default: "application/json"
required
Request body format.
Request body Text description of the motion and camera behavior.
Public first-frame image URL. Supported upstream formats include JPEG, JPG, PNG without alpha, BMP, and WebP; the Wan2.2 family limit is 10 MB with width and height from 240 through 8,000 pixels.
Video duration from 3 through 5 seconds.
Optional random seed in [0, 2147483647] for more repeatable generation.
Optional extension fields passed to the upstream service.
Create response Task ID used to query the result.
Task ID, identical to id.
Returned object type, video.
AnyFast model ID used by the task.
Initial status string. Use the query endpoint for the authoritative task state.
Initial task progress percentage.
Creation time as a Unix timestamp in seconds.
Query task by ID GET /v1/video/generations/{task_id}Bearer authentication in the form Bearer YOUR_API_KEY.
Path parameters Task ID returned by a Wan2.2 create request.
Task result Query-call result. success means the query completed; use data.status for the generation outcome.
Response message, normally empty for a successful query.
AnyFast task state and result payload.
Generation workflow, such as textGenerate for text-to-video or generate for image-to-video.
NOT_START, QUEUED, or IN_PROGRESS means keep polling. On SUCCESS, read result_url; on FAILURE, read fail_reason.
Compatibility field. It can repeat result_url on success, so use status to determine the outcome.
Temporary generated-video URL for a successful task.
Task submission Unix timestamp in seconds.
Task start Unix timestamp in seconds; 0 before processing starts.
Task completion Unix timestamp in seconds; 0 before a terminal state.
Progress from 0% through 100%.
AnyFast request trace ID.
Raw upstream response data.
Raw upstream task output.
data.data.output.task_status Upstream status such as PENDING, RUNNING, SUCCEEDED, FAILED, CANCELED, or UNKNOWN.
data.data.output.video_url Generated-video URL in the upstream output.
data.data.output.orig_prompt Prompt received by the upstream service.
data.data.output.submit_time Upstream task submission time.
data.data.output.scheduled_time Upstream task scheduling time.
data.data.output.end_time Upstream task completion time.
Upstream request trace ID.
Upstream usage details, normally present after success.
Billable duration in seconds.
data.data.usage.input_video_duration Input-video duration reported for usage.
data.data.usage.output_video_duration Generated output-video duration in seconds.
Generated video aspect ratio when returned.
data.data.usage.video_count Number of generated videos.