Wan 2.5 Preview Image-to-Image is a multi-image understanding and editing model from Alibaba Tongyi Wanxiang series. It processes up to 3 reference images with text prompts for intelligent image editing and composition, enabling object placement, style transfer, and element replacement across 9 standard aspect ratios.
Request
Authorization
Header Params
Body Params application/jsonRequired
Example
{"prompt":"Change the background of this photo to daytime, sunny and bright","imageUrls":["https://www.runninghub.cn/view?filename=f445c101a5e2964e2f88ee780d0dc933889a387df00ff19fff17028c99cc38ef.jpg&type=input&subfolder=&Rh-Comfy-Auth=eyJ1c2VySWQiOiIzZjY1MTNlNWEwNjY1N2I4OGYyNjU5NTEzYmU3ZDM0YyIsInNpZ25FeHBpcmUiOjE3NzY0MTM5OTM3NzIsInRzIjoxNzc1ODA5MTkzNzcyLCJzaWduIjoiOGRiNGI0YjQ3MDk5N2U0YzY5NmQ5ZWE2ZTFiYzg0YWMifQ==&Rh-Identify=3f6513e5a06657b88f2659513be7d34c&rand=0.931587717336386"],"size":"1280*1280","n":1,"promptExtend":true}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location'https://www.runninghub.ai/openapi/v2/alibaba/wan-2.5-preview/image-to-image' \
--header'Authorization: Bearer [Your API KEY]' \
--header'Content-Type: application/json' \
--data'{
"prompt": "Change the background of this photo to daytime, sunny and bright",
"imageUrls": [
"https://www.runninghub.cn/view?filename=f445c101a5e2964e2f88ee780d0dc933889a387df00ff19fff17028c99cc38ef.jpg&type=input&subfolder=&Rh-Comfy-Auth=eyJ1c2VySWQiOiIzZjY1MTNlNWEwNjY1N2I4OGYyNjU5NTEzYmU3ZDM0YyIsInNpZ25FeHBpcmUiOjE3NzY0MTM5OTM3NzIsInRzIjoxNzc1ODA5MTkzNzcyLCJzaWduIjoiOGRiNGI0YjQ3MDk5N2U0YzY5NmQ5ZWE2ZTFiYzg0YWMifQ==&Rh-Identify=3f6513e5a06657b88f2659513be7d34c&rand=0.931587717336386"
],
"size": "1280*1280",
"n": 1,
"promptExtend": true
}'