跳转到主要内容
POST
/
api
/
ai
/
volcengine
/
video
火山格式创建视频生成任务
curl --request POST \
  --url https://aitoearn.cn/api/ai/volcengine/video \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "model": "doubao-seedance-2-0-260128",
  "content": [
    {
      "type": "text",
      "text": "Create a cinematic product video with close-up shots, soft studio lighting, and smooth camera movement."
    }
  ]
}
'
{
  "id": "6a461da66fe8a12d33daabdd"
}

授权

X-Api-Key
string
header
必填

需要从 AiToEarn 获取 API Key。点击前往「API Key 获取教程」

请求体

application/json
model
string
必填

模型 ID 或 Endpoint ID。

content
object[]
必填

输入给模型、用于生成视频的内容,保持火山方舟视频生成格式。

return_last_frame
boolean

是否返回尾帧图像。

tools
object[]

模型工具配置。

resolution
string

分辨率。

ratio
string

宽高比。

duration
integer

时长(秒)。

seed
integer

随机种子。

watermark
boolean

是否带水印。

generate_audio
boolean

是否生成与画面同步的音频,Seedance 2.0 系列支持。

execution_expires_after
integer

任务超时阈值(秒),取值范围 [3600, 259200]。

必填范围: 3600 <= x <= 259200
priority
integer

任务执行优先级 0-9,数值越大优先级越高,Seedance 2.0 系列支持。

必填范围: 0 <= x <= 9
safety_identifier
string

终端用户唯一标识符,原样透传给方舟用于合规检测。

source
enum<string>

消费来源。

可用选项:
ai_video,
ai_draft_generation,
plugin

响应

200 - application/json

火山格式原生响应,不使用 AiToEarn 通用响应包裹。

id
string
必填