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
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 toPOST /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 indata and preserves the upstream Wan response under metadata.
API Reference
Open the Wan2.7 Image / Pro API reference.