公共 API

使用你的工具生成视频与图像

创建密钥,使用 Bearer 认证调用 API,并轮询任务状态直到结果就绪。适用于 Claude Code、Codex 及任何 HTTP 客户端。

管理密钥

快速入门

步骤1

创建密钥

在控制面板中生成 API 密钥。该密钥仅显示一次,请妥善保管。

步骤2

调用API

使用您的 Bearer 密钥和 Idempotency-Key 标头发送 POST 请求。

步骤3

获取结果

轮询任务状态端点,直到状态变为“已完成”或“失败”,然后读取输出。

身份验证

所有请求均需在 Authorization 标头中携带 Bearer API 密钥进行身份验证。

http
Authorization: Bearer sk_live_your_api_key
Content-Type: application/json
Idempotency-Key: a-unique-id-per-request

Seedance 2 Video

文本、图像或媒体转视频

错误码

All errors share this shape:

json
{ "error": { "code": "invalid_request", "message": "Invalid request body" } }
代码HTTP含义
unauthorized401Missing, invalid, or revoked API key.
invalid_request400Bad input or unsupported field.
purchase_required403Seedance 2.5 requires a successful credits or plan purchase; free promotional credits alone do not unlock it.
insufficient_credits402Not enough credits. Seedance 2.5 always returns HTTP 402 with insufficient_credits; when an authoritative quote is available, it may also include required_credits, available_credits, pricing_version, and promotion_applied.
rate_limited429Too many requests — the general limit is 30 requests per 60 seconds per account; Seedance requests that validate reference media are limited to 3 per 60 seconds per account and source IP, with a project-wide safety cap. Retry after the Retry-After response header (in seconds).
idempotency_conflict409Same Idempotency-Key reused with a different body, or still running.
service_busy503Temporary upstream or credit-concurrency issue. Retry.
not_found404Task does not exist or does not belong to this key owner.
internal_error500Unexpected server-side failure.

配合 Claude Code 使用

使用 Copy for AI 将完整 API 导出为整洁的 Markdown,粘贴到 Claude Code 或 Codex 中,让智能体完成集成。或者直接将智能体指向原始文本端点。

Skill

将 Seedance 技能安装到 Claude Code、Codex 或任何 agent 中——它能为你编写电影级提示词,并通过 API 直接渲染成片。

bash
# Download the one-file skill from Seedance 2 AI
mkdir -p ~/.claude/skills/seedance
curl --fail --location -H "Authorization: Bearer $SEEDANCE_API_KEY" https://www.seedance2ai.io/downloads/seedance-skill.md -o ~/.claude/skills/seedance/SKILL.md.tmp &&
mv ~/.claude/skills/seedance/SKILL.md.tmp ~/.claude/skills/seedance/SKILL.md

常见问题

谁可以使用 API?

任何拥有积分的用户均可使用。无套餐限制——任何持有积分的账户均可创建密钥并调用API。

如何获取积分?

在定价页面充值或订阅,积分将即时到账。

网站和API的积分是否共享?

是的——您的个人积分余额可用于网页生成和 API 调用。在团队中,API 调用使用每位成员自己的个人余额,而非团队共享积分池。

如何开始?

在控制面板中创建一个 API 密钥,然后使用 Bearer 令牌调用接口(参见上方快速入门指南)。

若调用返回 insufficient_credits,该如何处理?

您的余额不足——请在定价页面充值后重试。