Skip to content

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

docs(config): document the ElevenLabs music base URL

c020627ac7eda423e4d
diff --git a/config.example.toml b/config.example.toml
index 5ed53407..9a5ffef3 100644
--- a/config.example.toml
+++ b/config.example.toml
@@ -536,6 +536,9 @@ api_key = ""
# Available models include eleven_multilingual_v2, eleven_flash_v2_5, and eleven_v3.
model_id = "eleven_multilingual_v2"
# Video-to-Music uses a separate model family while sharing the same API key.
+# music_base_url only configures the Video-to-Music endpoint, so it can point at
+# a proxy or a self-hosted gateway while the voice API keeps the default host.
+music_base_url = "https://api.elevenlabs.io"
music_model_id = "music_v2"
music_timeout = 600
diff --git a/test/services/test_config.py b/test/services/test_config.py
index 343a36ff..40a7272a 100644
--- a/test/services/test_config.py
+++ b/test/services/test_config.py
@@ -69,6 +69,16 @@ class TestConfigPersistence:
"model_id": "",
"voice_id": "default",
}
+ # Video-to-Music reads music_base_url from [elevenlabs] and, unlike the
+ # API key, it has no environment-variable fallback: if the example omits
+ # it there is no documented way to route the endpoint through a proxy.
+ assert example_config["elevenlabs"] == {
+ "api_key": "",
+ "model_id": "eleven_multilingual_v2",
+ "music_base_url": "https://api.elevenlabs.io",
+ "music_model_id": "music_v2",
+ "music_timeout": 600,
+ }
assert example_config["whisper"]["device"] == "cpu"
def test_example_config_covers_llm_provider_registry(self):