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 AnyFast model ID. Use wan3.0-video, or use the AnyFast-specific wan3.0-video-nsfw variant in the Direct resource group. Alibaba’s official page lists only the standard model.
Basic generation input. At least one of input.prompt or input.media must be present.
Video description in Chinese or English. Content beyond 20,000 characters is automatically truncated.
Video generation controls.
Output resolution: 1080P, 720P, or 480P.
Output aspect ratio: adaptive, 16:9, 4:3, 1:1, 3:4, or 9:16.
Output duration in seconds. With no video input, use -1 for smart duration or an integer from 2 through 30.
Whether the generated video contains an audio track. The price is the same for true and false.
Random seed from 0 through 2147483647.
Whether to add a watermark to the generated video.
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 task status, normally queued.
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 Use wan3.0-video, or the AnyFast-specific wan3.0-video-nsfw variant in the Direct resource group.
Basic generation input. At least one of input.prompt or input.media must be present.
Motion, scene, camera, and audio description. Content beyond 20,000 characters is automatically truncated.
Supply exactly one first_frame image. Do not combine frame media with reference_image, reference_video, reference_audio, file, or link.
Public image URL or Base64 data URI.
Video generation controls.
Output resolution: 1080P, 720P, or 480P.
Output aspect ratio: adaptive, 16:9, 4:3, 1:1, 3:4, or 9:16. adaptive can follow the source image and intent.
Output duration in seconds. Use -1 for smart duration or an integer from 2 through 30.
Whether the generated video contains an audio track. The price is the same for true and false.
Random seed from 0 through 2147483647.
Whether to add a watermark to the generated video.
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 task status, normally queued.
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 Use wan3.0-video, or the AnyFast-specific wan3.0-video-nsfw variant in the Direct resource group.
Basic generation input. At least one of input.prompt or input.media must be present.
Motion and transition description. Content beyond 20,000 characters is automatically truncated.
Supply one first_frame and one last_frame. Do not combine them with reference_image, reference_video, reference_audio, file, or link.
Use first_frame for the opening image and last_frame for the ending image. Each type allows at most one item.
Public image URL or Base64 data URI.
Video generation controls.
Output resolution: 1080P, 720P, or 480P.
Output aspect ratio: adaptive, 16:9, 4:3, 1:1, 3:4, or 9:16. adaptive can follow the frame inputs and intent.
Output duration in seconds. Use -1 for smart duration or an integer from 2 through 30.
Whether the generated video contains an audio track. The price is the same for true and false.
Random seed from 0 through 2147483647.
Whether to add a watermark to the generated video.
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 task status, normally queued.
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 Use wan3.0-video, or the AnyFast-specific wan3.0-video-nsfw variant in the Direct resource group.
Basic generation input. At least one of input.prompt or input.media must be present.
Video instruction. Content beyond 20,000 characters is automatically truncated. Refer to assets by their type-specific order, such as Image 1, Video 1, and Audio 1.
Reference assets. Supply up to 10 images, 5 videos, and 5 audio clips. Do not combine reference media with first_frame or last_frame.
Use reference_image, reference_video, or reference_audio.
Public media URL. Images also accept Base64 data URIs.
Video generation controls.
Output resolution: 1080P, 720P, or 480P.
Output aspect ratio: adaptive, 16:9, 4:3, 1:1, 3:4, or 9:16.
Output duration in seconds. Use -1 for smart duration. Without a video input, use 2–30; with video input, total input-video duration plus output duration must not exceed 30 seconds.
Whether the generated video contains an audio track. The price is the same for true and false.
Random seed from 0 through 2147483647.
Whether to add a watermark to the generated video.
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 task status, normally queued.
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 Use wan3.0-video, or the AnyFast-specific wan3.0-video-nsfw variant in the Direct resource group.
Basic generation input. At least one of input.prompt or input.media must be present.
Video instruction. Content beyond 20,000 characters is automatically truncated.
Supply at most one file or one webpage link. file and link are mutually exclusive, and neither can be combined with first_frame or last_frame.
Use file for a document or link for a public webpage.
Public HTTP or HTTPS URL. Webpages must be accessible without login.
Video generation controls.
Output resolution: 1080P, 720P, or 480P.
Output aspect ratio: adaptive, 16:9, 4:3, 1:1, 3:4, or 9:16.
Output duration in seconds. Use -1 for smart duration or an integer from 2 through 30.
Whether the generated video contains an audio track. The price is the same for true and false.
Random seed from 0 through 2147483647.
Whether to add a watermark to the generated video.
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 task status, normally queued.
Initial task progress percentage.
Creation time as a Unix timestamp in seconds.
Query task by ID GET /v1/video/generations/{id}Bearer authentication in the form Bearer YOUR_API_KEY.
Path parameters Task ID returned by a create request.
Alibaba Cloud reports a typical generation time of 1–5 minutes and recommends polling at roughly 15-second intervals. This upstream estimate is not an AnyFast service-level commitment; actual processing time can vary. Tasks can be queried for 24 hours after creation, and successful result URLs remain valid for 24 hours.
Query response Response code. success means the query was accepted.
Response message. A successful query normally returns an empty string.
Task status and result payload.
Task action. Wan3.0 creation tasks return generate.
Task status: NOT_START, QUEUED, IN_PROGRESS, SUCCESS, or FAILURE. Use this field to determine whether the task failed.
Compatibility field. Some successful responses repeat result_url here, as shown above; a non-empty value does not mean the task failed. Use status to determine the outcome and read the result from result_url. On FAILURE, this field can contain failure details.
Temporary generated-video URL returned when status is SUCCESS. This field can be omitted before the task completes.
Task submission time as a Unix timestamp in seconds.
Task start time as a Unix timestamp in seconds; 0 while the task is still queued.
Task completion time as a Unix timestamp in seconds; 0 until the task reaches a terminal state.
Task progress as a percentage string, such as 100%.
AnyFast request trace ID.
Raw upstream response data.
Raw upstream task output.
data.data.output.end_time Upstream task completion time. Present after successful completion.
data.data.output.orig_prompt Prompt received by the upstream service. Present after successful completion.
data.data.output.scheduled_time Upstream task scheduling time. Appears once processing begins and can be omitted while the task is queued.
data.data.output.submit_time Upstream task submission time.
data.data.output.task_status Upstream task status.
data.data.output.video_url Generated-video URL in the raw upstream output. Present after successful completion.
Upstream request trace ID.
Upstream video usage details. Present after successful completion and omitted while the task is queued or processing.
Upstream output resolution value.
Generated duration in seconds.
Generated video frame rate.
data.data.usage.input_video_duration Total input-video duration in seconds.
data.data.usage.output_video_duration Output-video duration in seconds.
Generated video aspect ratio.
data.data.usage.video_count Number of generated videos.