mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-24 18:10:27 +08:00
[Partner Nodes] feat(ByteDance): add SeeDance 2.5 model (#15395)
* [Partner Nodes] feat(ByteDance): add SeeDance 2.5 model Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
This commit is contained in:
@@ -95,9 +95,10 @@ class Seedance2TaskCreationRequest(BaseModel):
|
||||
generate_audio: bool | None = Field(None)
|
||||
resolution: str | None = Field(None)
|
||||
ratio: str | None = Field(None)
|
||||
duration: int | None = Field(None, ge=4, le=15)
|
||||
duration: int | None = Field(None)
|
||||
seed: int | None = Field(None, ge=0, le=2147483647)
|
||||
watermark: bool | None = Field(None)
|
||||
output_format: str | None = Field(None)
|
||||
|
||||
|
||||
class TaskCreationResponse(BaseModel):
|
||||
@@ -186,6 +187,10 @@ SEEDANCE2_PRICE_PER_1K_TOKENS = {
|
||||
("dreamina-seedance-2-0-mini", True, "480p"): 0.0021,
|
||||
("dreamina-seedance-2-0-mini", False, "720p"): 0.0035,
|
||||
("dreamina-seedance-2-0-mini", True, "720p"): 0.0021,
|
||||
("dreamina-seedance-2-5-260628", False, "480p"): 0.0107,
|
||||
("dreamina-seedance-2-5-260628", True, "480p"): 0.0064,
|
||||
("dreamina-seedance-2-5-260628", False, "720p"): 0.0107,
|
||||
("dreamina-seedance-2-5-260628", True, "720p"): 0.0064,
|
||||
}
|
||||
|
||||
|
||||
@@ -304,8 +309,31 @@ SEEDANCE2_REF_VIDEO_PIXEL_LIMITS = {
|
||||
"480p": {"min": 409_600, "max": 927_408},
|
||||
"720p": {"min": 409_600, "max": 927_408},
|
||||
},
|
||||
"dreamina-seedance-2-5-260628": {
|
||||
"480p": {"min": 409_600, "max": 8_295_044},
|
||||
"720p": {"min": 409_600, "max": 8_295_044},
|
||||
},
|
||||
}
|
||||
|
||||
SEEDANCE2_REFERENCE_LIMITS_DEFAULT = {
|
||||
"max_images": 9,
|
||||
"max_videos": 3,
|
||||
"max_audios": 3,
|
||||
"max_total_seconds": 15.1,
|
||||
}
|
||||
SEEDANCE2_REFERENCE_LIMITS = {
|
||||
"dreamina-seedance-2-5-260628": {
|
||||
"max_images": 30,
|
||||
"max_videos": 10,
|
||||
"max_audios": 10,
|
||||
"max_total_seconds": 30.1,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
def seedance2_reference_limits(model_id: str) -> dict:
|
||||
return SEEDANCE2_REFERENCE_LIMITS.get(model_id, SEEDANCE2_REFERENCE_LIMITS_DEFAULT)
|
||||
|
||||
# The time in this dictionary are given for 10 seconds duration.
|
||||
VIDEO_TASKS_EXECUTION_TIME = {
|
||||
"seedance-1-0-lite-t2v-250428": {
|
||||
|
||||
Reference in New Issue
Block a user