> ## Documentation Index
> Fetch the complete documentation index at: https://www.krea.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ByteDance Seedance API on Krea

> Use ByteDance Seedance 2.5 and 2.0 through the Krea API. Generate video from text or images with REST and JavaScript examples, API keys, and pricing links.

Krea provides API access to ByteDance's Seedance video generation models. Use the Seedance API on Krea to generate videos from text, animate images, or guide generation with image, video, and audio references. Requests use a Krea API token and the `https://api.krea.ai` base URL.

## Available Seedance API models

| Model | POST endpoint | Video duration | Output resolution |
| - | - | - | - |
| Seedance 2.5 | `/generate/video/bytedance/seedance-2-5` | 4–30 seconds | 480p, 720p, 1080p, 4K |
| Seedance 2.0 | `/generate/video/bytedance/seedance-2` | 4–15 seconds | 480p, 720p, 1080p, 4K |
| Seedance 2.0 Fast | `/generate/video/bytedance/seedance-2-fast` | 4–15 seconds | 480p, 720p |
| Seedance 2.0 Mini | `/generate/video/bytedance/seedance-2-mini` | 4–15 seconds | 480p, 720p |

These models support text-to-video, start and end frames, reference media, and native audio. Seedance 2.5 also supports [draft mode](#preview-a-shot-with-draft-mode), a cheap 480p preview you can render at full quality later. See the [API reference](https://www.krea.ai/docs/api-reference/introduction.md) for each model's current request schema. Check [API pricing ↗](https://www.krea.ai/app/api/pricing) before submitting a job; price depends on the model and generation settings.

> [!NOTE]
>
> Krea's Seedance 2.0 and 2.0 Fast endpoints include optional Krea prompt enhancement and upscaling beyond the base model. Seedance 2.5 includes optional Krea prompt enhancement. For Seedance 2.5 video-editing requests with `reference_videos`, the output length and aspect ratio come from the source video; `duration` and `aspect_ratio` are ignored for those requests.

## Get a Seedance API key

Create a Krea API token and add API balance using [API keys and billing](https://www.krea.ai/docs/developers/api-keys-and-billing.md). Store the token in the `KREA_API_KEY` environment variable on your server. Send it as `Authorization: Bearer $KREA_API_KEY`; never expose it in browser code.

Krea app compute and API balance are separate. Seedance requests through the Krea API use your workspace's API balance.

## Generate a video

Submit a prompt to the Seedance 2.5 endpoint for text-to-video generation. These examples request a five-second, 720p landscape video.

```bash cURL theme={"theme":{"light":"github-light-default","dark":"vesper"}}
curl --fail-with-body https://api.krea.ai/generate/video/bytedance/seedance-2-5 \
  -H "Authorization: Bearer $KREA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A slow camera orbit around a ceramic vase in warm studio light",
    "duration": 5,
    "aspect_ratio": "16:9",
    "resolution": "720p"
  }'
```

```javascript JavaScript theme={"theme":{"light":"github-light-default","dark":"vesper"}}
import { Krea } from "@krea-ai/sdk";

const krea = new Krea({ apiKey: process.env.KREA_API_KEY });

const job = await krea.video("bytedance/seedance-2-5", {
  prompt: "A slow camera orbit around a ceramic vase in warm studio light",
  duration: 5,
  aspect_ratio: "16:9",
  resolution: "720p"
});

const completed = await krea.jobs.wait(job.job_id);
console.log(completed.result.urls[0]);
```

Install the JavaScript SDK with `npm install @krea-ai/sdk`. The REST request returns a `job_id`, not the finished video. Poll `GET /jobs/{job_id}` every 2–5 seconds until `status` is `completed`, then read the video URL from `result.urls[0]`. Stop polling on `failed` or `cancelled`. The SDK's `jobs.wait` method handles polling for you.

```bash cURL theme={"theme":{"light":"github-light-default","dark":"vesper"}}
curl --fail-with-body "https://api.krea.ai/jobs/YOUR_JOB_ID" \
  -H "Authorization: Bearer $KREA_API_KEY"
```

For production integrations, use [webhooks](https://www.krea.ai/docs/developers/webhooks.md) to receive completion events. See [job lifecycle](https://www.krea.ai/docs/developers/job-lifecycle.md) and [errors and debugging](https://www.krea.ai/docs/developers/errors-and-debugging.md) for job states and failure handling.

## Animate an image

For Seedance image-to-video generation, use the same endpoint and add `start_image` to your request. Pass a publicly reachable image URL, an uploaded asset URL, or a base64 data URI.

```json theme={"theme":{"light":"github-light-default","dark":"vesper"}}
{
  "prompt": "The camera slowly moves closer as soft light shifts across the scene",
  "start_image": "https://your-domain.example/product.png",
  "duration": 5,
  "aspect_ratio": "16:9",
  "resolution": "720p"
}
```

Replace `start_image` with your own image URL. To control the final frame, add `end_image`. For reference-guided generation, use `reference_images`, `reference_videos`, and `reference_audios` according to the selected model's [API schema](https://www.krea.ai/docs/api-reference/introduction.md).

## Preview a shot with draft mode

Seedance 2.5 draft mode renders a fast 480p preview of your request, billed at the 480p rate. Use it to check composition, motion, and prompt intent before you pay for a full render. When a draft looks right, send its job ID back to the same endpoint. The model then regenerates the same shot at full quality instead of starting a new one.

**1. Generate a draft**

Add `"draft": true` to a normal Seedance 2.5 request. Drafts always render at 480p, so any `resolution` you send with `draft` is ignored.

```bash cURL theme={"theme":{"light":"github-light-default","dark":"vesper"}}
curl --fail-with-body https://api.krea.ai/generate/video/bytedance/seedance-2-5 \
  -H "Authorization: Bearer $KREA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A slow camera orbit around a ceramic vase in warm studio light",
    "duration": 5,
    "aspect_ratio": "16:9",
    "draft": true
  }'
```

Poll the returned `job_id` until its `status` is `completed`, then review the 480p video.

**2. Render the draft at full quality**

Send the draft's job ID as `draft_job_id`. Do this within 7 days of creating the draft; after that, the draft can no longer be rendered and you need to generate a new one.

```bash cURL theme={"theme":{"light":"github-light-default","dark":"vesper"}}
curl --fail-with-body https://api.krea.ai/generate/video/bytedance/seedance-2-5 \
  -H "Authorization: Bearer $KREA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "draft_job_id": "YOUR_DRAFT_JOB_ID"
  }'
```

Send only `draft_job_id`. The full render reuses the draft's prompt, references, seed, duration, and aspect ratio, so you do not send them again; Krea ignores any of them you include. The output is 1080p by default. Add `"resolution": "4k"` to render it in 4K.

The same flow with the JavaScript SDK:

```javascript JavaScript theme={"theme":{"light":"github-light-default","dark":"vesper"}}
import { Krea } from "@krea-ai/sdk";

const krea = new Krea({ apiKey: process.env.KREA_API_KEY });

const draftJob = await krea.video("bytedance/seedance-2-5", {
  prompt: "A slow camera orbit around a ceramic vase in warm studio light",
  duration: 5,
  aspect_ratio: "16:9",
  draft: true
});
const draft = await krea.jobs.wait(draftJob.job_id);
console.log("Draft:", draft.result.urls[0]);

const finalJob = await krea.video("bytedance/seedance-2-5", {
  draft_job_id: draftJob.job_id
});
const final = await krea.jobs.wait(finalJob.job_id);
console.log("Full quality:", final.result.urls[0]);
```

### Draft mode billing

A draft is billed at the 480p rate. The full render is billed as a separate Seedance 2.5 generation at its output resolution, for the draft's duration. If the draft used reference videos, the full render is billed on the tokens ByteDance reports, and those tokens include the length of the draft's reference videos.

Rendering the same draft at the same resolution again returns the existing full-quality job instead of creating and billing a new one.

### Draft mode limits and errors

* Only Seedance 2.5 supports draft mode. Seedance 2.0, 2.0 Fast, and 2.0 Mini do not.
* You can only render your own drafts from the same workspace.
* Do not send `draft: true` and `draft_job_id` in the same request. A draft cannot be rendered from another draft.

| Status | Cause | What to do |
| - | - | - |
| `422` | Validation failed: the request sets both `draft: true` and `draft_job_id`, or sets neither `prompt` nor `draft_job_id`. | Remove `draft` from the full-render request, or add a `prompt`. |
| `404` | No Seedance 2.5 draft job with that ID exists for your account in this workspace. | Check the job ID. It must be the `job_id` of a request sent with `draft: true`. |
| `409` | The draft has not finished yet. | Wait until the draft job is `completed`, then retry. |
| `422` | The draft is older than 7 days, or it cannot be rendered at full quality. | Generate a new draft. |

## Frequently asked questions

### Does Krea offer a ByteDance Seedance API?

Yes. Krea offers ByteDance Seedance 2.5, Seedance 2.0, Seedance 2.0 Fast, and Seedance 2.0 Mini through its REST API at `https://api.krea.ai`. Authenticate with a Krea API token and submit a request to a Seedance endpoint listed above.

### Can I use Seedance for both text-to-video and image-to-video?

Yes. Send a `prompt` for text-to-video, or add `start_image` to animate an image. Both workflows use the same Seedance model endpoint and return an asynchronous job.

### Can I preview a Seedance video before paying for full quality?

Yes, with Seedance 2.5. Send `"draft": true` to get a 480p preview at the 480p rate. If you like it, send the draft's job ID as `draft_job_id` within 7 days to render the same shot at 1080p. See [draft mode](#preview-a-shot-with-draft-mode).

### Do I need a separate ByteDance API key?

No. Calls to Seedance through Krea use your Krea API token and workspace API balance. You do not need to send a separate ByteDance credential with these requests.

### How much does the Seedance API cost on Krea?

See [Krea API pricing ↗](https://www.krea.ai/app/api/pricing) for current Seedance prices and available settings. API usage is billed separately from Krea app compute. Failed and cancelled jobs are not billed.

### Can I call Seedance from an AI agent?

Yes. Connect an agent to the [Krea MCP server](https://www.krea.ai/docs/developers/mcp.md) to discover available video models and their schemas. You can also call the REST API or JavaScript SDK directly from your application.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.