Seedance 2.5 in Claude Code
Send Claude Code one prompt. It submits the task, waits for the clip and saves it, in the terminal or in Claude Desktop's Code tab.
How it goes
- Put your HaryAI key in the HARYAI_KEY environment variable.
- Paste the prompt below into Claude Code, with what you want in the last line.
- Claude writes a short script, submits the task and checks on it until it's done. A clip takes one to a few minutes.
- The video lands in ./out. In Claude Desktop's Code tab, click the file to play it in the preview pane. In a terminal, Claude opens it in your video player.
Make a video with Seedance 2.5 through HaryAI. The API is the same as Volcengine Ark.
- Base URL: https://api.haryai.com/api/v3
- API key: in the environment variable HARYAI_KEY, sent as "Authorization: Bearer"
- Model: dreamina-seedance-2-5-260628
- Submit: POST /contents/generations/tasks with an Ark request body. Always set duration.
- Poll: GET /contents/generations/tasks/{id} every 10 seconds until status is succeeded or failed.
- When it succeeds, download content.video_url into ./out (the link expires after 24 hours) and open the file.
- Reference, statuses and error codes: https://haryai.com/docs/video.md
What I want: What you see
> Make a 5 second clip: a rainy neon alley at night, one red umbrella
Write gen_video.py
Run python gen_video.py
task submitted, polling every 10 s
queued → running → succeeded
saved out/rainy-alley.mp4 (5 s, 720p)
Done. Click out/rainy-alley.mp4 to watch it.An example session. The video plays in the preview pane, not inside the chat.
| 480p | 720p | 1080p | ||
|---|---|---|---|---|
| Seedance 2.5 | Official, per second | $0.103 | $0.231 | $0.569 |
| HaryAI, per second | $0.090 | $0.203 | $0.500 | |
| HaryAI, a 5 s clip | $0.45 | $1.02 | $2.50 | |
| Seedance 2.5 Flash | Official, per second | $0.067 | $0.151 | — |
| HaryAI, per second | $0.059 | $0.133 | — | |
| HaryAI, a 5 s clip | $0.30 | $0.67 | — |
US dollars, 16:9. With a reference video the per-second price is lower, and the reference video's length is billed too. Paid from your balance; the Coding Plan is for DeepSeek.
Questions
Does it work with a Claude subscription?
Yes. Claude Code runs on your own Claude plan as usual. The video is paid from your HaryAI balance; only the key goes into the environment.
Can Claude show the video in the chat?
No. Claude plays nothing inside a chat bubble. In the Code tab you click the saved file and it plays in the preview pane.
Do I need a BytePlus or Volcengine account?
No. Your HaryAI key is enough. You don't open an account, verify a company or apply for access.
Is it the full Seedance 2.5?
Yes. Every request goes to the official model, nothing watered down. Each task's reply shows the tokens it used.
Am I charged for a failed video?
No. If a task fails or is turned down by moderation, everything held for it goes back to your balance.
How long can I download the video?
For 24 hours after it finishes. Save it before then.
Why should I set the length?
Without one, the longest video (30 seconds) is held from your balance while the task runs, and a small balance can be refused. You're charged for the real length when it finishes.