Wan2.7 Image
Generate or edit images using Wan2.7 Image. Supports multiple modes:
- Text-to-image: provide
promptonly - Image editing: provide
prompt+image - Group image generation: set
enable_sequential: true
Returns synchronously with the final image URL.
Documentation Index
Fetch the complete documentation index at: https://docs.anyfast.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Model ID. wan2.7-image-pro supports 4K output for text-to-image; wan2.7-image is faster.
wan2.7-image-pro, wan2.7-image "wan2.7-image-pro"
Text description of the image. Supports Chinese and English. Max 5000 characters.
"A flower shop with exquisite windows and a beautiful wooden door"
Input image for editing — URL (HTTP/HTTPS) or Base64 data URI (data:{MIME};base64,{data}).
Formats: JPEG, JPG, PNG (no transparency), BMP, WEBP. Max 20 MB per image. Resolution: 240–8000 px per side, aspect ratio 1:8–8:1. Up to 9 images.
"https://example.com/input.jpg"
Number of images to generate.
- Sequential mode off (
enable_sequential: false):1–4, default1. - Sequential mode on (
enable_sequential: true):1–12, default12.
1 <= x <= 121
Output resolution. Two formats (cannot mix):
- Preset:
1K(1024×1024),2K(2048×2048, default),4K(4096×4096, wan2.7-image-pro text-to-image only). - Custom pixels:
{W}x{H}— total pixels 768×768–4096×4096 (text-to-image) or up to 2048×2048 (other modes), aspect ratio 1:8–8:1.
"2K"
Enable group image output mode. When true, n represents the maximum number of images; actual count is decided by the model.
Enable thinking mode for enhanced reasoning and higher quality. Only effective for text-to-image (no image input, sequential mode off).
Add a watermark to the generated image.
Random seed for reproducible results. Same seed produces similar outputs, though exact reproduction is not guaranteed.
0 <= x <= 2147483647Return a URL or Base64-encoded image.
url, b64_json "url"