diff --git a/kie_api/suno_music.py b/kie_api/suno_music.py index 30ac725..8448e99 100644 --- a/kie_api/suno_music.py +++ b/kie_api/suno_music.py @@ -127,7 +127,6 @@ def run_suno_generate( custom_mode: bool, instrumental: bool, model: str, - callback_url: str, style: str | None = None, title: str | None = None, negative_tags: str | None = None, @@ -145,8 +144,7 @@ def run_suno_generate( raise RuntimeError("Invalid model. Use the pinned enum options.") if vocal_gender and vocal_gender not in VOCAL_GENDER_OPTIONS: raise RuntimeError("vocal_gender must be 'm' or 'f'.") - if not callback_url: - raise RuntimeError("callback_url is required by the API spec.") + # callback_url intentionally omitted; polling mode only prompt_text = (prompt or "").strip() style_text = (style or "").strip() @@ -175,7 +173,6 @@ def run_suno_generate( "customMode": bool(custom_mode), "instrumental": bool(instrumental), "model": model, - "callBackUrl": callback_url, } if style_text: payload["style"] = style_text diff --git a/nodes.py b/nodes.py index 2be8fde..fb85071 100644 --- a/nodes.py +++ b/nodes.py @@ -734,7 +734,6 @@ Inputs: - custom_mode: Enable custom mode (required) - instrumental: Instrumental-only mode (required) - model: V4 / V4_5 / V4_5PLUS / V4_5ALL / V5 -- callback_url: Webhook URL for results (required by API) - style: Required in custom mode - title: Required in custom mode - negative_tags: Optional tags to avoid @@ -757,7 +756,6 @@ Inputs: "custom_mode": ("BOOLEAN", {"default": True}), "instrumental": ("BOOLEAN", {"default": True}), "model": ("COMBO", {"options": SUNO_MODEL_OPTIONS, "default": "V4_5"}), - "callback_url": ("STRING", {"default": ""}), }, "optional": { "style": ("STRING", {"default": ""}), @@ -783,7 +781,6 @@ Inputs: custom_mode: bool, instrumental: bool, model: str, - callback_url: str, style: str = "", title: str = "", negative_tags: str = "", @@ -799,7 +796,6 @@ Inputs: custom_mode=custom_mode, instrumental=instrumental, model=model, - callback_url=callback_url, style=style, title=title, negative_tags=negative_tags, diff --git a/web/docs/KIE_Suno_Music.md b/web/docs/KIE_Suno_Music.md index 85d86e4..241459b 100644 --- a/web/docs/KIE_Suno_Music.md +++ b/web/docs/KIE_Suno_Music.md @@ -7,8 +7,6 @@ Create a Suno music generation task via KIE API. This node polls until completio - **custom_mode** (BOOLEAN, required): Enable custom mode. - **instrumental** (BOOLEAN, required): Instrumental-only mode. - **model** (COMBO, required): `V4`, `V4_5`, `V4_5PLUS`, `V4_5ALL`, `V5` -- **callback_url** (STRING, required): Webhook URL to receive results. - Optional: - **style** (STRING): Required in custom mode. Length limit depends on model. - **title** (STRING): Required in custom mode. Max 80 chars.