From 90246c329d75fcbc32afaba113eaf9b633355e80 Mon Sep 17 00:00:00 2001 From: jueming Date: Wed, 18 Jun 2025 13:40:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=94=99=E8=AF=AF=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nodes/video_generation.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nodes/video_generation.py b/nodes/video_generation.py index 582d574..a33995d 100644 --- a/nodes/video_generation.py +++ b/nodes/video_generation.py @@ -207,7 +207,13 @@ class MiniMaxVideoGeneration: 2013: "Invalid parameters, please check your input", 2049: "Invalid API key, please check your API key" } - error_msg = error_messages.get(status_code, f"API Error {status_code}: {status_msg}") + + # Special handling for group_id access issues + if status_code == 2013 and "group_id can not access video 02" in status_msg: + error_msg = "Your API key/account does not have access to MiniMax-Hailuo-02 model. Please check your account permissions or contact MiniMax support to enable access to the 02 series models." + else: + error_msg = error_messages.get(status_code, f"API Error {status_code}: {status_msg}") + raise RuntimeError(error_msg) # Extract task_id