Skip to contentAI Media Studio
Open the studio

Seedance 2.0 API · REST, MCP and CLI

Seedance 2.0 API for agents and teams

AI Media Studio gives you the Seedance 2.0 API through one REST endpoint, POST /api/v1/videos/generate, with model ids for text-to-video, image-to-video and reference-to-video. Clips run 4 to 15 seconds at 480p, 720p or 1080p and cost 21, 44 or 99 credits per second. The same key works in the MCP server and the aims CLI, so Claude Code and other agents can call it too. Billing is a monthly plan with credits, not pay-as-you-go.

Plans start at $19/month (1,000 credits). One key covers Seedance 2.0, Kling, Grok Imagine and the image models.

Call the Seedance 2.0 API in three steps

The base URL is https://app.ai-media-studio.com/api/v1. Every request sends an API key as a bearer token, and every generation spends credits from the key’s workspace.

  1. 01

    Create an API key

    On a paid plan, open Workspace Settings → API Keys in AI Media Studio and create a key with the video:generate scope; add media:write if you upload start frames. Keys start with aims_. Only workspace owners and admins can create keys. Or run aims login, which opens the browser and saves a key for the CLI.

  2. 02

    Send a request

    POST a prompt and the Seedance 2.0 model id. The request stays open until the clip is finished and then returns its URL, so there is no task id to poll. The server allows up to 600 seconds per request; give your client the same timeout.

    Text to video, curl
    curl -X POST https://app.ai-media-studio.com/api/v1/videos/generate \
      -H "Authorization: Bearer $AIMS_API_KEY" \
      -H "Content-Type: application/json" \
      --max-time 600 \
      -d '{
        "prompt": "a red convertible on a coastal road at sunset, tracking shot",
        "model": "bytedance/seedance-2.0/text-to-video",
        "duration": 5,
        "aspect_ratio": "16:9",
        "audio": true,
        "resolution": "720p"
      }'
  3. 03

    Read the response

    On success you get the hosted MP4 URL, the length and settings that were used, and the credits used and left. The clip is also saved in the workspace library.

    Response shape (values illustrative)
    {
      "success": true,
      "video": {
        "id": "…",
        "url": "https://…/….mp4",
        "status": "completed",
        "model": "bytedance/seedance-2.0/text-to-video",
        "duration": 5,
        "aspect_ratio": "16:9",
        "audio": true
      },
      "credits_used": 220,
      "credits_remaining": …
    }

    Errors use HTTP status codes: 400 for a bad request, 401 for a missing or revoked key, 402 when the workspace needs a paid plan or more credits, 403 for a missing scope and 429 when you hit the rate limit.

Seedance 2.0 API examples

The same requests work from code, from the aims CLI and from an agent through the MCP server. These examples show the request and what it costs.

1.Animate a still: image to video

Upload the start frame, then send its URL as image_url with the image-to-video id. Seedance keeps the subject’s shape, which suits products and vehicles. Add last_frame_url to set an end frame.

Prompt to send

Static roadside camera: the convertible drives toward the camera and sweeps past it, the camera pans to follow, the couple laughs with wind in their hair, a warm golden sun flare.
Tool call:
POST /videos/generate · bytedance/seedance-2.0/image-to-video · image_url · duration 5 · resolution 720p
Cost:
220 credits (44 per second at 720p)
Seedance 2.0 image-to-video, 5 s, from a Nano Banana Pro still and this prompt, made in the AI Media Studio web app with the same model id. Shown without sound. Illustrative, not customer work.

2.Keep a character or product consistent: reference to video

Send two or more workspace image URLs as image_urls with the reference-to-video id, for example a product from two angles, and describe the shot.

Make it yourself: prompt to send

The sneaker from the reference images turns slowly on a concrete plinth, hard side light, the camera circles it once, studio background.
Tool call:
POST /videos/generate · bytedance/seedance-2.0/reference-to-video · image_urls [2 or more] · duration 8 · resolution 720p
Cost:
352 credits (44 per second at 720p)

3.Let an agent call it

Connect the MCP server and ask in plain words. The agent picks the model id and sends the same request through the generate_video tool, with your workspace credits.

Make it yourself: prompt to send

Use AI Media Studio with Seedance 2.0 to make a 6-second 9:16 clip at 480p: steam rising from a bowl of ramen, slow push-in, warm light.
Tool call:
generate_video · bytedance/seedance-2.0/text-to-video · duration 6 · aspect_ratio 9:16 · resolution 480p
Cost:
126 credits (21 per second at 480p)

Seedance 2.0 API pricing

Seedance 2.0 is billed per second of video, and sound on or off costs the same. Credits come from your workspace plan; the dollar figures divide the plan price by its credits.

ResolutionCredits per second5-second clip15-second clip5 s on Starter5 s on Ultra
480p21105 credits315 credits$2$1.04
720p44220 credits660 credits$4.18$2.19
1080p99495 credits1485 credits$9.40$4.93

Starter is $19/month for 1,000 credits; Ultra is $199/month for 20,000. Prices from the app’s pricing migrations. Checked in the app code on .

Seedance 2.0 API documentation

Everything the endpoint accepts for Seedance 2.0, plus the upload call for start frames and the CLI and MCP equivalents. Full reference for all models: app.ai-media-studio.com/docs.

Image to video with an uploaded start frame, curl
# 1. Upload the start frame to your workspace
curl -X POST https://app.ai-media-studio.com/api/v1/uploads \
  -H "Authorization: Bearer $AIMS_API_KEY" \
  -F "[email protected]"
# → { "success": true, "id": "…", "url": "https://…/still.jpg" }

# 2. Animate it
curl -X POST https://app.ai-media-studio.com/api/v1/videos/generate \
  -H "Authorization: Bearer $AIMS_API_KEY" \
  -H "Content-Type: application/json" \
  --max-time 600 \
  -d '{
    "prompt": "static roadside camera, the car sweeps past and the camera pans to follow",
    "model": "bytedance/seedance-2.0/image-to-video",
    "image_url": "URL_FROM_STEP_1",
    "duration": 5,
    "resolution": "720p"
  }'
aims CLI
npm install -g @ai-media-studio/cli
aims login
aims video "a red convertible on a coastal road at sunset, tracking shot" \
  -m bytedance/seedance-2.0/text-to-video -d 5 -r 720p -a 16:9 --audio --json
MCP server in Claude Code (sign in with /mcp)
claude mcp add --transport http --scope user aims https://app.ai-media-studio.com/mcp
  • model: bytedance/seedance-2.0/text-to-video, bytedance/seedance-2.0/image-to-video (needs image_url) or bytedance/seedance-2.0/reference-to-video (needs two or more image_urls). GET /models?type=video lists every live id.
  • duration: 4 to 15 seconds, default 5. Other values snap to the nearest supported length.
  • resolution: 480p, 720p (default) or 1080p. aspect_ratio: auto (default), 21:9, 16:9, 4:3, 1:1, 3:4 or 9:16.
  • audio: true or false, default false. It is the only sound control; there are no voice, music or sound-effect parameters.
  • image_url, image_urls and last_frame_url must be files in your workspace: upload them with POST /uploads (multipart field file, raster images up to 20 MiB, media:write scope). Other URLs are refused.
  • make_public: true adds a share_url to the response.
  • Rate limit: 20 video requests per 10 minutes per workspace, shared by the API, the CLI and agents.

Before you build on it

  • Plans, not pay-as-you-go. Calls draw from the monthly credits of a paid AI Media Studio plan; there is no per-request billing without a plan and no separate API fee. If you want metered access to Seedance alone, a per-use API provider may fit better. This API suits teams that already use the studio, or want one key for several video and image models in code and in their agents.
  • Requests are synchronous. Keep the connection open until the clip is done, up to 600 seconds, rather than polling.
  • Sound is on or off only. Voiceover, music and sound effects live in the web app’s Audio studio, which the API does not expose.
  • This page covers Seedance 2.0. Seedance 2.0 Fast and Seedance 2.5 are not part of the studio’s current lineup.
  • Keys belong to a workspace and spend its credits. Keep them on a server, and revoke one any time under Workspace Settings → API Keys.

How billing works

You pay for a plan, and each Seedance 2.0 call spends credits from it at the rates above. A 5-second clip at 720p is 220 credits: about $4.18 on Starter ($19 for 1,000 credits) and about $2.19 on Ultra ($199 for 20,000 credits). Starter covers 4 such clips a month, or 9 at 480p.

The response tells you credits_used and credits_remaining after every call, and a 402 means the workspace needs a paid plan or more credits. If a generation fails, its credits are returned.

See plans and credits

Seedance 2.0 API FAQ

How do I get a Seedance 2.0 API key?

Choose a paid AI Media Studio plan, then create a key under Workspace Settings → API Keys with the video:generate scope. Keys start with aims_. Only owners and admins of the workspace can create them. The CLI command aims login creates one through the browser.

How much does the Seedance 2.0 API cost?

21 credits per second at 480p, 44 at 720p and 99 at 1080p, with or without sound. A 5-second 720p clip is 220 credits, about $4.18 on the $19 Starter plan. Credits come from a monthly plan.

Is the Seedance API pay-as-you-go?

No. AI Media Studio sells monthly plans with credits, and API calls draw from them. There is no separate API fee and no per-request billing without a plan.

Is the request asynchronous? Do I poll for the result?

No polling. The POST returns when the clip is finished, with the video URL in the response. Allow up to 600 seconds for a request.

What durations and resolutions does it support?

Clips of 4 to 15 seconds at 480p, 720p or 1080p, in auto, 21:9, 16:9, 4:3, 1:1, 3:4 or 9:16. The default is 5 seconds at 720p.

Does the Seedance 2.0 API generate sound?

Set audio to true for sound, at the same price. It is a single on or off switch; you cannot choose a voice or music through the API.

Can Claude Code or another agent use it?

Yes. Add the hosted MCP server at https://app.ai-media-studio.com/mcp, sign in, and ask for a Seedance 2.0 clip. The agent calls the same endpoint through the generate_video tool and spends the same credits.

Is this ByteDance’s official Seedance API?

No. AI Media Studio is an independent service that runs ByteDance’s Seedance 2.0 for you, next to other video and image models. It is not affiliated with ByteDance.

AI Media Studio is not affiliated with Anthropic, ByteDance, Google or xAI. Claude is a trademark of Anthropic. How we handle your files: privacy policy.