by runeBl4z3
Python SDK for Seedance and Flash: text/image-to-video, references, edit, extend, native 4K
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
# Add to your Claude Code skills
git clone https://github.com/runeBl4z3/seedance-2-5-api-sdkGuides for using mcp servers skills like seedance-2-5-api-sdk.
See how seedance-2-5-api-sdk compares with popular alternatives.

The Seedance API SDK is a Python client for ByteDance's Seedance and Flash video models, exposing text-to-video, image-to-video, reference, edit, and extend routes through a single submit-and-poll interface. It covers the full route matrix, including the Spicy family of relaxed-moderation routes, so you select a variant by flag rather than rewriting request logic. Outputs reach native 4K across clips up to 30 seconds, with per-route resolution tiers and reproducible seeds. Construct one client, call the workflow method, and poll the returned request ID for the result.
Native 4K and 30-second clips: Request resolution="4k" and duration=30 directly on T2V, I2V, reference, edit, and extend routes; 1080p and 4K tiers are served as separate upscaled routes above the 720p base render.
text_to_video(), image_to_video(), first_last_frame(), omni_reference(), video_edit(), and video_extend() share argument shapes, so switching workflow is a method change, not a payload rewrite.spicy=True (or target a -spicy- slug) to use the reduced-filtering route family for T2V, I2V, references, edit, and extend. Reduced filtering, not unrestricted output — provider terms still apply.omni_reference() accepts up to 30 images, 10 videos, and 10 audio clips in a single request via images_list, videos_list, and audios_list.first_last_frame() takes exactly two URLs in images_list (start, end) and interpolates a continuous camera move between them.video_edit() accepts a source video plus optional reference_images/reference_audios and a generate_audio flag; video_extend() continues from the source's final frame with an optional last_image target.-480p / -1080p / -4k convention over the 720p base, exposed through a resolution kwarg so tier selection never touches the prompt or media arguments.seed to any generation call to keep repeated runs in the same neighborhood for A/B prompt iteration.upload_file(path) returns a hosted URL usable anywhere a image_url, video, or reference list entry is expected.request_id; wait_for_completion(request_id) blocks with configurable poll_interval and timeout, and the raw result object carries status, output, and error.16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21 accepted uniformly across all routes.flash_text_to_video(), flash_image_to_video(), and the remaining Flash methods mirror the flagship signatures with intl=True and spicy=True flags, capping at 720p for faster turnaround.from seedance_api import SeedanceAPI
api = SeedanceAPI() # reads SEEDANCE_API_KEY from env
# Text-to-video on the standard route
job = api.text_to_video(
prompt="A slow dolly through a rain-slicked alley, neon signs reflecting in puddles",
aspect_ratio="16:9",
duration=5,
seed=42,
)
result = api.wait_for_completion(job["request_id"])
print(result["output"]["video"])
The client exposes one method per workflow. text_to_video, image_to_video, first_last_frame, omni_reference, video_edit, and video_extend all accept the same keyword set: aspect_ratio, duration, seed, plus resolution ("480p", "720p", "1080p", "4k"). Variant selection is a flag, not a separate method:
# International route
api.image_to_video(prompt, image_url="...", intl=True, duration=8)
# Relaxed-moderation route
api.image_to_video(prompt, image_url="...", spicy=True, resolution="720p")
Every call returns a dict with a request_id. Poll it with wait_for_completion (blocking, with poll_interval and timeout kwargs) or get_result for a single non-blocking check. A completed job carries output.video; a failed one raises SeedanceError with the provider message attached.
Reference-based workflows take list arguments under fixed keys — images_list (up to 30), videos_list (up to 10), audios_list (up to 10) — so first_last_frame expects exactly two entries in start/end order under images_list. Local files go through api.upload_file(path), which returns the hosted URL to pass into any of the above.
ref_url = api.upload_file("./portrait.jpg")
job = api.first_last_frame(
prompt="Day dissolves into night over the same skyline",
images_list=[ref_url, end_url],
duration=5,
)
Durations span 4–30 seconds. The 1080p and 4k tiers are upscaled from the 720p base render and are priced separately; standard 720p is the default when resolution is omitted.
The SDK surface is organized around the same submit-and-poll contract used by every Seedance route: a generation call returns a request_id, which you then resolve through wait_for_completion or the raw result endpoint.
from seedance_api import SeedanceAPI
api = SeedanceAPI() # reads MUAPI_API_KEY from the environment
api = SeedanceAPI(api_key="...") # or pass it explicitly
All generation methods accept a variant keyword ("standard", "intl", "spicy") and a resolution keyword ("480p", "720p", "1080p", "4k"). Omitting both defaults to the standard 720p route.
# Text-to-video
submission = api.text_to_video(
prompt="A slow dolly across a frost-covered valley at dawn",
aspect_ratio="16:9",
duration=8,
seed=42,
resolution="1080p",
)
# Image-to-video — single source image
submission = api.image_to_video(
prompt="The subject turns toward the window as light shifts",
image_url="https://example.com/frame.jpg",
aspect_ratio="9:16",
duration=5,
variant="standard",
)
# First & last frame — exactly two URLs, start then end
submission = api.first_last_frame(
prompt="Continuous transition from midday to dusk",
images_list=["https://example.com/start.jpg", "https://example.com/end.jpg"],
duration=5,
)
# Omni reference — up to 30 images, 10 videos, 10 audio clips
submission = api.omni_reference(
prompt="A chase through a rain-slicked arcade, matching reference pacing and palette",
images_list=["https://example.com/scene.jpg"],
videos_list=["https://example.com/motion.mp4"],
audios_list=["https://example.com/mood.mp3"],
resolution="4k",
duration=10,
)
# Video edit — source clip plus optional identity/style and audio references
submission = api.video_edit(
prompt="Shift the scene to blue hour while preserving subject and camera path",
video="https://example.com/input.mp4",
reference_images=["https://example.com/style.jpg"],
reference_audios=["https://example.com/tone.mp3"],
generate_audio=True,
duration=8,
)
# Video extend — continues from the source clip's final frame
submission = api.video_extend(
prompt="Continue the forward camera move into the lit entrance",
video="https://example.com/input.mp4",
last_image="https://example.com/target.jpg", # optional interpolation target
generate_audio=True,
duration=5,
variant="intl",
)
result = api.wait_for_completion(submission["request_id"], poll_interval=5, timeout=600)
video_url = result["output"]["video"] # falls back to result["url"] on some routes
wait_for_completion blocks until the job reports completed and raises RuntimeError on failed or TimeoutError past the deadline. For non-blocking flows, poll the result endpoint yourself and branch on status.
Route slugs follow a fixed pattern: seedance-<variant>-<workflow>[-<resolution>]. The unsuffixed slug is the 720p route; append -480p, -1080p, or -4k for other tiers. The 1080p and 4K routes are upscaled from the 720p base render.
| Workflow | Slug fragment | Key inputs |
|---|---|---|
| Text-to-video | text-to-video |
prompt |
| Image-to-video | image-to-video |
prompt, image_url |
| First & last frame | first-last-frame |
prompt, images_list (exactly 2) |
| Omni reference | omni-reference |
prompt, images_list, videos_list, audios_list |
| Video edit | video-edit |
prompt, video, reference_images, reference_audios, generate_audio |
| Video extend | video-extend |
prompt, video, last_image, generate_audio |
| Parameter | Type | Notes |
|---|---|---|
prompt |
string | Required on every route |
image_url |
string | Single input image, image-to-video only |
images_list |
string[] | 2 entries for keyframe routes, up to 30 for Omni reference |
videos_list |
string[] | Up to 10 reference clips |
audios_list |
string[] | Up to 10 reference audio files |
video |
string | Source clip for edit/extend; trimmed past 30s |
reference_images |
string[] | Up to 30 style/identity references |
reference_audios |
string[] | Up to 10 audio references |
last_image |
string | Target frame for extend interpolation |
generate_audio |
boolean | Defaults to true on edit/ |
seedance-2-5-api-sdk is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by runeBl4z3. Python SDK for Seedance and Flash: text/image-to-video, references, edit, extend, native 4K. It has 193 GitHub stars.
seedance-2-5-api-sdk's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/runeBl4z3/seedance-2-5-api-sdk" and add it to your Claude Code skills directory (see the Installation section above).
seedance-2-5-api-sdk is primarily written in HTML. It is open-source under runeBl4z3 on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh seedance-2-5-api-sdk against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars