POST https://www.anyfast.ai/v1/video/generations:
wan2.2-t2v-a14bfor text-to-videowan2.2-i2v-a14bfor image-to-video
GET /v1/video/generations/{task_id} for the result.
The AnyFast request shape below is different from Alibaba Cloud Model Studio’s direct API. Use the AnyFast fields shown on this page when calling
www.anyfast.ai.Key capabilities
Both workflows support a 3–5 second duration, explicit output width and height, and an optional random seed through the current AnyFast contract.
Capability examples
- Text to video
- Image to video
Describe the subject, action, setting, visual style, and camera motion in
prompt. Use wan2.2-t2v-a14b; do not send an image.A useful prompt states the primary motion before secondary visual details:A paper lantern floats above a quiet riverside town at dusk. The camera follows from below as warm reflections ripple across the water.
Create a task
- Text to video
- Image to video
cURL
Request behavior
Image input requirements
Alibaba Cloud documents these Wan2.2 family limits for first-frame images:- JPEG, JPG, PNG without an alpha channel, BMP, or WebP
- Public HTTP/HTTPS URL or Base64 data URI
- Width and height between 240 and 8,000 pixels
- File size no larger than 10 MB
Query and retain the result
PollGET https://www.anyfast.ai/v1/video/generations/{TASK_ID} using the task ID returned by the create request.
- Continue polling while the AnyFast outer
data.statusisNOT_START,QUEUED, orIN_PROGRESS. - On
SUCCESS, readdata.result_url. - On
FAILURE, readdata.fail_reason. data.progressis a percentage string such as"0%"or"100%".- Download a successful result promptly because upstream video URLs are temporary.
data.data.output.task_status is the upstream provider status. Use the outer AnyFast status to control your polling loop.
Wan2.2 A14B API Reference
View both creation workflows and the shared task-query response.
