More modelsAlibabaWan 2.5 text to image
Generate image with alibaba/wan-2.5/text-to-image
Generates an image using the alibaba/wan-2.5/text-to-image model.
AuthorizationBearer <token>
API key is required to authorize requests. Obtain a key from your AtlasCloud dashboard.
In: header
modelstring
model name
enable_prompt_expansion?boolean
If set to true, the prompt optimizer will be enabled.
Default
falsenegative_prompt?string
Negative prompt for the generation.
promptstring
The prompt for generating the image.
seed?integer
The random seed to use for the generation. -1 means a random seed will be used.
Default
-1size?string
The size of the generated image in pixels (width*height).
Range
768 <= value <= 1440Response Body
curl -X POST "https://api.atlascloud.ai/api/v1/model/generateImage" \ -H "Content-Type: application/json" \ -d '{ "model": "alibaba/wan-2.5/text-to-image", "prompt": "string" }'{
"created_at": "2019-08-24T14:15:22Z",
"has_nsfw_contents": [
true
],
"id": "string",
"model": "string",
"outputs": [
{}
],
"status": "string",
"urls": {}
}