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:
strengthaspect_ratioqualitystyle_presetresponse_formatoutput_formatmaskbackground
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.
- When
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.
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_imagesto set an upper limit.
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
enable_interleave is true):
