Skip to main content
Wan2.7 is one video-generation model family exposed through three AnyFast model IDs: wan2.7-t2v, wan2.7-i2v, and wan2.7-r2v.
For specific-content requests, select the matching -nsfw model from the Direct resource group: wan2.7-t2v-nsfw, wan2.7-i2v-nsfw, or wan2.7-r2v-nsfw, and set parameters.prompt_extend to false.
Select a capability below. Each tab preserves its complete upstream examples, request patterns, media limits, and output controls.
Wan2.7 T2V generates video and synchronized audio from text. Use the corresponding AnyFast model ID wan2.7-t2v with POST https://www.anyfast.ai/v1/video/generations.
For specific content requests, select wan2.7-t2v-nsfw under the Direct resource group and set parameters.prompt_extend to false. The -nsfw model ID and this setting are AnyFast platform requirements.

Key capabilities

Wan2.7 does not use shot_type. Write every shot, transition, and camera instruction directly in input.prompt.

Capability examples

The media below comes from Alibaba Cloud’s upstream examples. It demonstrates the model capability and was not reproduced through AnyFast.
Omit input.audio_url to let the model create synchronized audio. For a multi-shot result, describe the sequence and transitions in the prompt.

Upstream Wan2.7 automatic-audio output example

Create a task

cURL
The create endpoint is asynchronous. Save the returned task ID and poll the Wan2 task query endpoint.

Control the output

parameters.resolution and parameters.ratio jointly determine the exact output size:All generated videos are 30 fps MP4 files encoded with H.264.

Input and text limits

The limits below follow the Alibaba Cloud Wan2.7 text-to-video API reference.When custom audio is longer than parameters.duration, only the matching leading segment is used. When it is shorter, the rest of the generated video is silent. Omit audio_url when you want Wan2.7 to generate the complete soundtrack.

Prompting tips

  • Describe the subject, action, setting, visual style, camera movement, timing, dialogue, music, and sound effects that matter.
  • For multiple shots, label the sequence in the prompt, such as Shot 1, Shot 2, and Shot 3, and describe the transition between them.
  • Do not send shot_type with Wan2.7 T2V.
  • Keep the most important constraints near the beginning because prompt and negative-prompt content beyond their limits is automatically truncated.

Query and retain the result

Poll GET https://www.anyfast.ai/v1/video/generations/{TASK_ID} until the AnyFast outer data.status reaches SUCCESS or FAILURE. Pending states are NOT_START, QUEUED, and IN_PROGRESS; data.progress is a percentage string such as "0%" or "100%".The nested data.data.output.task_status is the upstream provider status. Do not use it in place of the AnyFast outer status when controlling your polling loop. See Wan2 Task Query for the full response shape.
  • The task can be queried for 24 hours after creation.
  • A successful result URL remains valid for 24 hours. Download or transfer the video promptly.

Wan2.7 T2V API Reference

View the complete request and response schema.