# Seedance 2.5 Flash Video Edit

> Edit an existing 4–30 s video clip with Seedance 2.5 Flash on the Kinovi API at 480p or 720p while keeping the source motion, length, and aspect ratio.

Source: https://kinovi.ai/docs/models/seedance2-5-flash-edit

- Model ID: `seedance2-5-flash-edit`
- Type: Video
- Provider: ByteDance
- From: $0.0409 / s
- Model page: https://kinovi.ai/models/seedance2-5-flash-edit
- Playground: https://kinovi.ai/app/gallery?model=seedance2-5-flash-edit

## Quickstart

Two calls: submit a task with `createTask`, then poll `recordInfo` with the returned `taskId` until `status` is `success` or `fail`.

Every request carries `Authorization: Bearer <yourApiKey>`. Create and manage keys at [kinovi.ai/api-keys](https://kinovi.ai/api-keys); see the [API reference](https://kinovi.ai/docs/api) for rate limits and error codes.

### Submit a task

`POST https://kinovi.ai/api/v1/jobs/createTask`

```json
{
  "model": "seedance2-5-flash-edit",
  "inputs": {
    "prompt": "Keep the same hand, movements, and camera framing, but change the sweater to deep burgundy and the background to a warm sunlit café.",
    "videoUrls": [
      "https://static.kinovi.ai/videos/seedance_video_1775631198994_17cd129c.mp4"
    ],
    "outputResolution": "720p"
  }
}
```

Response `200 OK` — the task is queued and credits are reserved. Use `taskId` to poll for the result.

```json
{
  "taskId": "task_01j9exampleflashedit01"
}
```

#### Error responses

| HTTP | Body | When |
|:--|:--|:--|
| `400` | `{ "message": "Invalid inputs for model", "errors": [ … ] }` | Missing `videoUrls`, `mode: "keyframe"`, `omni_reference_task_type` set to anything other than `"edit"` / `"auto"`, or `outputResolution` outside `480p` / `720p`. Nothing is charged. |
| `401` | `{ "message": "Invalid API Key" }` | Missing or wrong `Authorization` header. |
| `402` | `{ "message": "Insufficient credits", "required": 395, "available": 0 }` | Not enough credits for the precharge. |
| `429` | `{ "message": "Concurrency limit reached (…)", "limit": 5, "current": 5 }` | Too many tasks in progress; wait for one to finish. |

### Query the result

`GET https://kinovi.ai/api/v1/jobs/recordInfo?taskId=task_…`

Poll every few seconds until `status` is `success` or `fail`.

| `status` | Meaning |
|:--|:--|
| `waiting` | Queued, not started yet |
| `generating` | Running |
| `success` | Done — read `output[].url` |
| `fail` | Failed — see `error.code` / `error.message`; credits are refunded |

## Parameters

Send these inside the `createTask` body. `model`, `inputs.prompt`, and `inputs.videoUrls` are required; everything else falls back to the default shown.

Reference media fields take any publicly reachable URL — host the files yourself, or upload them to Kinovi first with `POST /api/v1/uploads` and pass the returned `url` (see [Uploading Assets](https://kinovi.ai/docs/uploads)).

| Field | Type | Default | Description |
|:--|:--|:--|:--|
| `model` | `string` | **required** | Must be `"seedance2-5-flash-edit"`. |
| `inputs.prompt` | `string` | **required** | Describe what to change and what to keep, in any language. Max **30,000** characters. |
| `inputs.videoUrls` | `string[]` | **required** | At least 1 video URL (`.mp4` / `.mov` / `.webm`, **4–30 s**). Up to **5** videos, **30.2 s** combined. The first video is edited. Your own hosted URLs or [Kinovi uploads](https://kinovi.ai/docs/uploads). |
| `inputs.imageUrls` | `string[]` | – | Up to **10** reference image URLs (`.jpg` / `.png` / `.webp`) for the new subject, outfit, or style. Do not send `imageUrl` or `uploadedUrls`. Your own hosted URLs or [Kinovi uploads](https://kinovi.ai/docs/uploads). |
| `inputs.audioUrls` | `string[]` | – | Up to **5** audio reference URLs, **30.2 s** combined. Your own hosted URLs or [Kinovi uploads](https://kinovi.ai/docs/uploads). |
| `inputs.outputResolution` | `string` | `720p` | `480p` · `720p`. |
| `inputs.generate_audio` | `boolean` | `true` | Generate a synced audio track. Set `false` for a silent video. |
| `inputs.bitrate_mode` | `string` | – | Set to `"high"` for a higher-bitrate encode; omit for standard bitrate. |
| `inputs.output_format` | `string` | `mp4` | `mp4` · `mov`. |
| `inputs.seed` | `integer` | random | Optional seed. |
| `inputs.enable_safety_checker` | `boolean` | `true` | Optional safety checker toggle. |
| `callBackUrl` | `string` | – | Optional webhook called when the task finishes. |

`inputs.duration` does not need to be sent — the edited video matches the source clip's length and aspect ratio. `inputs.mode` must not be `"keyframe"`.

### Full request

```json
{
  "model": "seedance2-5-flash-edit",
  "inputs": {
    "prompt": "Keep the same hand and camera motion, change the sweater to deep burgundy and add warm golden-hour lighting.",
    "videoUrls": [
      "https://static.kinovi.ai/videos/seedance_video_1775631198994_17cd129c.mp4"
    ],
    "imageUrls": [],
    "audioUrls": [],
    "outputResolution": "720p",
    "generate_audio": true,
    "bitrate_mode": "high",
    "output_format": "mp4",
    "seed": -1
  },
  "callBackUrl": "https://example.com/hooks/kinovi"
}
```

## Pricing

Priced **per second** at the Flash reference-video rate, billed for both input footage (capped at 30.2 s) and output footage. Live prices: [kinovi.ai/models/seedance2-5-flash-edit](https://kinovi.ai/models/seedance2-5-flash-edit).

| | 480p | 720p |
|:--|--:|--:|
| **per billable second** | $0.0409 / s | $0.0917 / s |

Because edited output matches source duration, a 10 s edit bills roughly 20 billable seconds (10 s input + 10 s output). Credits are precharged at submit and settled to actual input + output duration on success. Failed tasks are refunded in full.

## Response

### Result fields

**JSON**

```json
{
  "taskId": "task_01j9exampleflashedit01",
  "model": "seedance2-5-flash-edit",
  "status": "success",
  "creditsUsed": 395.2,
  "output": [
    {
      "url": "https://static.kinovi.ai/videos/seedance_flash_edit_example.mp4",
      "width": 1280,
      "height": 720,
      "mediaType": "video/mp4"
    }
  ],
  "error": null,
  "createTime": 1790090613532,
  "completeTime": 1790090812400
}
```

**Table**

| Field | Type | Description |
|:--|:--|:--|
| `taskId` | `string` | The task id returned by `createTask`. |
| `model` | `string` | `"seedance2-5-flash-edit"`. |
| `status` | `string` | `waiting` · `generating` · `success` · `fail`. Stop polling on `success` or `fail`. |
| `creditsUsed` | `number` | Credits actually charged. Refunded automatically when `status` is `fail`. |
| `output` | `object[]` | Generated assets; empty until `success`. Stored by Kinovi for 7 days after generation. |
| `output[0].url` | `string` | The edited video (`.mp4` or `.mov`). |
| `output[0].width` | `integer` | Pixel width. |
| `output[0].height` | `integer` | Pixel height. |
| `output[0].mediaType` | `string` | `video/mp4`, or `video/quicktime` for `mov`. |
| `error` | `object \| null` | `{ code, message }` when the task failed, otherwise `null`. |
| `createTime` | `number` | Unix epoch milliseconds when the task was accepted. |
| `completeTime` | `number \| null` | Unix epoch milliseconds when the task reached a terminal status. |

## Examples

### Video edit

**cURL**

```bash
curl -sS -X POST "https://kinovi.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $KINOVI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedance2-5-flash-edit",
    "inputs": {
      "prompt": "Keep the same motion and camera framing, but restyle the scene as a crisp watercolor animation.",
      "videoUrls": ["https://static.kinovi.ai/videos/seedance_video_1775631198994_17cd129c.mp4"],
      "outputResolution": "720p"
    }
  }'
```

**Node.js**

```ts
const API_BASE = "https://kinovi.ai/api/v1";
const headers = {
  Authorization: `Bearer ${process.env.KINOVI_API_KEY}`,
  "Content-Type": "application/json",
};

const { taskId } = await fetch(`${API_BASE}/jobs/createTask`, {
  method: "POST",
  headers,
  body: JSON.stringify({
    model: "seedance2-5-flash-edit",
    inputs: {
      prompt: "Keep the same motion and camera framing, but restyle the scene as a crisp watercolor animation.",
      videoUrls: ["https://static.kinovi.ai/videos/seedance_video_1775631198994_17cd129c.mp4"],
      outputResolution: "720p",
    },
  }),
}).then((r) => r.json());

while (true) {
  const info = await fetch(`${API_BASE}/jobs/recordInfo?taskId=${encodeURIComponent(taskId)}`, { headers }).then((r) =>
    r.json(),
  );
  if (info.status === "success") {
    console.log(info.output[0].url);
    break;
  }
  if (info.status === "fail") throw new Error(JSON.stringify(info.error));
  await new Promise((r) => setTimeout(r, 3000));
}
```

**Python**

```python
import json, os, time, urllib.request

API_BASE = "https://kinovi.ai/api/v1"
HEADERS = {
    "Authorization": f"Bearer {os.environ['KINOVI_API_KEY']}",
    "Content-Type": "application/json",
}

payload = {
    "model": "seedance2-5-flash-edit",
    "inputs": {
        "prompt": "Keep the same motion and camera framing, but restyle the scene as a crisp watercolor animation.",
        "videoUrls": ["https://static.kinovi.ai/videos/seedance_video_1775631198994_17cd129c.mp4"],
        "outputResolution": "720p",
    },
}

req = urllib.request.Request(f"{API_BASE}/jobs/createTask", data=json.dumps(payload).encode(), headers=HEADERS)
task_id = json.load(urllib.request.urlopen(req))["taskId"]

while True:
    info = json.load(urllib.request.urlopen(urllib.request.Request(f"{API_BASE}/jobs/recordInfo?taskId={task_id}", headers=HEADERS)))
    if info["status"] == "success":
        print(info["output"][0]["url"])
        break
    if info["status"] == "fail":
        raise RuntimeError(info["error"])
    time.sleep(3)
```

## FAQ

### Why is `duration` not required for `seedance2-5-flash-edit`?

The edit face outputs a clip matching the source video's duration and aspect ratio.

### Can I pass reference images along with the source video?

Yes — pass up to **10** URLs in `inputs.imageUrls` to guide clothing, subject, or visual style changes while keeping the motion from `inputs.videoUrls[0]`.

### When should I use `seedance2-5-edit` instead of `seedance2-5-flash-edit`?

Use [`seedance2-5-edit`](https://kinovi.ai/docs/models/seedance2-5-edit) when you need `1080p` output, 4K draft upgrades, or more than 10 reference images.

## Related models

- [Seedance 2.5 Flash](https://kinovi.ai/docs/models/seedance2-5-flash): Text, keyframe, and multimodal reference video generation on Seedance 2.5 Flash.
- [Seedance 2.5 Flash Video Extend](https://kinovi.ai/docs/models/seedance2-5-flash-extend): Continue an existing clip with 4–30 seconds of new footage on Seedance 2.5 Flash.
- [Seedance 2.5 Video Edit](https://kinovi.ai/docs/models/seedance2-5-edit): Full Seedance 2.5 Video Edit with 1080p output and up to 30 reference images.
