Skip to main content
POST
/
v1
/
video
/
generations
创建文生视频任务
curl --request POST \
  --url https://ai.alad.com/v1/video/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "wan2.2-t2v-a14b",
  "prompt": "一只猫在弹钢琴",
  "duration": 5,
  "width": 123,
  "height": 123,
  "seed": 123,
  "metadata": {}
}
'
{
  "task_id": "<string>",
  "status": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
enum<string>
required

模型 ID

Available options:
wan2.2-t2v-a14b
Example:

"wan2.2-t2v-a14b"

prompt
string
required

视频描述文字。

Example:

"一只猫在弹钢琴"

duration
number
default:5

视频时长(秒),3–5。

Required range: 3 <= x <= 5
Example:

5

width
integer

输出视频宽度(像素)。

height
integer

输出视频高度(像素)。

seed
integer

随机种子,用于复现结果。

metadata
object

透传至上游 API 的扩展参数。

Response

任务创建成功

task_id
string

任务 ID,用于轮询状态。

status
string

初始状态(queued)。