Claude CodeCursorCodexSeedance 2.0Open source

Give your coding agent a video generator

The RelayDance Skill lets any skill-capable agent generate Seedance 2.0 videos with one sentence: text-to-video, image-to-video, multi-reference characters, and 480p-to-4K upscaling. Per-second billing, no queue, no KYC.

Install in 30 seconds Download zip (8 KB)

Install

Option 1: one command (Node 16+)

npx relaydance-skill

Installs to ~/.claude/skills/relaydance. Use --project for the current project only, or --dir PATH for Cursor / Codex skill directories.

Option 2: tell your agent to do it

Paste this into Claude Code (or any agent that can run commands):

Please install the RelayDance skill from
https://relaydance.com/skill/relaydance-skill.zip
into my skills directory.

Then: set your API key

export RELAYDANCE_API_KEY=sk-...        # macOS / Linux
setx RELAYDANCE_API_KEY sk-...          # Windows

Get a key from the RelayDance console (API Tokens). Restart your agent and you are done.

Use it in plain language

After install, just tell your agent what you want. It picks the model, submits the task, polls until done, and downloads the MP4. Try these:

A 5 second 480p clip typically renders in about 100 seconds; the agent waits and saves the file for you. Result URLs expire within 24 hours, so the skill downloads promptly.

Or drive the scripts directly

Every step is also a plain command, useful for CI pipelines and batch jobs:

# 1. submit a text-to-video task (returns a task_id)
python3 create_video.py "a small paper boat drifting on a calm pond" \
  --model doubao-seedance-2-0-mini-480p --duration 5 --ratio 16:9

# 2. wait for it and save the MP4
python3 query_task.py TASK_ID --download --output-dir ./videos

# image-to-video: local files are inlined automatically
python3 create_video.py "the sun slowly sets behind the horizon" --image ./ref.png

# upscale a previous result (cheap path to high resolution)
python3 upscale_video.py "https://...mp4" --target 1080p

Models and pricing

Model$ / M tokenswith video input5s clip anchor
doubao-seedance-2-0-480p / -720p$8.75$5.375about $0.44 / $0.95
doubao-seedance-2-0-1080p$9.625$5.875about $2.35
doubao-seedance-2-0-4k$5.00 (about 4x tokens of 1080p)$3.00about $4.90
doubao-seedance-2-0-mini-480p / -720p$4.375$2.625from about $0.22
doubao-seedance-2-0-fast-260128$7.00$4.125
seedance-nsfw family (480p to 4K), seedance-fast-nsfwsame rates as the standard model of the same resolution
seedance-upscale-720p / 1080p / 2k / 4kper second of footageabout $0.02 (5s to 720p)

Tokens scale with resolution and duration (width x height x 24fps x seconds / 1024), so each resolution has its own per-million-token rate. When a request includes video input (video-to-video), the discounted "with video input" rate applies automatically. Billing is settled per second on actual output; any pre-charge difference is refunded. Full price list: relaydance.com/pricing

Content policy. Unrestricted models are strictly opt-in and for adult creators. Content involving minors, non-consensual imagery, or real identifiable people is prohibited on every model and leads to account suspension.

What is inside

Four small Python scripts (standard library only, no dependencies) plus a SKILL.md the agent reads. Everything talks to the OpenAI-compatible RelayDance API:

ScriptDoes
create_video.pysubmit text/image-to-video tasks (--nsfw flag gates unrestricted models; --first-frame / --last-frame for frame control)
query_task.pypoll status, download the MP4
upscale_video.pysuper-resolution on an existing video URL
manage_assets.pyasset library: register an image once, reuse its asset:// URI for recurring characters

Prefer raw HTTP? The same API is plain REST: API documentation.

FAQ

Does the skill cost anything?

No. The skill is free and open source (MIT). You pay only for video generation through your RelayDance API key, per second of output.

Which agents are supported?

Anything that reads skill directories: Claude Code, Cursor, Codex, and compatible CLI agents. The scripts are plain Python 3, so any agent that can run a command can use them.

How long does a video take?

Typically 1 to 3 minutes for a 5 second 720p clip; 4K takes longer. The skill polls automatically.

Is this the official Seedance API?

RelayDance relays to ByteDance's official Seedance infrastructure. Output URLs are served from ByteDance TOS storage and can be verified independently.