Skip to main content
POST
Wanx 2.7 Image Generation
Generate and edit images using Alibaba Cloud’s Wanxiang 2.7 image model. Key Features:
  • Text-to-Image & Image Editing - Supports both text-to-image generation and image editing (up to 9 reference images)
  • High Resolution - Supports 1K and 2K output resolution
  • Long Prompts - Supports prompts up to 5000 characters

Authorizations

Authorization
string
header
required

Please use your API Token for authentication

Body

application/json

Task parameters

images
string[]
required

Input image URL list (optional, 0-9 images, for image editing mode) Omit for text-to-image mode, provide for image editing mode

Maximum array length: 9
prompt
string
required

Prompt (required, max 5000 characters)

Required string length: 1 - 5000
seed
integer

Random seed (optional, range 0-2147483647)

Required range: 0 <= x <= 2147483647
size
enum<string>

Output resolution (optional, default 2K) wan2.7-image supports 1K, 2K

Available options:
1K,
2K

Response

OK

task_id
string
required

Task ID

Example:

"01234567-89ab-cdef-0123-456789abcdef"