Call ByteDance's Seedance 2.0 for text-to-video and image-to-video on hiapi's unified async task API — with two real generated clips, every parameter, and per-second pricing.

If you are wiring AI video into a product in 2026 — ad creative, product demos, social loops, animated stills — the first integration question is rarely "which model looks best." It is "how do I call it, what does it cost per clip, and how do I keep a long-running render from blocking my request." This guide walks through the Seedance 2.0 API on hiapi end to end: the task lifecycle, every input parameter, two real generated clips with their exact prompts and task IDs, the per-second pricing math, and the image-to-video path.
Seedance 2.0 is ByteDance's video model. The thing that makes it a sensible default rather than a niche pick is that one model handles both text-to-video and image-to-video, generates native audio, and renders 4–15 second clips at 480p, 720p, or 1080p. You do not maintain two integrations for two modalities — same endpoint, same request shape, you just add a first-frame image when you have one.
Video generation is slow by nature — a few seconds of 1080p footage takes real compute time. hiapi exposes every model, Seedance included, through one async task API so a render never holds a connection open. The pattern is always the same three steps:
POST /v1/tasks → you get a taskId back immediately.GET /v1/tasks/{taskId} until status is success (or fail).output[0].url — and download it promptly, because the URL is a time-limited link.# 1. Create the task
curl -X POST https://api.hiapi.ai/v1/tasks \
-H "Authorization: Bearer $HIAPI_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2-0",
"input": {
"prompt": "A slow cinematic dolly-in on a sleek matte-black smartwatch on a concrete pedestal, soft studio light",
"aspect_ratio": "16:9",
"duration": 5,
"resolution": "720p",
"generate_audio": false
}
}'
# 2. Poll until status = success
curl https://api.hiapi.ai/v1/tasks/$TASK_ID \
-H "Authorization: Bearer $HIAPI_TOKEN"
For anything past a prototype, do not sit in a poll loop. Pass a callback object and let hiapi push you the terminal state instead:
{
"model": "seedance-2-0",
"input": { "prompt": "...", "aspect_ratio": "16:9", "duration": 5, "resolution": "720p" },
"callback": { "url": "https://your-domain.com/hiapi/callback", "when": "final" }
}
| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
prompt | string | yes | — | 3–20,000 chars |
aspect_ratio | enum | yes | 16:9 | 1:1, 4:3, 3:4, 16:9, 9:16, 21:9, adaptive |
duration | integer | no | 5 | 4–15 seconds |
resolution | enum | no | 720p | 480p, 720p, 1080p — drives cost |
generate_audio | boolean | no | true | native synced audio |
first_frame_url | string | no | — | image-to-video: pins the opening frame |
reference_image_urls | string[] | no | — | reference subjects/style (≤9 with frames combined) |
The two parameters that matter most for your bill are resolution and duration — pricing is per second and scales hard with resolution (see below). Keep both low while you are still iterating on the prompt.
This is a 5-second 720p clip, no audio, generated from a single prompt — the kind of shot you would drop into a landing page or an ad.
A slow cinematic dolly-in on a sleek matte-black smartwatch resting on a
brushed-concrete pedestal, soft diffused studio light, the screen wakes to
show a glowing minimalist watch face, faint reflections move across the metal
bezel, premium tech commercial look, calm and clean.
seedance-2-0 · aspect_ratio: 16:9 · duration: 5 · resolution: 720p · generate_audio: falsetk-hiapi-01KVQFE96NADP6XSQA3PS14Z5NThe camera move and the soft "wake" of the watch face came straight from the prompt — no keyframing, no post. For product shots, lead with the camera verb ("dolly-in", "slow pan", "push-in") and the lighting; Seedance follows motion direction well.
Same shape, different intent — a mood/establishing shot for a hero header or a background loop.
A gentle slow pan across a cozy specialty coffee shop interior at golden hour,
warm light through the window, steam rising from a cup on the counter, a few
patrons softly out of focus, cinematic, smooth camera motion.
seedance-2-0 · aspect_ratio: 16:9 · duration: 5 · resolution: 720ptk-hiapi-01KVQFPHHSCV4P7DM585VCDP36When the opening frame has to match an asset you already own — a product render, an approved key visual, a character sheet — switch from text-to-video to image-to-video by adding first_frame_url. Everything else about the call is identical; you are just giving the model a starting frame to animate instead of generating one from scratch.
{
"model": "seedance-2-0",
"input": {
"prompt": "Animate the product with a slow cinematic push-in, subtle light sweep across the surface",
"first_frame_url": "https://static.hiapi.ai/your-asset/first.jpg",
"aspect_ratio": "16:9",
"duration": 5,
"resolution": "720p"
}
}
Use text-to-video when you are exploring an idea and the exact subject is flexible. Use image-to-video when brand consistency is the whole point and the first frame is non-negotiable.
Seedance is billed per second of output, and the per-second rate is set by resolution. These are the live rates on hiapi:
| Resolution | Per second | 5-second clip | 10-second clip |
|---|---|---|---|
| 480p | $0.15 | $0.75 | $1.50 |
| 720p | $0.33 | $1.65 | $3.30 |
| 1080p | $0.823 | $4.115 | $8.23 |
Two practical consequences:
Seedance 2.0 is the premium, do-everything pick: cinematic motion, native audio, and both modalities behind one integration. It is not the cheapest path to HD video on the platform — if you are rendering hundreds of variants, a lower-cost model is the right call for the variant pass. For how Seedance compares to the other video models on cost and capability, see Best AI Video Generation API in 2026.
When you are ready to ship: run your own prompts on the Seedance 2.0 model page, then move to the API with the task lifecycle above. Start at 480p, confirm the prompt, scale the resolution, and wire callbacks before you go to production.
Key Takeaways