Seedance 2.5 Edit API
Edit video with a prompt: swap subjects, objects, audio.
POST /v2/seedance-2.5-edit · submit + poll 1# pip install "segmind>=1.1.0"
2# export SEGMIND_API_KEY="YOUR_API_KEY"
3from segmind import SegmindClient, InferenceFailed, InferenceTimeout
4
5# Async (v2) — recommended for long-running / video models.
6# run() blocks up to 600s; submit_async + job.wait(timeout=...) sets a longer
7# deadline and keeps the request_id so you can re-poll later.
8client = SegmindClient() # reads SEGMIND_API_KEY
9payload = {
10 "video": "https://segmind-resources.s3.amazonaws.com/input/seedance-2.5-edit-source-739a4cc6.mp4",
11 "prompt": "Replace the tin toy robot in @Video 1 with a soft plush teddy bear of the same size, keeping its exact marching motion, the workshop bench, the colourful building blocks and the lighting unchanged.",
12 "resolution": "720p",
13 "generate_audio": True,
14}
15job = client.submit_async("seedance-2.5-edit", **payload)
16print(job.request_id) # available immediately
17try:
18 result = job.wait(timeout=900, interval=2.0)
19 print(result["status"]) # COMPLETED
20 print(result.get("output")) # model output (e.g. video URL)
21except InferenceTimeout as e:
22 print("still running:", e.request_id) # re-poll later with this id
23except InferenceFailed as e:
24 print("failed:", e.detail)
25
26# Fast models (<=600s) can use the one-liner instead:
27# result = segmind.run("seedance-2.5-edit", **payload) 1# pip install "segmind>=1.1.0"
2# export SEGMIND_API_KEY="YOUR_API_KEY"
3from segmind import SegmindClient, InferenceFailed, InferenceTimeout
4
5# Async (v2) — recommended for long-running / video models.
6# run() blocks up to 600s; submit_async + job.wait(timeout=...) sets a longer
7# deadline and keeps the request_id so you can re-poll later.
8client = SegmindClient() # reads SEGMIND_API_KEY
9payload = {
10 "video": "https://segmind-resources.s3.amazonaws.com/input/seedance-2.5-edit-source-739a4cc6.mp4",
11 "prompt": "Replace the tin toy robot in @Video 1 with a soft plush teddy bear of the same size, keeping its exact marching motion, the workshop bench, the colourful building blocks and the lighting unchanged.",
12 "resolution": "720p",
13 "generate_audio": True,
14}
15job = client.submit_async("seedance-2.5-edit", **payload)
16print(job.request_id) # available immediately
17try:
18 result = job.wait(timeout=900, interval=2.0)
19 print(result["status"]) # COMPLETED
20 print(result.get("output")) # model output (e.g. video URL)
21except InferenceTimeout as e:
22 print("still running:", e.request_id) # re-poll later with this id
23except InferenceFailed as e:
24 print("failed:", e.detail)
25
26# Fast models (<=600s) can use the one-liner instead:
27# result = segmind.run("seedance-2.5-edit", **payload)API Endpoint
https://api.segmind.com/v1/seedance-2.5-editParameters
promptrequiredstringWhat to change in @Video 1: add, remove, replace or change something, or edit the audio. Everything you do not mention stays as it is. Cite extra references as '@Image 1', '@Audio 1'. If the prompt names no edit, 'Edit @Video 1:' is prepended.
videorequiredstring (uri)The clip to edit (@Video 1): 4-30 seconds, mp4 or mov, 480p-4k, up to 200MB. The output keeps its aspect ratio and length. Real human faces are blocked by the provider's content policy.
auto_resizeoptionalbooleanAutomatically resizes an input image that falls outside the provider's accepted range (300-6000px per side, aspect ratio 0.4-2.5, 30MB) so the request succeeds instead of being rejected. Aspect ratio is preserved: oversized images are downscaled, undersized ones upscaled, and out-of-band ratios padded rather than cropped. On by default - set it to false to have the provider reject out-of-range images instead. When a resize happens the response carries an X-Input-Normalized header naming the field and the before/after dimensions.
truebitrate_modeoptionalstringOutput video encoding bitrate. 'standard' gives smaller files and faster downloads; 'high' produces ~5-6x higher bitrate for better visual fidelity and fewer compression artifacts (larger files). Does not affect price.
"standard""standard""high"generate_audiooptionalbooleantrue keeps the clip's soundtrack (a silent clip gets generated sound; an audio edit in the prompt changes it). false delivers the video with no audio track at all, not the original audio.
trueoutput_codecoptionalstringCodec of the delivered file. 'auto' returns the model's own encode untouched - for seedance-2.5 at 1080p that is 10-bit HEVC, the highest-fidelity master, which Chrome and Firefox on Windows cannot decode and will play as audio over a blank frame. 'h264' re-encodes it to H.264 High 8-bit yuv420p, which plays everywhere, at the cost of one additional generation of compression and half the bit depth; pick it for browser embeds and previews, and leave it on 'auto' when the file goes into an edit or grade. Output that is already H.264 (720p, 480p, the 2.0 series) is never re-encoded either way. Adds a few seconds when it applies, and does not affect price.
"auto""auto""h264"output_formatoptionalstringmp4 = best compatibility. mov (H.264 + yuv444p + PCM) = higher color fidelity; recommended for video editing/extension round-trips.
"mp4""mp4""mov"reference_audiosoptionalstring[]Up to 10 reference audio files (MP3, 2-30 seconds each, 30 seconds combined, max 15MB each). Cite as '@Audio 1' in your prompt. Audio-only reference is supported on seedance-2.5.
reference_imagesoptionalstring[]Up to 30 reference images (max 30MB each) for character/style consistency. Cite as '@Image 1', '@Image 2' in your prompt. Cannot be used together with first_frame_url.
resolutionoptionalstringOutput resolution. seedance-2.5 supports 480p, 720p and 1080p (24fps). Use 480p for drafts and fast iteration, 720p for final renders, 1080p for the highest fidelity (10-bit colour). Higher resolution costs more (token-based).
"720p""480p""720p""1080p"return_last_frameoptionalbooleanReturns the final video frame as a separate image, delivered in the response as `video.last_frame_url`. Chain shots by feeding that URL into the next generation's `first_frame_url`. Note this is an output: it is distinct from the `last_frame_url` input parameter, which is an image you supply to steer how the clip ends.
falseseedoptionalintegerReproducibility seed. Use -1 for random output, set a fixed value to iterate on the same scene.
42Range: -1 - 2147483647skip_moderationoptionalbooleanBypass the upstream content moderation pre-filter. Useful when generating artistic content or faces that may trigger false positives. Baseline safety policies still apply.
trueResponse Type
Returns: Video
Asynchronous requests (v2)
Use Async for video, long-running (>~60s), or high-concurrency workloads; Sync is simplest for fast image & LLM calls. Async submits a request and you poll it to completion.
- 1
POST /v2/seedance-2.5-editSubmit — returns request_id, status_url, response_url
- 2
GET /v2/requests/{id}/statusPoll — until COMPLETED or FAILED
- 3
GET /v2/requests/{id}Result — final response body
Status states
- A FAILED request is served as HTTP 422 — the body still carries the error detail.
- An unknown or expired request_id returns HTTP 404.
- Results are retained for 1 hour, then expire.
- Content / RAI blocks surface as FAILED, not a separate state.
- Track completion by polling the status endpoint.
Common Error Codes
The API returns standard HTTP status codes. Detailed error messages are provided in the response body.
Bad Request
Invalid parameters or request format
Unauthorized
Missing or invalid API key
Forbidden
Insufficient permissions
Not Found
Model or endpoint not found
Insufficient Credits
Not enough credits to process request
Rate Limited
Too many requests
Server Error
Internal server error
Bad Gateway
Service temporarily unavailable
Timeout
Request timed out