wan2.7-image/text-to-imageGeneration type:
text_to_imageEndpoint:
POST /api/asset_generator/
Pricing
0.5 credits per output. Prices are per output. When a request asks for several outputs, the charge is this price times the number of outputs.Quick start
Input parameters
Send these fields ininput_params.
string
required
Describe the image you want to generate. Supports Chinese and English.Minimum characters:
1.
Maximum characters: 5000.string
default:"1:1"
Aspect ratio of the generated image.Allowed values:
"1:1", "16:9", "9:16", "4:3", "3:4".string
default:"2K"
Resolution tier of the generated image.Allowed values:
"1K", "2K".integer
default:1
Number of images to generate.Minimum:
1.
Maximum: 4.boolean
default:true
Use LLM reasoning to improve image quality.
integer
Random seed for reproducibility.Minimum:
0.
Maximum: 2147483647.Complete JSON schema
Complete JSON schema
Response
The request returns the task withstatus: "initializing". Poll GET /api/asset_generator/{id}/ until status is done or failed, or pass a webhook_url to be notified. A finished task lists its files in assets and the credits it charged in credits_used.
