Skip to main content
Wan 2.6 Image supports editing and interleaved text and image output for a variety of generation and integration needs. Wan 2.5 general image editing uses text instructions and one or more reference images to preserve subjects across edits or combine multiple images.

Model parameters

  • Model IDs: wan2.6-image/wan2.5-i2i-preview
  • Pricing: Check the Model Hub for current prices.
  • Endpoint: https://geekai.co/api/v1/images/generations
  • Parameters: See the Image API reference.
  • Authentication: Get an API key.
The following Image API parameters are not supported:
  • strength
  • aspect_ratio
  • quality
  • style_preset
  • response_format
  • output_format
  • mask
  • background
See also: Official Wan Image Generation and Editing 2.6 API documentation.
For wan2.6-image, use size to set the output resolution as width × height: Common recommended resolutions and their aspect ratios: The total pixel count must be within [768x768, 1280x1280] and the aspect ratio within [1:4, 4:1]. Input image limits:
  • wan2.6-image accepts image URLs or Base64-encoded strings:
    • When enable_interleave=true (interleaved text and image output), supply 0–1 images.
    • When enable_interleave=false (image editing), you must supply 1–4 images.
Use enable_interleave to control the generation mode:
  • false: Image editing mode (default). Supports multiple inputs and consistent subjects.
    • Use case: Edit, transfer styles, or generate images with consistent subjects based on 1–4 inputs.
    • Input: At least 1 reference image is required.
    • Output: 1–4 images.
  • true: Interleaved text and image mode. Accepts at most one image.
    • Use case: Generate illustrated content from a description, or generate an image from text alone.
    • Input: No image (text-to-image) or 1 reference image.
    • Output: Exactly 1 mixed content block containing text and images.
Use n to specify the number of outputs. Its range and meaning depend on enable_interleave:
  • enable_interleave=false (image editing mode):
    • Purpose: Directly controls the number of images generated.
    • Range: 1–4.
  • enable_interleave=true (interleaved text and image mode):
    • Limit: Defaults to 1 and must remain 1. Other values return an error.
    • The model decides how many images to generate in this mode. Use max_images to set an upper limit.
Use max_images to set an upper limit of 1–5 images. The model determines the actual count from the content, not at random, and may generate fewer images. For example, a limit of 5 might produce 3 images. You cannot specify an exact count. For wan2.5-i2i-preview, use size to set the output resolution as width × height: Recommended resolutions and aspect ratios: The total pixel count must be within [768x768, 1280x1280] and the aspect ratio within [1:4, 4:1]. Input image limit: wan2.5-i2i-preview accepts up to 3 images. Use n to set the number of generated images (1–4).

wan2.6-image

The response is a JSON object containing the URL of the generated image:
When interleaved text and image output is enabled (enable_interleave is true):
The response is a JSON object containing the URL of the generated image:

wan2.5-i2i-preview

The response is a JSON list containing the generated image URLs: