# Seedance 2.5 > Generate videos from text, images, video, and audio references, with clips up to 30 seconds. Animate images, edit or extend existing footage, and generate audio alongside your video. ## Overview - **Endpoint**: `https://api.higgsfield.ai/bytedance/seedance-2.5/video-edit` - **Model ID**: `bytedance/seedance-2.5/video-edit` - **Category**: video2video - **Kind**: inference - **Tags**: trending, partners, commercial_use ## Pricing Standard self-serve rates in USD per video second: 480p: $0.1387; 720p: $0.3264; 1080p: $0.7858. The edited video duration is determined from the primary input video and rounded up to a whole second. Total price = selected rate × that duration in seconds; input duration is not added again. ## Authentication Keep credentials in server-side environment variables. The SDKs accept the same `KEY_ID:KEY_SECRET` value under their documented variable names. ```bash export HF_CREDENTIALS="YOUR_KEY_ID:YOUR_KEY_SECRET" # TypeScript export HF_KEY="YOUR_KEY_ID:YOUR_KEY_SECRET" # Python and cURL ``` The official SDKs configure the authorization header. Keep credentials server-side; the TypeScript SDK blocks browser use. ## API Information Use `subscribe` to submit the model request and wait for a terminal result. TypeScript performs automatic polling with `withPolling: true`; Python's synchronous `subscribe` call also waits. ### Input Parameters - **`draft`** (`boolean`, _optional_): Generate a 480p MP4 draft with standard bitrate for later finalization. - Default: `false` - **`prompt`** (`string`, _required_): Write your prompt here - **`video_url`** (`string`, _required_): - **`audio_urls`** (`list`, _optional_): - **`image_urls`** (`list`, _optional_): - **`resolution`** (`string`, _optional_): - Default: `"720p"` - Options: `480p`, `720p`, `1080p` - **`video_urls`** (`list`, _optional_): - **`bitrate_mode`** (`string`, _optional_): - Default: `"high"` - Options: `standard`, `high` - **`generate_audio`** (`boolean`, _optional_): - Default: `true` ### Input JSON Schema ```json { "type": "object", "required": [ "prompt", "video_url" ], "properties": { "draft": { "type": "boolean", "default": false, "description": "Generate a 480p MP4 draft with standard bitrate for later finalization." }, "prompt": { "type": "string", "minLength": 1, "description": "Write your prompt here" }, "video_url": { "type": "string", "format": "uri" }, "audio_urls": { "type": "array", "items": { "type": "string", "format": "uri" }, "maxItems": 10, "minItems": 1 }, "image_urls": { "type": "array", "items": { "type": "string", "format": "uri" }, "maxItems": 30, "minItems": 1 }, "resolution": { "enum": [ "480p", "720p", "1080p" ], "type": "string", "default": "720p" }, "video_urls": { "type": "array", "items": { "type": "string", "format": "uri" }, "maxItems": 10, "minItems": 1 }, "bitrate_mode": { "enum": [ "standard", "high" ], "type": "string", "default": "high" }, "generate_audio": { "type": "boolean", "default": true } }, "additionalProperties": false } ``` ### Required Parameters Example ```json { "draft": false, "prompt": "A cinematic scene at sunset", "video_url": "https://example.com/input.mp4", "resolution": "720p", "bitrate_mode": "high", "generate_audio": true } ``` ### Output Schema The shared polling endpoint returns one of the following status shapes: ```json { "title": "RequestStatus", "oneOf": [ { "title": "PendingRequestStatus", "type": "object", "properties": { "request_id": { "type": "string", "format": "uuid" }, "status_url": { "type": "string", "format": "uri" }, "cancel_url": { "type": "string", "format": "uri" }, "status": { "type": "string", "enum": [ "queued", "in_progress", "nsfw", "canceled" ] } }, "required": [ "status", "request_id" ] }, { "title": "FailedRequestStatus", "type": "object", "properties": { "request_id": { "type": "string", "format": "uuid" }, "status_url": { "type": "string", "format": "uri" }, "cancel_url": { "type": "string", "format": "uri" }, "status": { "type": "string", "const": "failed" }, "error": { "type": "string" } }, "required": [ "status", "request_id", "error" ] }, { "title": "CompletedRequestStatus", "type": "object", "properties": { "request_id": { "type": "string", "format": "uuid" }, "status_url": { "type": "string", "format": "uri" }, "cancel_url": { "type": "string", "format": "uri" }, "status": { "type": "string", "const": "completed" }, "video": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" } }, "required": [ "url" ] }, "zip": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" } }, "required": [ "url" ] }, "mov": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" } }, "required": [ "url" ] }, "jsx": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" } }, "required": [ "url" ] }, "fbx": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" } }, "required": [ "url" ] }, "ply": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" } }, "required": [ "url" ] } }, "required": [ "status", "request_id", "video" ] } ] } ``` ## SDK Installation Install one of the official server-side SDKs: ```bash npm install @higgsfield/client # or pip install higgsfield-client ``` ## Usage Examples ### TypeScript ```typescript import { config, higgsfield } from "@higgsfield/client/v2"; config({ credentials: process.env.HF_CREDENTIALS, }); const result = await higgsfield.subscribe( "bytedance/seedance-2.5/video-edit", { input: { "draft": false, "prompt": "A cinematic scene at sunset", "video_url": "https://example.com/input.mp4", "resolution": "720p", "bitrate_mode": "high", "generate_audio": true }, withPolling: true, }, ); console.log(result); ``` ### Python ```python import higgsfield_client result = higgsfield_client.subscribe( 'bytedance/seedance-2.5/video-edit', arguments={'draft': False, 'prompt': 'A cinematic scene at sunset', 'video_url': 'https://example.com/input.mp4', 'resolution': '720p', 'bitrate_mode': 'high', 'generate_audio': True}, ) print(result) ``` ### cURL ```bash curl --request POST \ --url 'https://api.higgsfield.ai/bytedance/seedance-2.5/video-edit' \ --header "Authorization: Key $HF_KEY" \ --header "Content-Type: application/json" \ --data @- <<'JSON' { "draft": false, "prompt": "A cinematic scene at sunset", "video_url": "https://example.com/input.mp4", "resolution": "720p", "bitrate_mode": "high", "generate_audio": true } JSON ``` ## Additional Documentation # About **Seedance 2.5** uses the model ID `bytedance/seedance-2.5/video-edit`. Seedance 2.5 Video Edit enables video-to-video transformation by editing existing videos with prompts and optional audio, image, or additional video inputs. It supports output customization including resolution and format, with optional audio generation. ## 1. Calling the API Send requests to `https://api.higgsfield.ai/bytedance/seedance-2.5/video-edit` with a JSON body matching the parameters below. ### Install Install an official server-side SDK. cURL needs no package. ```bash control=package group=install-typescript variant=npm label=npm when=javascript npm install @higgsfield/client ``` ```bash control=package group=install-python variant=pip label=pip when=python pip install higgsfield-client ``` ### Setup Keep credentials in server-side environment variables. The SDKs accept the same `KEY_ID:KEY_SECRET` value under their documented variable names. ```bash export HF_CREDENTIALS="YOUR_KEY_ID:YOUR_KEY_SECRET" # TypeScript export HF_KEY="YOUR_KEY_ID:YOUR_KEY_SECRET" # Python and cURL ``` ### Request parameters | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `prompt` | `string` | Yes | `—` | Minimum length: 1. | | `video_url` | `string` | Yes | `—` | | | `audio_urls` | `array[string]` | No | `—` | | | `image_urls` | `array[string]` | No | `—` | | | `resolution` | `string` | No | `"720p"` | Options: 480p, 720p, 1080p. | | `video_urls` | `array[string]` | No | `—` | | | `output_format` | `string` | No | `"mp4"` | Options: mp4, mov. | | `generate_audio` | `boolean` | No | `true` | | | `draft` | `boolean` | No | `false` | Create a 480p MP4 preview with standard bitrate for later 1080p finalization. See the draft workflow below. | ## 2. Authentication The official SDKs read credentials from the server environment and send the required `Authorization: Key KEY_ID:KEY_SECRET` header. ### API Key Never expose the secret in browser-side code or commit it to source control. The TypeScript SDK is server-side only. For direct HTTP calls, use: ```http Authorization: Key $HF_KEY ``` ## 3. Queue `subscribe` submits the asynchronous request and waits for a terminal result. The TypeScript SDK polls automatically when `withPolling: true`; the Python SDK's synchronous `subscribe` call also waits. A completed request returns the generated file in the `video` field. ### Submit and wait ```ts control=language group=submit variant=javascript label=TypeScript import { config, higgsfield } from "@higgsfield/client/v2"; config({ credentials: process.env.HF_CREDENTIALS, }); const result = await higgsfield.subscribe( "bytedance/seedance-2.5/video-edit", { input: { "prompt": "A cinematic scene at sunset", "video_url": "https://example.com/input.mp4", "resolution": "720p", "output_format": "mp4", "generate_audio": true }, withPolling: true, }, ); console.log(result); ``` ```python control=language group=submit variant=python label=Python import higgsfield_client result = higgsfield_client.subscribe( 'bytedance/seedance-2.5/video-edit', arguments={'prompt': 'A cinematic scene at sunset', 'video_url': 'https://example.com/input.mp4', 'resolution': '720p', 'output_format': 'mp4', 'generate_audio': True}, ) print(result) ``` ```bash control=language group=submit variant=curl label=cURL curl --request POST \ --url 'https://api.higgsfield.ai/bytedance/seedance-2.5/video-edit' \ --header "Authorization: Key $HF_KEY" \ --header "Content-Type: application/json" \ --data @- <<'JSON' { "prompt": "A cinematic scene at sunset", "video_url": "https://example.com/input.mp4", "resolution": "720p", "output_format": "mp4", "generate_audio": true } JSON ``` ### Explicit lifecycle control Use the Python SDK when a worker needs explicit status, result, or cancellation control for an existing request. The TypeScript v2 client currently exposes automatic polling through `subscribe`. ```python import higgsfield_client request_id = "{request_id}" status = higgsfield_client.status(request_id=request_id) result = higgsfield_client.result(request_id=request_id) higgsfield_client.cancel(request_id=request_id) ``` ## 4. Draft previews and finalization Create a preview, review it, and finalize the selected draft at 1080p using `bytedance/seedance-2.5/finalize-draft`. ### 1. Create a draft Send the usual inputs for your generation endpoint with `draft: true`. Omitting `draft` or setting it to `false` keeps regular generation behavior. Draft mode forces **480p, MP4, and standard bitrate**, even if the request selects another supported resolution, format, or bitrate. ```bash curl --request POST \ --url 'https://api.higgsfield.ai/bytedance/seedance-2.5/video-edit' \ --header "Authorization: Key $HF_KEY" \ --header "Content-Type: application/json" \ --data @- <<'JSON' { "prompt": "Change the scene to a snowy landscape", "video_url": "https://example.com/input.mp4", "draft": true } JSON ``` Replace example media URLs with your own accessible media URLs. Save the `request_id` from the POST response. This is the public request ID (JobSet ID) that you will pass as `draft_id`; do not use a video URL, an internal job ID, or a provider task ID. ### 2. Wait for the draft and review it Poll the returned `status_url` with the same authorization header, or use the status endpoint directly: ```bash DRAFT_REQUEST_ID="REPLACE_WITH_DRAFT_REQUEST_ID" curl --request GET \ --url "https://api.higgsfield.ai/requests/${DRAFT_REQUEST_ID}/status" \ --header "Authorization: Key $HF_KEY" ``` Wait until `status` is `completed`, then review the preview at `video.url` in the status response. Do not finalize a request that is queued, in progress, failed, canceled, or blocked by moderation. ### 3. Finalize at 1080p Submit a new request to `bytedance/seedance-2.5/finalize-draft`. Replace the example UUID below with the draft's saved `request_id`: ```bash curl --request POST \ --url 'https://api.higgsfield.ai/bytedance/seedance-2.5/finalize-draft' \ --header "Authorization: Key $HF_KEY" \ --header "Content-Type: application/json" \ --data @- <<'JSON' { "draft_id": "00000000-0000-4000-8000-000000000001", "resolution": "1080p" } JSON ``` The response contains a **new** `request_id` and `status_url` for finalization. Poll that new status URL until `status` is `completed`; its `video.url` is the final video. Keep the draft and finalization request IDs separate. ### Pricing Draft generation and finalization are separate paid requests. Each is billed per **output second** at its own resolution. Finalization uses the duration and video-input pricing tier saved with the draft and applies the 1080p rate; it does not reuse the draft's charge. The draft charge is not deducted from the finalization charge. | Input type | 480p draft, USD / output second | 1080p finalization, USD / output second | | --- | --- | --- | | Without video input (text, images, or audio only) | $0.1177 | $0.6518 | | With video input | $0.1387 | $0.7858 | These are standard self-serve rates. Total cost for a draft followed by one finalization is `output seconds × (draft rate + finalization rate)`. If you stop after viewing the draft, only the draft request is charged. Input-video seconds are not added to the billing multiplier. For video edit, output duration is derived from the primary input video; for video extend, the billed duration is the requested extension. ### Requirements and limits - Use a completed draft created with `draft: true` on one of the five `bytedance/seedance-2.5/` generation endpoints listed below. A regular generation cannot be finalized as a draft. - The draft must belong to the same account as the finalization request and contain a single video job. - Finalize within seven days of draft creation and before the request's retention expires. A shorter account retention or `Hf-Expires-After` setting can shorten this window. If the status response includes `expires_at`, respect that timestamp as well as the seven-day limit. Deleted or purged drafts cannot be finalized. - Only `1080p` is supported for finalization. It is also the default when `resolution` is omitted. - Finalization accepts `draft_id` and `resolution`. Prompt, media inputs, audio settings, aspect ratio, and duration come from the original draft. To change those inputs, create a new draft. - Draft creation and finalization use TTUS. You do not need to select a provider or send a provider task ID. ### Supported draft endpoints - `bytedance/seedance-2.5/text-to-video` - `bytedance/seedance-2.5/image-to-video` - `bytedance/seedance-2.5/reference-to-video` - `bytedance/seedance-2.5/video-edit` - `bytedance/seedance-2.5/video-extend` ## Additional Resources - [Model page](https://console.higgsfield.ai/models/bytedance/seedance-2.5/video-edit) - [This LLM-readable document](https://dash.higgsfield.ai/models/bytedance/seedance-2.5/video-edit/llms.txt?fpr=naomi-82f646)