Skip to main content
POST
Seedance 2.5 文生视频

授权

Authorization
string
header
必填

所有接口均需要使用Bearer Token进行认证

使用时在请求头中添加:

Authorization: Bearer YOUR_API_KEY

请求体

application/json
model
string
默认值:seedance-2.5-text-to-video
必填

seedance-2.5-text-to-video:使用文本提示词生成视频,支持分辨率和时长参数

示例:

"seedance-2.5-text-to-video"

prompt
string
必填

描述希望生成的视频内容。

Minimum string length: 1
示例:

"固定镜头,一只蓝色小球在白色桌面上缓慢从左向右滚动。"

resolution
string
默认值:720p

输出视频分辨率。系统根据该值选择能够承接请求的模型版本。

示例:

"480p"

aspect_ratio
string
默认值:9:16

输出视频宽高比。

示例:

"16:9"

duration
integer
默认值:5

输出视频时长(秒)。不同模型版本的可用时长由运行时能力目录继续筛选。

必填范围: 4 <= x <= 30
示例:

4

响应

任务创建成功

created
integer

任务创建时间戳

示例:

1757165031

id
string

任务ID

示例:

"task-unified-1757165031-uyujaw3d"

model
string

实际使用的模型名称

object
enum<string>

任务的具体类型

可用选项:
video.generation.task
progress
integer

任务进度百分比 (0-100)

必填范围: 0 <= x <= 100
示例:

0

status
enum<string>

任务状态

可用选项:
pending,
processing,
completed,
failed
示例:

"pending"

task_info
object

异步任务信息

type
enum<string>

任务的输出类型

可用选项:
video
示例:

"video"