fix: base url

This commit is contained in:
zest
2026-03-26 20:57:10 +08:00
parent 2983aab561
commit 34c6cf05d7
6 changed files with 30 additions and 6 deletions

View File

@@ -18,7 +18,11 @@ import argparse
import requests import requests
API_KEY = os.getenv("MINIMAX_API_KEY") API_KEY = os.getenv("MINIMAX_API_KEY")
API_BASE = "https://api.minimax.io/v1" # China Mainland: https://api.minimaxi.com/v1
# Overseas: https://api.minimax.io/v1
API_BASE = os.getenv("MINIMAX_API_BASE")
if not API_BASE:
raise SystemExit("ERROR: MINIMAX_API_BASE is not set.")
ASPECT_RATIOS = ["1:1", "16:9", "4:3", "3:2", "2:3", "3:4", "9:16", "21:9"] ASPECT_RATIOS = ["1:1", "16:9", "4:3", "3:2", "2:3", "3:4", "9:16", "21:9"]

View File

@@ -19,7 +19,11 @@ import argparse
import requests import requests
API_KEY = os.getenv("MINIMAX_API_KEY") API_KEY = os.getenv("MINIMAX_API_KEY")
API_BASE = os.getenv("MINIMAX_API_BASE", "https://api.minimax.io/v1") # China Mainland: https://api.minimaxi.com/v1
# Overseas: https://api.minimax.io/v1
API_BASE = os.getenv("MINIMAX_API_BASE")
if not API_BASE:
raise SystemExit("ERROR: MINIMAX_API_BASE is not set.")
def generate_music( def generate_music(

View File

@@ -19,7 +19,11 @@ import argparse
import requests import requests
API_KEY = os.getenv("MINIMAX_API_KEY") API_KEY = os.getenv("MINIMAX_API_KEY")
API_BASE = os.getenv("MINIMAX_API_BASE", "https://api.minimax.io/v1") # China Mainland: https://api.minimaxi.com/v1
# Overseas: https://api.minimax.io/v1
API_BASE = os.getenv("MINIMAX_API_BASE")
if not API_BASE:
raise SystemExit("ERROR: MINIMAX_API_BASE is not set.")
def tts( def tts(

View File

@@ -19,7 +19,11 @@ import argparse
import requests import requests
API_KEY = os.getenv("MINIMAX_API_KEY") API_KEY = os.getenv("MINIMAX_API_KEY")
API_BASE = "https://api.minimax.io/v1" # China Mainland: https://api.minimaxi.com/v1
# Overseas: https://api.minimax.io/v1
API_BASE = os.getenv("MINIMAX_API_BASE")
if not API_BASE:
raise SystemExit("ERROR: MINIMAX_API_BASE is not set.")
def _headers(): def _headers():

View File

@@ -19,7 +19,11 @@ import argparse
import requests import requests
API_KEY = os.getenv("MINIMAX_API_KEY") API_KEY = os.getenv("MINIMAX_API_KEY")
API_BASE = "https://api.minimax.io/v1" # China Mainland: https://api.minimaxi.com/v1
# Overseas: https://api.minimax.io/v1
API_BASE = os.getenv("MINIMAX_API_BASE")
if not API_BASE:
raise SystemExit("ERROR: MINIMAX_API_BASE is not set.")
ASPECT_RATIOS = ["1:1", "16:9", "4:3", "3:2", "2:3", "3:4", "9:16", "21:9"] ASPECT_RATIOS = ["1:1", "16:9", "4:3", "3:2", "2:3", "3:4", "9:16", "21:9"]

View File

@@ -23,7 +23,11 @@ import argparse
import requests import requests
API_KEY = os.getenv("MINIMAX_API_KEY") API_KEY = os.getenv("MINIMAX_API_KEY")
API_BASE = "https://api.minimax.io/v1" # China Mainland: https://api.minimaxi.com/v1
# Overseas: https://api.minimax.io/v1
API_BASE = os.getenv("MINIMAX_API_BASE")
if not API_BASE:
raise SystemExit("ERROR: MINIMAX_API_BASE is not set.")
I2V_MODELS = [ I2V_MODELS = [
"MiniMax-Hailuo-2.3", "MiniMax-Hailuo-2.3",