Video ModelsSeedance
Seedance 2.0 Fast 文生视频
获取 API Keyseedance-2.0-fast-text-to-video
Seedance 2.0 Fast 文生视频 API 文档
使用
seedance-2.0-fast-text-to-video模型快速生成视频内容
Overview
本文档说明如何使用 seedance-2.0-fast-text-to-video 模型进行快速文生视频。
集成流程分为两步:
- 创建生成任务
- 查询任务状态和结果
Authentication
所有 API 请求都需要在请求头中携带 Bearer Token:
Authorization: Bearer YOUR_API_KEY获取 API Key:
- 打开 API Keys 页面
- 点击
Create API Key - 在请求头中加入:
Authorization: Bearer YOUR_API_KEY
1. 创建生成任务
API Information
- URL:
POST https://aigptimage.com/api/v1/jobs/createTask - Content-Type:
application/json
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | 对外模型 ID,必须精确传入 seedance-2.0-fast-text-to-video |
input | object | Yes | 输入参数对象 |
input Object Parameters
prompt
- Type:
string - Required: Yes
- Description: 用于描述目标视频内容的文本提示词
aspect_ratio / ratio
- Type:
string - Required: No
- Description: 输出视频比例。如果同时传两个字段,优先使用
ratio
resolution
- Type:
string - Required: No
- Options:
480p,720p,1080p - Description: 输出分辨率,同时也会影响积分消耗
duration
- Type:
number - Required: No
- Description: 视频时长,单位秒
generate_audio
- Type:
boolean - Required: No
- Default Value:
false
web_search
- Type:
boolean - Required: No
- Default Value:
false
nsfw_checker
- Type:
boolean - Required: No
- Description: 控制平台侧内容过滤
- Default Value:
false - Behavior: 如果传
false,平台侧内容过滤会被关闭,结果会直接返回模型原始输出
积分消耗
seedance-2.0-fast-text-to-video 当前公开积分规则如下:
| 分辨率 | 每秒积分 |
|---|---|
480p | 10 |
720p | 20 |
1080p | 40 |
Request Example
{
"model": "seedance-2.0-fast-text-to-video",
"input": {
"prompt": "A fast cinematic reveal of a concept car in a neon-lit tunnel",
"ratio": "16:9",
"resolution": "720p",
"duration": 5,
"nsfw_checker": false
}
}Response Example
{
"code": 200,
"msg": "success",
"data": {
"taskId": "task_xxxxxxxxxxxxx"
}
}2. 查询任务状态
使用同一个查询接口:
GET https://aigptimage.com/api/v1/jobs/recordInfo?taskId=task_xxxxxxxxxxxxxNotes
- API 使用与其他公开模型一致的异步任务流程
- Fast 版本与标准 Seedance 2.0 的积分规则不同
resolution和duration会直接影响积分消耗