Seedance 2.5 in Codex
Send Codex one prompt. It writes the request, waits for the task and saves the clip next to your project.
How it goes
- Put your HaryAI key in the HARYAI_KEY environment variable, where Codex can read it.
- Paste the prompt below into Codex, with what you want in the last line.
- Codex asks to run its script. Approve it, and it checks on the task until the clip is ready.
- The video lands in ./out, and Codex opens it. Ask for the next shot in the same chat; it reuses the script.
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 paper boat sailing down a rain gutter, close up
Ran python scripts/seedance.py --duration 5 --resolution 720p
task submitted
running… running… succeeded (1 min 40 s)
saved out/paper-boat.mp4
Saved out/paper-boat.mp4 and opened it.An example session. Codex keeps the script, so the next clip is one more message.
| 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
Do I need to switch Codex to DeepSeek first?
No. The video goes through your HaryAI key whichever model runs Codex. If you also want Codex itself cheaper, see DeepSeek in Codex.
Can Codex make several clips in a row?
Yes. Ask for a list of shots; it submits them one by one and saves each to ./out.
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.