Wan 25 Preview
Wan 2.5 text-to-image model.
Header parameters
AuthorizationstringRequiredExample:
sk-kEEV5TfTCTpE4uFwUg9p8UhVyVWpC9IEgOVezQ4b1ZCWQFCVBody
modelstringRequiredExample:
model is the model name
wan-25-preview-text-to-imagepromptstringRequiredExample:
prompt is the prompt.
A cute baby sea otter.enable_prompt_expansionbooleanOptionalDefault:
Whether to enable prompt rewriting using LLM. Improves results for short prompts but increases processing time. Default value: true
trueseedintegerOptional
Random seed for reproducibility. If None, a random seed is chosen.
negative_promptstringOptional
Negative prompt to describe content to avoid. Max 500 characters.
nintegerOptionalDefault:
n is the number of images to generate, default value is 1.
1Example: 1output_formatstring · enumOptionalDefault:
output_format indicate the output format, default value is url.
urlExample: urlPossible values: Responses
200Success
application/json
post
/v1/images/generations200Success