High-quality image generation with unified text-to-image and image editing support, including custom image sizes
wan-2.7-image-pro is a high-quality image model for generation and editing.
It uses a unified request shape:
input.image_urls is omitted, the request is handled as text-to-imageinput.image_urls is provided, the request is handled as edit mode automaticallyinput.size supports these preset values:
512x5121024x1024768x10241024x768576x10241024x5761024x1024
width and height as an object:
prompt - Required promptsize - Output image size preset, or a custom { width, height } objectn - Number of images, 1-4seed - Optional random seedimage_urls - Reference images for editing, 1-4 images required. Order matters: reference them as image 1, image 2, image 3, image 4 in the promptPOST /api/generate/submit
Text-to-image example:
All API endpoints require Bearer Token authentication
Get your API Key:
Visit the API Key Management Page to get your API Key
Add it to the request header:
Authorization: Bearer YOUR_API_KEYWan-2.7-Image-Pro model identifier
wan-2.7-image-pro Input parameters for generation. When image_urls is present, the request is routed to edit mode automatically.
Webhook callback URL for result notifications
"https://your-domain.com/callback"