Generate AI images using Alibaba WAN 2.5 text-to-image model.
Request
Header Params
Body Params application/json
Example
{"enable_prompt_expansion":false,"prompt":"A Sumi-e Inspired Watercolor portrayal of warrior, blending traditional East Asian ink wash techniques with modern watercolor splashes. Use primarily red with accents of yellow for a minimalist yet expressive composition","seed":-1,"size":"1024*1440"}
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--request POST 'https://api.302.ai/ws/api/v3/alibaba/wan-2.5/text-to-image' \
--header'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header'Content-Type: application/json' \
--data-raw'{
"enable_prompt_expansion": false,
"prompt": "A Sumi-e Inspired Watercolor portrayal of warrior, blending traditional East Asian ink wash techniques with modern watercolor splashes. Use primarily red with accents of yellow for a minimalist yet expressive composition",
"seed": -1,
"size": "1024*1440"
}'