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-i2v-a14b",
  "image": "https://example.com/reference.jpg",
  "prompt": "相机缓慢推进",
  "duration": 5,
  "width": 123,
  "height": 123,
  "seed": 123
}
'
{
  "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-i2v-a14b
Example:

"wan2.2-i2v-a14b"

image
string
required

参考图片的公网 URL。

Example:

"https://example.com/reference.jpg"

prompt
string

视频描述文字(可选,用于引导生成方向)。

Example:

"相机缓慢推进"

duration
number
default:5

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

Required range: 3 <= x <= 5
width
integer

输出视频宽度(像素)。

height
integer

输出视频高度(像素)。

seed
integer

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

Response

任务创建成功

task_id
string

任务 ID,用于轮询状态。

status
string