Wan2.7 – image generation and editing. Supports text-to-image, text/image-to-sequential images, image editing, multi-image reference generation, and interactive editing. Delivers enhanced performance in text rendering, subject consistency, and complex instruction following. https://bailian.console.alibabacloud.com/cn-beijing?tab=model#/model-market/detail/wan2.7-image?serviceSite=asia-pacific-china
Generate image
All API requests must be authenticated using a Bearer token in the Authorization header. Please ensure your API key is active.Authorization: Bearer sk-xxxxxx
These parameters come from the selected model form_schema. Switching models updates this list and the request example.
Choose the generation mode. Text to Image: generate from prompt only (supports thinking mode, group images, up to 4K). Image to Image / Edit: upload 1-9 reference images for editing or multi-image reference generation (up to 2K).
prompt*stringText prompt, max 5000 chars. Describe the scene for T2I, or edit instructions for I2E.
size?stringOutput resolution tier (default 2K). 4K is text-to-image only; image editing and group generation cap at 2K.
n?numberNumber of images to generate: 1-4 in normal mode, 1-12 in group (sequential) mode. Directly affects cost.
thinking_mode?booleanText-to-image only. When on, the model reasons before generating to improve complex scenes. Enabled by default.
color_palette?stringOptional, normal (non-sequential) mode only. JSON array of 3-10 color objects whose ratios must total 100.00%. e.g., [{"hex": "#FF8C42", "ratio": "40.00%"}]
enable_sequential?booleanEnable to generate a coherent group-image sequence (best used with n>1).
watermark?booleanWhen on, adds an 'AI生成' watermark to the bottom-right of the image. Disabled by default.
seed?numberRandom seed, range [0, 2147483647]. Stabilizes output but is not fully deterministic.
created?integerParameter description for Created
data?arrayParameter description for Data