doubao-seedance-2-5-flash
Seedance 2.5 Flash 的官转线路。支持文本和多模态参考视频创作;480P、720P,4–30 秒,最多10张参考图片、5段参考视频、5段参考音频。按实际视频 Token 结算,含参考视频和不含参考视频分别计价。
价格
下表为最终扣费价,按实际用量结算(token / 张 / 秒),请求失败不扣费。
| 计费项 | 售价 |
|---|---|
| 输出 tokens | ¥22 / 1M tokens |
支持参数
端点:创建 POST /v1/videos(异步)→ 轮询 GET /v1/videos/{id} → 取回 GET /v1/videos/{id}/content
| 参数 | 类型 | 说明 |
|---|---|---|
| model | string | 必填:doubao-seedance-2-5-flash |
| prompt | string | 必填,画面描述(文本提示词) |
| seconds | string/int | 生成时长(秒),如 5 或 "5";具体支持的时长由模型决定,不支持会返回错误;留空 = 模型默认 |
| size | string | 尺寸 宽x高,如 1280x720 / 720x1280;等价字段 resolution / ratio / aspect_ratio |
| input_reference | string / object | 单首帧参考图:URL 字符串,或 {"url"|"image_url"|"file_id": ...};图生视频类模型必填 |
| extra.reference_images | array | 多参考图:URL 或对象数组,可标角色 first_frame / last_frame / reference_image |
| extra.reference_videos | array | 参考视频:URL 或 {"url":...} 对象数组 |
| extra.reference_audios | array | 参考音频:URL 或 {"url":...} 对象数组 |
| extra.aspect_ratio | string | 画幅比例 16:9 / 9:16 / 1:1 等 |
| extra.resolution | string | 分辨率档位 480p / 720p / 1080p / 2k |
| extra.(其它) | various | fps 帧率 · seed 随机种子 · negative_prompt 反向提示 · watermark 水印 · generate_audio 生成音频(仅确认支持的模型) |
参考素材均以 URL / 对象形式传入(不是文件上传):单图用 input_reference,多图 / 视频 / 音频用 extra.reference_images / reference_videos / reference_audios。模型不支持的字段会原样返回错误(不会被静默改写)。视频为异步任务:创建返回 video_id,轮询 GET /v1/videos/{id} 直到 status=completed 取回 video_url;失败自动退款。
实测能力
该模型暂无探测数据;能力参数以探测引擎实测入库后为准。
接入示例
The examples below follow this exact image, video or video-tool route. Replace the reference URLs and API key with your own.
Text to video · 480P · Without reference video · ¥37 / 1M video tokens
Generate a video from text, without reference media.
cURL
curl 'https://api.ai526.com/v1/videos' \
-H 'Authorization: Bearer YOUR_AI526_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "doubao-seedance-2-5-flash-rd90b29-at",
"prompt": "A person turns naturally toward the camera, with fluid motion and a steady cinematic shot.",
"resolution": "480p",
"seconds": 4,
"ratio": "16:9"
}'
Python
import json
import requests
payload = json.loads("{\"model\":\"doubao-seedance-2-5-flash-rd90b29-at\",\"prompt\":\"A person turns naturally toward the camera, with fluid motion and a steady cinematic shot.\",\"resolution\":\"480p\",\"seconds\":4,\"ratio\":\"16:9\"}")
response = requests.post(
"https://api.ai526.com/v1/videos",
headers={"Authorization": "Bearer YOUR_AI526_API_KEY"},
json=payload,
timeout=180,
)
response.raise_for_status()
print(response.json())
JavaScript
const response = await fetch("https://api.ai526.com/v1/videos", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_AI526_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "doubao-seedance-2-5-flash-rd90b29-at",
"prompt": "A person turns naturally toward the camera, with fluid motion and a steady cinematic shot.",
"resolution": "480p",
"seconds": 4,
"ratio": "16:9"
}),
});
if (!response.ok) throw new Error("HTTP " + response.status);
console.log(await response.json());
Keep the returned id and query GET /v1/videos/{id} for the original task; polling must not submit a new generation.
Image to video · 480P · Without reference video · ¥37 / 1M video tokens
Generate a video using a reference image.Replace the placeholders with publicly accessible HTTPS media URLs.
cURL
curl 'https://api.ai526.com/v1/videos' \
-H 'Authorization: Bearer YOUR_AI526_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "doubao-seedance-2-5-flash-rd90b29-at",
"prompt": "Create natural, fluid movement based on the subject and composition in the reference image.",
"resolution": "480p",
"seconds": 4,
"ratio": "16:9",
"extra": {
"reference_images": [
"https://example.invalid/reference-image.png"
]
}
}'
Python
import json
import requests
payload = json.loads("{\"model\":\"doubao-seedance-2-5-flash-rd90b29-at\",\"prompt\":\"Create natural, fluid movement based on the subject and composition in the reference image.\",\"resolution\":\"480p\",\"seconds\":4,\"ratio\":\"16:9\",\"extra\":{\"reference_images\":[\"https://example.invalid/reference-image.png\"]}}")
response = requests.post(
"https://api.ai526.com/v1/videos",
headers={"Authorization": "Bearer YOUR_AI526_API_KEY"},
json=payload,
timeout=180,
)
response.raise_for_status()
print(response.json())
JavaScript
const response = await fetch("https://api.ai526.com/v1/videos", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_AI526_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "doubao-seedance-2-5-flash-rd90b29-at",
"prompt": "Create natural, fluid movement based on the subject and composition in the reference image.",
"resolution": "480p",
"seconds": 4,
"ratio": "16:9",
"extra": {
"reference_images": [
"https://example.invalid/reference-image.png"
]
}
}),
});
if (!response.ok) throw new Error("HTTP " + response.status);
console.log(await response.json());
Keep the returned id and query GET /v1/videos/{id} for the original task; polling must not submit a new generation.
还没有 Key?免费注册,1 分钟拿到 Key →