公共 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

在 Claude Code、Codex 或任何代理程式中安裝 Seedance 技能 — 它會自動撰寫電影級提示詞,並透過 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 token 呼叫端點(請參閱上方快速入門)。

如果呼叫回傳 insufficient_credits,該如何處理?

您的餘額為零,請前往價格頁面充值後重試。