Guide

How to use the Seedance API: Seedance 2.5 in Python and curl, with cost per second

Prices checked Nov 26, 2026 · 4 min read

How to use the Seedance API: a single long take priced per second

To use the Seedance API, send one POST /v1/tasks with model set to seedance-2-5, a prompt, a duration and a resolution. Then poll GET /v1/tasks/{id} or pass a callback_url, and read the video from output.urls. Seedance 2.5 costs $0.14 per second at 480p, $0.315 at 720p, $0.79 at 1080p and $1.255 at 4K on TapModels. Credits are held at submit and charged only on success.

The request

Video tasks are asynchronous. The base URL is https://api.tapmodels.com/v1 and auth is Authorization: Bearer sk_live_....

{
  "model": "seedance-2-5",
  "input": {
    "prompt": "One continuous take through a night market, the camera following a courier on a bicycle",
    "duration": "10",
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "audio": true
  },
  "callback_url": "https://your.app/hooks/tapmodels"
}

The reply is 202 { "id": "task_...", "status": "queued", "estimated_credits": 315 }, which is 10 seconds x 31.5 credits.

Parameters and valid values

FieldRequiredValid valuesDefault
promptyesThe shot, the motion and the cameranone
image_urlnoFirst frame; turns the request into image to videonone
durationno5, 10, 20, 30 (seconds)5
resolutionno480p, 720p, 1080p, 4K480p
aspect_rationo16:9, 9:16, 1:116:9
audionotrue, falsetrue

The catalog describes Seedance 2.5 as a model for single-take clips up to 30 seconds with many reference inputs. It lists text to video, image to video and video to video. The fields above come from the catalog's request schema. Read GET /v1/models/seedance-2-5 for the live schema, since staff can change it. A value outside the list returns 422 invalid_input and names the field.

Python example

If you searched "seedance api python", this is the whole thing. You only need requests.

import os, time, requests

BASE = "https://api.tapmodels.com/v1"
H = {"Authorization": f"Bearer {os.environ['TAPMODELS_API_KEY']}"}

r = requests.post(f"{BASE}/tasks", headers=H, json={
    "model": "seedance-2-5",
    "input": {
        "prompt": "One continuous take through a night market, camera following a courier on a bicycle",
        "duration": "10", "resolution": "720p",
    },
})
r.raise_for_status()
task = r.json()
print("estimated credits:", task["estimated_credits"])

while task["status"] in ("queued", "running"):
    time.sleep(5)
    task = requests.get(f"{BASE}/tasks/{task['id']}", headers=H).json()

print(task["status"], task.get("output"), task["credits_charged"])

curl example

curl https://api.tapmodels.com/v1/tasks \
  -H "Authorization: Bearer $TAPMODELS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"seedance-2-5","input":{"prompt":"One continuous take through a night market","duration":"10","resolution":"720p"}}'

curl https://api.tapmodels.com/v1/tasks/task_123 \
  -H "Authorization: Bearer $TAPMODELS_API_KEY"

Polling or callback_url

Poll every few seconds in a script. In an app, pass callback_url. On a final status we POST the task object to it with an X-Signature header (t=<unix>,v1=<hex hmac-sha256 of "t.body">, signed with your account's webhook secret). Failed deliveries are retried with backoff for 24 hours, so key your handler on the task id. Output files are kept for 14 days.

Seedance API cost and pricing

Seedance is priced per second of video, and the price climbs steeply with resolution.

ResolutionPer second5 seconds10 seconds30 seconds
480p$0.14$0.70$1.40$4.20
720p$0.315$1.575$3.15$9.45
1080p$0.79$3.95$7.90$23.70
4K$1.255$6.275$12.55$37.65

Our catalog records no provider list price for Seedance, so we make no comparison against one.

Worked example: you want a 20 second 1080p scene and want to avoid a $15.80 surprise. A 20 second clip at 1080p costs 20 x $0.79 = $15.80 (1,580 credits). Draft first:

  • Five 5 second drafts at 480p: 5 x $0.70 = $3.50
  • Then the 20 second 1080p final: $15.80
  • Total: $19.30

Skipping the drafts and rendering five 20 second 1080p takes would cost 5 x $15.80 = $79.00. Resolution is the main lever, then length. Since 480p costs under half of 720p per second ($0.14 against $0.315), iterate there and move up once the shot works.

A 30 second 4K clip holds $37.65 at submit. If your balance minus held credits is lower, the submit fails with 402 and nothing runs. The default submit limit is 20 new tasks per 10 seconds per account.

Common errors

HTTPCodeWhat to do
401unauthorizedCheck the key is present and not revoked
402insufficient_creditsBalance minus held credits is below the estimate
402key_limit_reachedThe key's spend limit would be exceeded
403model_not_allowedThe key's allowed_models excludes seedance-2-5
422invalid_inputA field is outside the valid values above
429rate_limitedWait for Retry-After, then retry
task failedupstream_errorResubmit: 0 credits were charged

Next step: put Seedance next to Kling in Kling vs Seedance, or open the Seedance pricing page.

Frequently asked questions

How do I use the Seedance API?

Send POST /v1/tasks with model seedance-2-5 and an input object with a prompt, a duration of 5, 10, 20 or 30 seconds and a resolution of 480p, 720p, 1080p or 4K. Poll GET /v1/tasks/{id} or pass a callback_url, then read the video from output.urls.

How much does the Seedance API cost?

Seedance 2.5 on TapModels costs $0.14 per second at 480p, $0.315 at 720p, $0.79 at 1080p and $1.255 at 4K. A 10 second 720p clip is 10 x $0.315 = $3.15. We publish no provider list price for Seedance, so we make no comparison.

Is there a Seedance 2 API?

The Seedance model in our catalog is Seedance 2.5, with model id seedance-2-5. We do not list a separate Seedance 2.0 model. For the Seedance family through our API, use seedance-2-5 and check GET /v1/models for the current list.

Can Seedance make video from an image?

Yes. The model is listed for text to video, image to video and video to video. For image to video, upload the first frame with POST /v1/files and pass the returned URL as image_url. The price depends on resolution and length, not on the input type.

Sources