Public API

Generate video and images from your own tools

Create a key, call the API with Bearer auth, and poll task status until your result is ready. Works with Claude Code, Codex, and any HTTP client.

Manage keys

Quickstart

Step 1

Create a key

Generate an API key in your dashboard. It is shown once, so store it somewhere safe.

Step 2

Call the API

Send a POST request with your Bearer key and an Idempotency-Key header.

Step 3

Poll the result

Poll the task status endpoint until the status is completed or failed, then read the output.

Authentication

Every request is authenticated with a Bearer API key in the Authorization header.

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

Seedance 2 Video

Text, image, or media to video.

Error codes

All errors share this shape:

json
{ "error": { "code": "invalid_request", "message": "Invalid request body" } }
CodeHTTPMeaning
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.

Use with Claude Code

Use Copy for AI to export the full API as clean Markdown, paste it into Claude Code or Codex, and let the agent wire up the integration. Or point the agent directly at the raw text endpoint.

Skill

Install the Seedance skill in Claude Code, Codex, or any agent — it writes cinematic prompts and renders them through the API for you.

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

FAQ

Who can use the API?

Anyone with credits. There is no plan gate — any account with credits can create a key and call the API.

How do I get credits?

Top up or subscribe on the pricing page. Credits are added to your balance instantly.

Are credits shared between the website and the API?

Yes — your personal credit balance powers both your web generation and your API calls. On a team, API calls use each member's own personal balance, not the shared team pool.

How do I start?

Create an API key in your dashboard, then call the endpoints with a Bearer token (see Quickstart above).

What if a call returns insufficient_credits?

Your balance is empty — top up on the pricing page and retry.