LatentLogic

LatentLogic

Seedance 2.5 API for developers — a few notes after integrating it into my site

I recently integrated Seedance 2.5 into one of my own projects. The basic API flow is simple: create a task, get the task ID, and poll until the video is ready.

import requests
import time

API_KEY = "YOUR_API_KEY"
BASE_URL = "https://seegen.ai/api/v1"

headers = {
    "Authorization": f"Bearer {API_KEY}",
    "Content-Type": "application/json"
}

payload = {
    "model": "sd2.5",
    "inputs": {
        "prompt": "A cinematic tracking shot through a rainy Tokyo street at night.",
        "duration": "10s",
        "resolution": "1280x720",
        "outputResolution": "720p"
    }
}

task = requests.post(
    f"{BASE_URL}/jobs/createTask",
    headers=headers,
    json=payload
).json()

task_id = task["taskId"]

while True:
    result = requests.get(
        f"{BASE_URL}/jobs/queryTask",
        headers={"Authorization": f"Bearer {API_KEY}"},
        params={"taskId": task_id}
    ).json()

    if result["status"] in ["COMPLETED", "FAILED"]:
        print(result)
        break

    time.sleep(5)

A few integration differences I ran into compared with Seedance 2.0:

1. Video Edit needs a separate flow

With Seedance 2.0, editing requests could be handled through Multi-Reference. In 2.5, if the prompt contains editing instructions, the model may automatically classify the task as Video Edit.

If you still send normal ratio and duration parameters, the request can fail with:

Seedance identified your task as video editing based on your prompt.

`ratio` must be `adaptive`.
`duration` must be -1.

I ended up adding a dedicated Video Edit mode instead of sending editing prompts through Multi-Reference.

2. Omni-Reference now requires actual reference assets

Another difference from 2.0: Seedance 2.5 doesn’t accept a text-only request through the Omni-Reference flow.

It returns:

The parameter omni_reference_task_type specified in the request is not valid.
This parameter is only supported in the multimodal reference scenario.

For backward compatibility, I added a small fallback: if the request contains only a prompt and no image, video, or audio references, I automatically remove omni_reference_task_type and route it as a normal text-to-video request.

These aren’t major changes, but they’re worth handling if you’re migrating an existing Seedance 2.0 integration to 2.5.

Anyone else integrating Seedance 2.5 into their own product? Is there anything else I should watch out for during integration?

Where Next?

Popular Ai topics Top

AstonJ
Watching any? Any favourites? :upside_down_face:
New
AstonJ
Can you spot the AI generated person in the pic below? ▶ Spoiler Video here:
New
apoorv-2204
General thoughts on google gemini ? IMHO , when compared chatgpt and claude sonnnet its pretty shit, and its feels broken,
#ai
New
apoorv-2204
How are you using AI in my life? How the day to day life is changed around you? professional and in personal life? I it use for autocom...
#ai
New
kammy
Hi everyone! The other day I was having a debate with my friends about whether or not the top LLM models are “good at design.” I’d love ...
New
AstonJ
Tucker: You’ve had complaints from one programmer who said you steal people’s stuff without paying them and he winded up being murdered.
New
nix0097
Hello I hope you’re doing well. I’m looking to develop a custom chatbot and would love to collaborate with you on this project. The chat...
New
xiji2646-netizen
Alibaba just opened public API access for HappyHorse 1.0, the model currently ranked #1 on Video Arena’s blind tests. What caught my att...
New
xiji2646-netizen
Anthropic shipped something called Dreaming for Managed Agents this week. It’s a scheduled background process that runs between sessions ...
New
xiji2646-netizen
Cursor cloud agent development This month’s updates: Codex got real Windows sandboxing (May 13) ...
New

Other popular topics Top

PragmaticBookshelf
Learn from the award-winning programming series that inspired the Elixir language, and go on a step-by-step journey through the most impo...
New
PragmaticBookshelf
Tailwind CSS is an exciting new CSS framework that allows you to design your site by composing simple utility classes to create complex e...
New
AstonJ
In case anyone else is wondering why Ruby 3 doesn’t show when you do asdf list-all ruby :man_facepalming: do this first: asdf plugin-upd...
New
AstonJ
Continuing the discussion from Thinking about learning Crystal, let’s discuss - I was wondering which languages don’t GC - maybe we can c...
New
Margaret
Hello everyone! This thread is to tell you about what authors from The Pragmatic Bookshelf are writing on Medium.
1147 29994 760
New
AstonJ
We’ve talked about his book briefly here but it is quickly becoming obsolete - so he’s decided to create a series of 7 podcasts, the firs...
New
AstonJ
Was just curious to see if any were around, found this one: I got 51/100: Not sure if it was meant to buy I am sure at times the b...
New
AstonJ
If you want a quick and easy way to block any website on your Mac using Little Snitch simply… File > New Rule: And select Deny, O...
New
sir.laksmana_wenk
I’m able to do the “artistic” part of game-development; character designing/modeling, music, environment modeling, etc. However, I don’t...
New
Fl4m3Ph03n1x
Background Lately I am in a quest to find a good quality TTS ai generation tool to run locally in order to create audio for some videos I...
New