seedance-2-5-flash API 价格
所有价格均以 USD 计。对比 APISea 费率与相同计费单位的官方标价。
| 选项 | APISea | 官方 | 节省 |
|---|---|---|---|
| 480P | $0.06943 | $0.06312 | — |
| 480P · 支持输入视频 | $0.04224 | $0.0384 | — |
| 720P默认 | $0.1561 | $0.1419 | — |
| 720P · 支持输入视频 | $0.09504 | $0.0864 | — |
价格单位为 每秒。
Token 结算
| Token 类型 | APISea | 官方 |
|---|---|---|
| 输出 token 每 1M 个 token | $7.23 | $6.57 |
| 输入 token 每 1M 个 token | $4.40 | $4.00 |
seedance-2-5-flash 是什么?
ByteDance 的 seedance-2-5-flash 将 Seedance 视频生成功能带到 APISea,支持文本驱动的视频片段、多模态参考工作流、视频编辑和续写。可生成时长最长 30 秒的 480p 或 720p 视频,并可按需使用图像、视频或音频作为参考。首帧和尾帧输入支持帧引导工作流,此外还可控制宽高比、时长、生成音频、水印,以及 MP4 或 MOV 输出。也支持仅使用音频作为参考,无需提供图像或视频。
通过 APISea 的视频生成 endpoint 提交请求,并轮询返回的任务 ID 以查询是否完成。APISea 提供统一的 API 密钥,仅对成功请求按量计费。标价因分辨率以及是否提供输入视频而异:480P 为每秒 $0.06943,720P 为每秒 $0.1561。Token 结算费率为输出 token 每 1M 个 $7.23,输入 token 每 1M 个 $4.40。
seedance-2-5-flash 的亮点
多种生成工作流
可根据文本或媒体参考生成视频、编辑源视频,或续写现有片段。参考任务类型包括 auto、reference、edit 和 extend。
帧引导视频
通过 image_with_roles 提供首帧,也可选提供与之配对的尾帧。启用 return_last_frame 后,生成成功时会返回尾帧图像。
音频输入与输出
可单独使用音频参考,也可将其与其他媒体一同使用。生成音频由独立参数控制,默认启用。
输出格式控制
可选择 480p 或 720p 分辨率,以及 MP4 或 MOV 输出。普通生成支持多种宽高比,包括 16:9、1:1 和 9:16。
分 4 步调用 seedance-2-5-flash API
- 01
获取 API 密钥
登录 APISea,充值 $50 起,并在控制台创建一个 sk-sea 密钥。
- 02
设置 base URL
在 SDK 或 HTTP 客户端中将 https://api.apisea.ai/v1 设置为 base URL。
- 03
发送请求
调用 POST /v1/videos/generations,并传入 "model": "seedance-2-5-flash" 及以下参数。
- 04
处理响应
响应中包含 task_id。轮询 GET /v1/tasks/{task_id},直到状态变为 completed,然后下载结果 URL。
curl --request POST \
--url https://api.apisea.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance-2-5-flash",
"prompt": "A cinematic shot of a fox walking through a sunlit forest, with a slow tracking camera",
"resolution": "720p",
"size": "16:9",
"duration": 8,
"generate_audio": true,
"nsfw_check": true,
"return_last_frame": true
}'参数
| 参数 | 类型 | 必填 | 默认 | 说明 |
|---|---|---|---|---|
model | string | 必填 | — | Use `seedance-2-5-flash`. The alias `doubao-seedance-2-5-flash` is also accepted. The dotted name `seedance-2.5-flash` is not supported. |
nsfw_check | boolean | 可选 | false | Whether to run content moderation before submitting the video task. |
prompt | string | 必填 | — | Required prompt. Refer to media with `@图片1` / `@视频1` / `@音频1`; indices start at 1 and follow the order within each media array. |
resolution | string | 可选 | 720p | Only `480p` / `720p`; default `720p`. Values such as `1080p`, `2k`, or `4k` return HTTP 400 at submission. |
size | string | 可选 | adaptive | Accepts `16:9`, `4:3`, `1:1`, `3:4`, `9:16`, `21:9`, and `adaptive` (default). Alias: `aspect_ratio`. First/last-frame, edit, and extend tasks require `adaptive`. |
duration | integer | 可选 | — | Integer seconds `4`–`30`; ordinary requests default to `5`. Use `-1` for automatic duration. Explicit `edit` only accepts `-1` or omission; omission becomes `-1` and output duration follows the source. Automatic duration reserves 30 seconds, then settles on actual token usage. |
generate_audio | boolean | 可选 | true | Generate audio; defaults to `true`. Alias: `audio`. This controls output sound, separately from reference input `audio_urls`. |
watermark | boolean | 可选 | false | Add an AI-generated watermark; default `false`. |
seed | integer | 可选 | — | Optional random seed. Reusing a seed does not guarantee identical output. |
output_format | string | 可选 | mp4 | Output container: `mp4` (default) or `mov`. |
omni_reference_task_type | string | 可选 | auto | Accepts `auto` (default), `reference`, `edit`, or `extend`; only for requests with reference media. Explicit types trigger submission-time checks described below. |
image_urls | string[] | 可选 | — | Reference image array, all treated as `reference_image`. At most 10 images combined with `image_with_roles`. Use `image_with_roles` for first and last frames. |
image_with_roles | object[] | 可选 | — | Each item has `url` and `role`. Roles: `reference_image`, `first_frame` (at most 1), or `last_frame` (at most 1, paired with a first frame). At most 10 images combined with `image_urls`; avoid conflicting roles. When `video_urls` / `audio_urls` are present, first/last frames become reference images for the multimodal task. |
video_urls | string[] | 可选 | — | At most 5 reference videos, 2–30 seconds each and at most 30 seconds combined. Source videos for editing must be 4–30 seconds. |
audio_urls | string[] | 可选 | — | At most 5 audio references, 2–30 seconds each and at most 30 seconds combined. Audio-only reference is supported; images or videos are not required. |
return_last_frame | boolean | 可选 | false | Set `true` to return a last-frame image after success at `data.result.videos[].last_frame_url`. |
web_search | boolean | 可选 | false | Allow the model to search the web as needed; default `false`. |
tools | object[] | 可选 | — | Optional tools, for example `[{"type":"web_search"}]` for web search. |
seedance-2-5-flash 的应用场景
文生视频原型
构建由提示词驱动的视频生成界面,并支持选择时长、分辨率和输出格式,以生成短视频创意。
基于参考素材的创意工具
让创意团队同时提交图像、视频和音频参考,并通过提示词描述所需的视频片段。
视频编辑工作流
围绕源视频和明确的编辑请求构建编辑界面。若未指定 duration 或将其设为 -1,输出时长将沿用源视频时长。
从帧生成视频片段
将提供的起始图像转换为视频,也可选添加目标尾帧。获取生成的尾帧图像,用于审核或后续工作流。
获得更好结果的技巧
- 01
先提交,再轮询
使用 APISea Bearer 密钥发送 POST /v1/videos/generations,并将 model 设为
seedance-2-5-flash。读取 data[0].task_id,然后轮询 GET /v1/tasks/{task_id}。 - 02
谨慎选择分辨率
分辨率默认为 720p;如果 480p 已满足输出尺寸需求,可将分辨率设为 480p。480P 标价为每秒 $0.06943,720P 则为每秒 $0.1561。
- 03
匹配工作流参数
首帧/尾帧、编辑和续写任务请使用自适应尺寸。明确的编辑请求只接受 duration 为 -1 或省略 duration;自动时长会预留 30 秒,之后按实际 token 用量结算。
- 04
标识参考媒体
在提示词中使用 @图片1、@视频1 和 @音频1 引用媒体;每个媒体数组中的索引都从 1 开始。请使用可公开访问的 HTTP(S) URL 或获准使用的 asset:// ID。
限制与须知
仅支持输出 480p 和 720p;1080p、2k、4k 和 draft 字段会返回 HTTP 400。
普通显式时长必须为 4–30 秒的整数;重复使用同一 seed 并不能保证输出完全一致。
输入上限为 10 张图像、5 个视频和 5 个音频参考;视频参考和音频参考的合计时长各自不得超过 30 秒。
seedance-2-5-flash API 常见问题
在 APISea 上使用 seedance-2-5-flash 的费用是多少?
APISea 的标价为 480P 每秒 $0.06943、720P 每秒 $0.1561;提供输入视频时,480P 为每秒 $0.04224,720P 为每秒 $0.09504。Token 结算费率为输出 token 每 1M 个 $7.23,输入 token 每 1M 个 $4.40。采用按量付费,仅对成功请求计费;这些价格并不代表相比服务提供方的标价有所节省。
如何通过 APISea 调用 seedance-2-5-flash?
发送 POST https://api.apisea.ai/v1/videos/generations,并提供 APISea Bearer 密钥、必填的 prompt,以及 model seedance-2-5-flash。读取 data[0].task_id,然后轮询 GET https://api.apisea.ai/v1/tasks/{task_id},查询任务是否完成。
可以控制哪些输出参数?
你可以控制分辨率、尺寸、时长、生成音频、水印和输出格式。分辨率默认为 720p,输出格式默认为 MP4,生成音频默认启用。
视频时长和参考素材有哪些限制?
普通显式时长范围为 4–30 秒;使用 -1 表示自动确定时长。图像字段合计最多可提供 10 张图像、最多 5 个参考视频和 5 个音频参考。视频和音频参考的时长必须各为 2–30 秒,且每种媒体的合计时长不得超过 30 秒。
生成的视频可以用于商业用途吗?
商业用途须遵守服务提供方的条款。发布或分发输出内容前,请查阅适用的 ByteDance 条款,以及与输入媒体相关的权利或许可要求。
seedance-2-5-flash 与 Seedance 2.5 有何不同?
Flash 这一名称表明该模型属于更轻量、速度更快的档位,但现有信息并未证实其速度或质量方面存在经测量的差异。该模型不支持 draft 或 draft_task_id;文档建议将草稿模式工作流用于 Seedance 2.5。