# API-Key 配置指南 ## 一、大语言模型 (LLM) ### 以 DeepSeek 为例 **官方文档**:https://api-docs.deepseek.com/zh-cn/ 提示: 对于中国以外用户建议使用 Gemini、Claude、ChatGPT 等主流大语言模型以获得最佳体验。 ### 配置步骤 1. **申请 API Key** - 访问平台:https://platform.deepseek.com/usage - 登录后申请 API Key - ⚠️ **重要**:妥善保存获取的 API Key 2. **配置参数** - **模型名称**:`deepseek-chat` - **Base URL**:`https://api.deepseek.com/v1` - **API Key**:填写上一步获取的 Key 3. **API填写** - **Web使用**: 在LLM模型表单中选择使用自定义模型,模型按照配置参数进行填写 - **本地部署**: 在config.toml中 找到`[developer.chat_models_config."deepseek-chat"]` 将配置参数填写上去,使得Web页面可以访问到该默认配置。 找到`[llm]`并配置model、base_url、api_key ## 二、多模态大模型 (VLM) ### 2.1 使用GLM-4.6V **API Key 管理**:https://open.bigmodel.cn/usercenter/proj-mgmt/apikeys ### 配置参数 - **模型名称**:`glm-4.6v` - **Base URL**:`https://open.bigmodel.cn/api/paas/v4/` ### 2.2 使用Qwen3-VL **API Key管理**:进入阿里云百炼平台申请API Key https://bailian.console.aliyun.com/cn-beijing/?apiKey=1&tab=globalset#/efm/api_key - **模型名称**:`qwen3-vl-8b-instruct` - **Base URL**:`https://dashscope.aliyuncs.com/compatible-mode/v1` - **参数填写**:在VLM Model表单中选择"使用自定义模型"进行参数填写。本地部署时,找到`[vlm]`并配置model、base_url、api_key,在config.toml中新增以下字段作为Web的API默认配置: ``` [developer.chat_models_config."qwen3-vl-8b-instruct"] base_url = "https://dashscope.aliyuncs.com/compatible-mode/v1" api_key = "YOUR_API_KEY" timeout = 20.0 temperature = 0.1 max_retries = 2 ``` ### 2.3 使用Qwen3-Omni Qwen3-Omni同样可以在阿里云百炼平台进行申请,具体参数如下,可用于omni_bgm_label.py的音频自动标注 - **模型名称**:`qwen3-omni-flash-2025-12-01` - **Base URL**:`https://dashscope.aliyuncs.com/compatible-mode/v1` 详细文档参考:https://bailian.console.aliyun.com/cn-beijing/?tab=doc#/doc 阿里云模型列表:https://help.aliyun.com/zh/model-studio/models 计费看板:https://billing-cost.console.aliyun.com/home ## 三、Pexels 图像和视频下载API密钥配置 1. 打开Pexels网站,注册账号,申请API https://www.pexels.com/zh-cn/api/key/
图1: Pexels API申请页面
图2: Pexels API 使用
图3: Bytedance TTS API 使用