Generate video with alibaba/wan-2.5/text-to-video

Generates a video using the alibaba/wan-2.5/text-to-video model.

POST
/api/v1/model/generateVideo
AuthorizationBearer <token>

API key is required to authorize requests. Obtain a key from your Atlas Cloud dashboard.

In: header

modelstring

model name

audio?string

Audio URL to guide generation (optional).

duration?integer

The duration of the generated media in seconds.

Default5
Value in5 | 10
enable_prompt_expansion?boolean

If set to true, the prompt optimizer will be enabled.

Defaultfalse
negative_prompt?string

Negative prompt for the generation.

promptstring

The prompt for generating the output.

seed?integer

The random seed to use for the generation. -1 means a random seed will be used.

Default-1
sizestring

The size of the generated media in pixels (width*height).

Value in"832*480" | "480*832" | "624*624" | "1280*720" | "720*1280" | "960*960" | "1088*832" | "832*1088" | "1920*1080" | "1080*1920" | "1440*1440" | "1632*1248" | "1248*1632"
generate_audio?boolean

Whether to automatically add audio to the generated video.

Defaulttrue

Response Body

curl -X POST "https://api.atlascloud.ai/api/v1/model/generateVideo" \  -H "Content-Type: application/json" \  -d '{    "model": "alibaba/wan-2.5/text-to-video",    "prompt": "string",    "size": "1920*1080"  }'
{
  "created_at": "2019-08-24T14:15:22Z",
  "has_nsfw_contents": [
    true
  ],
  "id": "string",
  "model": "string",
  "outputs": [
    {}
  ],
  "status": "string",
  "urls": {}
}