Skip to content

Commit e4455fd

Browse files
[API Nodes] mark seedream-3-0-t2i and seedance-1-0-lite models as deprecated (Comfy-Org#13060)
* chore(api-nodes): mark seedream-3-0-t2i and seedance-1-0-lite models as deprecated * fix(api-nodes): fixed old regression in the ByteDanceImageReference node --------- Co-authored-by: Jedrzej Kosinski <kosinkadink1@gmail.com>
1 parent f49856a commit e4455fd

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

comfy_api_nodes/nodes_bytedance.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@
4747
BYTEPLUS_TASK_ENDPOINT = "/proxy/byteplus/api/v3/contents/generations/tasks"
4848
BYTEPLUS_TASK_STATUS_ENDPOINT = "/proxy/byteplus/api/v3/contents/generations/tasks" # + /{task_id}
4949

50+
DEPRECATED_MODELS = {"seedance-1-0-lite-t2v-250428", "seedance-1-0-lite-i2v-250428"}
51+
52+
logger = logging.getLogger(__name__)
53+
5054

5155
def get_image_url_from_response(response: ImageTaskCreationResponse) -> str:
5256
if response.error:
@@ -135,6 +139,7 @@ def define_schema(cls):
135139
price_badge=IO.PriceBadge(
136140
expr="""{"type":"usd","usd":0.03}""",
137141
),
142+
is_deprecated=True,
138143
)
139144

140145
@classmethod
@@ -942,7 +947,7 @@ async def execute(
942947
]
943948
return await process_video_task(
944949
cls,
945-
payload=Image2VideoTaskCreationRequest(model=model, content=x),
950+
payload=Image2VideoTaskCreationRequest(model=model, content=x, generate_audio=None),
946951
estimated_duration=max(1, math.ceil(VIDEO_TASKS_EXECUTION_TIME[model][resolution] * (duration / 10.0))),
947952
)
948953

@@ -952,6 +957,12 @@ async def process_video_task(
952957
payload: Text2VideoTaskCreationRequest | Image2VideoTaskCreationRequest,
953958
estimated_duration: int | None,
954959
) -> IO.NodeOutput:
960+
if payload.model in DEPRECATED_MODELS:
961+
logger.warning(
962+
"Model '%s' is deprecated and will be deactivated on May 13, 2026. "
963+
"Please switch to a newer model. Recommended: seedance-1-0-pro-fast-251015.",
964+
payload.model,
965+
)
955966
initial_response = await sync_op(
956967
cls,
957968
ApiEndpoint(path=BYTEPLUS_TASK_ENDPOINT, method="POST"),

0 commit comments

Comments
 (0)