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 Atlas Cloud 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).
Value in
"576*1344" | "720*1280" | "720*1680" | "768*1024" | "800*1200" | "936*2184" | "960*1280" | "960*1440" | "1024*768" | "1024*1024" | "1080*1920" | "1168*1752" | "1200*800" | "1200*1600" | "1224*1632" | "1280*720" | "1280*960" | "1280*1280" | "1344*576" | "1440*960" | "1440*1440" | "1600*1200" | "1632*1224" | "1680*720" | "1752*1168" | "1920*1080" | "2184*936"Response 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": {}
}