Skip to main content
POST
/
video
/
generations
AI视频生成
curl --request POST \
  --url https://api.chatfire.site/v1/video/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "doubao-seedance-1-0-lite-i2v-250428",
  "content": [
    {
      "type": "text",
      "text": "多个镜头。一名侦探进入一间光线昏暗的房间。他检查桌上的线索,手里拿起桌上的某个物品。镜头转向他正在思索。 --ratio 16:9"
    }
  ]
}'
{
  "task_id": "<string>",
  "status": "pending",
  "created_at": 123,
  "model": "doubao-seaweed-241128",
  "prompt": "<string>",
  "content": [
    {
      "type": "text",
      "text": "<string>"
    }
  ],
  "response_format": "url",
  "videos": [
    {
      "url": "<string>",
      "oss_url": "<string>",
      "width": 123,
      "height": 123,
      "duration": 123,
      "format": "mp4",
      "thumbnail": "<string>",
      "expires_at": 123
    }
  ],
  "error": {
    "code": "<string>",
    "message": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
  • Option 1
  • Option 2
model
enum<string>
required

即梦模型

Available options:
doubao-seedance-1-0-lite-i2v-250428
Example:

"doubao-seedance-1-0-lite-i2v-250428"

content
object[]
required

内容列表

  • Option 1
  • Option 2

Response

Successful response

task_id
string

任务唯一标识符

status
enum<string>

任务状态

Available options:
pending,
processing,
completed,
failed
created_at
integer

任务创建时间戳

model
enum<string>

使用的AI模型

Available options:
doubao-seaweed-241128,
minimax-hailuo-02,
doubao-seedance-1-0-lite-i2v-250428
prompt
string

原始提示词

content
object[]

原始内容列表

  • Option 1
  • Option 2
response_format
enum<string>

响应格式类型

Available options:
url,
oss_url
videos
object[]

生成的视频列表(仅在completed状态时返回)

error
object

错误信息(仅在failed状态时返回)