Skip to main content
POST
/
v1
/
video
/
generations
创建文生视频任务
curl --request POST \
  --url https://www.anyfast.com.cn/v1/video/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "happyhorse-1.0-t2v",
  "prompt": "一只猫在草地上奔跑",
  "resolution": "720P",
  "ratio": "16:9",
  "duration": 5,
  "watermark": false,
  "seed": 42,
  "parameters": {}
}
'
{
  "id": "asyntask_jwgfhsG0m2aDjLmiiELRf74eoWmss6ya",
  "task_id": "asyntask_jwgfhsG0m2aDjLmiiELRf74eoWmss6ya",
  "object": "video",
  "model": "happyhorse-1.0-t2v",
  "status": "queued",
  "progress": 0,
  "created_at": 1777343862
}

Documentation Index

Fetch the complete documentation index at: https://docs.anyfast.com.cn/llms.txt

Use this file to discover all available pages before exploring further.

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:
happyhorse-1.0-t2v
Example:

"happyhorse-1.0-t2v"

prompt
string
required

视频描述文本。

Example:

"一只猫在草地上奔跑"

resolution
enum<string>
default:1080P

视频分辨率。

Available options:
720P,
1080P
Example:

"720P"

ratio
enum<string>
default:16:9

宽高比。

Available options:
16:9,
9:16,
1:1,
4:3,
3:4
Example:

"16:9"

duration
integer
default:5

视频时长(秒)。

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

5

watermark
boolean
default:true

是否保留右下角 "Happy Horse" 水印。设为 false 可关闭。

Example:

false

seed
integer

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

Required range: 0 <= x <= 2147483647
Example:

42

parameters
object

可选:上述参数也可放在 parameters 对象中(DashScope 原生风格),效果一致。

Response

任务创建成功

id
string
Example:

"asyntask_jwgfhsG0m2aDjLmiiELRf74eoWmss6ya"

task_id
string
Example:

"asyntask_jwgfhsG0m2aDjLmiiELRf74eoWmss6ya"

object
string
Example:

"video"

model
string
Example:

"happyhorse-1.0-t2v"

status
string
Example:

"queued"

progress
integer
Example:

0

created_at
integer
Example:

1777343862