Skip to main content
Wan2.7 Image is Alibaba’s image generation and editing model family. Through AnyFast, both variants use the same synchronous endpoint and DashScope-compatible message structure.

Capabilities

  • Text-to-image — Generate one or more images from a text prompt
  • Image editing — Edit up to 9 input images with text instructions
  • Interactive editing — Limit edits to regions defined by bbox_list
  • Sequential generation — Create a related image sequence from text or image references
  • Multi-image reference — Place multiple { "image": "..." } items in one content array
parameters.prompt_extend defaults to true. For special-content requests, select the Special-Ns resource group and set this parameter to false.
The endpoint accepts the existing flat OpenAI-compatible format and the newly adapted nested DashScope-compatible format shown in the AnyFast examples. Use the flat format for simple generation or single-image editing, and the nested format for multiple images, region editing, or sequential generation.

Request format

Send requests to POST /v1/images/generations. The following examples show both supported request formats.

Input rules

Flat OpenAI-compatible format

Nested DashScope-compatible format

Parameters

When images are supplied, the output uses the aspect ratio of the last input image and scales it to the selected resolution. Generated dimensions can differ slightly from custom dimensions.

Response

AnyFast returns the generated image in data and preserves the upstream Wan response under metadata.
Generated URLs are retained for 24 hours by the upstream service. Download outputs promptly rather than storing these URLs permanently.

API Reference

Open the Wan2.7 Image / Pro API reference.