Aliyun Bailian | 阿里云百炼 icon

Aliyun Bailian | 阿里云百炼

Access Alibaba Cloud Aliyun Bailian video generation, editing, and task APIs.

Image → Wan 2.6 Image Generation & Edit | 万相 2.6 图像生成与编辑

AI-generated

Summary

Generate or edit images using the Wan 2.6 Image (Generation & Edit) model, based on textual instructions and optional input images, with configurable resolution, image count, and advanced generation options.

Inputs

  • wanImage26Model (required) — Specifies the Wan 2.6 Image (Generation & Edit) model to use for image generation or editing.
  • wanImage26Instruction (required) — Text instruction that guides the image generation or editing detailing what to keep and what to change.
  • wanImage26Images — Optional URLs of input images to be used for editing or reference (0-1 images if interleaved output enabled; 1-4 otherwise).
  • wanImage26EnableInterleave — Flag to enable interleaved text and image content output; affects allowed input images and generation mode.
  • wanImage26MaxImages — Maximum number of images to generate when interleaved output is enabled (up to 4).
  • wanImage26Count — Number of images to generate when interleaved output is disabled, between 1 and 4.
  • wanImage26NegativePrompt — Optional negative prompt to specify elements to avoid in the generated images.
  • wanImage26Size — Resolution of the generated images; select from predefined aspect ratios and sizes.
  • wanImage26AdvancedOptions — Collection of advanced options including prompt extension, watermark overlay, random seed settings for generation reproducibility.

Output shape

a JSON object representing the generation/editing result, which may include one or more images and optionally mixed text+image content blocks if interleaved output is enabled.

Supports polling until the generation task completes, with configurable interval and maximum wait times. The number of generated images respects the maxImages/count parameters based on interleaved mode. Optional input images constrain the editing or referencing capabilities depending on the interleaved output setting.

Links

Discussion