infery
← All models

Wan v2.6 Text to Image

v2.6-text-to-image

Image generationby Alibaba

Wan 2.6 text-to-image model.

images

Details

Accepts
text + image

Pricing

Price
3.75 cr / image

Prices in credits (1 credit = $0.01).

Data schema

Input

FieldTypeDescription
seedRandom seed for reproducibility (0-2147483647). Same seed produces more consistent results.
promptrequiredstringText prompt describing the desired image. Supports Chinese and English. Max 2000 characters. Example: 'Generate an image using the style of image 1 and background of image 2'.
image_sizeOutput image size. Use presets like 'square_hd', 'landscape_16_9', 'portrait_9_16', or specify exact dimensions with ImageSize(width=1280, height=720). Total pixels must be between 768*768 and 1280*1280.
image_urlsarrayReference images for editing (1-3 images required). Order matters: reference as 'image 1', 'image 2', 'image 3' in prompt. Resolution: 384-5000px each dimension. Max size: 10MB each. Formats: JPEG, JPG, PNG (no alpha), BMP, WEBP.
num_imagesintegerNumber of images to generate (1-4). Directly affects billing cost.
negative_promptContent to avoid in the generated image. Max 500 characters.
enable_safety_checkerbooleanEnable content moderation for input and output. Disabling it requires account authorization; unauthorized requests are always checked.
enable_prompt_expansionbooleanEnable LLM prompt optimization. Significantly improves results for simple prompts but adds 3-4 seconds processing time.
image_urlOptional reference image (0 or 1). When provided, can be used for style guidance. Resolution: 384-5000px each dimension. Max size: 10MB. Formats: JPEG, JPG, PNG (no alpha), BMP, WEBP.
max_imagesintegerMaximum number of images to generate (1-5). Actual count may be less depending on model inference.

Output

FieldTypeDescription
seedintegerThe seed used for generation
imagesarrayGenerated images in PNG format