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": "doubao-seedance-1-5-pro-251215",
  "content": [
    {
      "type": "text",
      "text": "<string>"
    }
  ],
  "ratio": "adaptive",
  "resolution": "720p",
  "duration": 5,
  "watermark": false,
  "seed": 123,
  "camera_fixed": false
}
'
{
  "id": "gen-abc123",
  "model": "doubao-seedance-1-5-pro-251215",
  "status": "processing",
  "created_at": 1773130665
}

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:
doubao-seedance-1-5-pro-251215
Example:

"doubao-seedance-1-5-pro-251215"

content
object[]
required

多模态内容数组,包含文本提示词和参考图片。

Minimum array length: 2

文本提示词

ratio
enum<string>
default:16:9

画面比例。图生视频支持 adaptive。

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

"adaptive"

resolution
enum<string>
default:720p

输出分辨率。

Available options:
480p,
720p,
1080p
Example:

"720p"

duration
integer
default:5

视频时长(秒),4-12 秒。

Required range: 4 <= x <= 12
Example:

5

watermark
boolean
default:false

是否添加水印。

seed
integer

随机种子。

camera_fixed
boolean
default:false

是否固定摄像头。

Response

任务已创建

id
string
Example:

"gen-abc123"

model
string
Example:

"doubao-seedance-1-5-pro-251215"

status
string
Example:

"processing"

created_at
integer
Example:

1773130665