BYOK 支持的模型供应商
VizChat 在 Starter 及以上套餐开启 BYOK(自带 API Key),支持的 8 家供应商完整列表。
BYOK(Bring Your Own Key)指用户在 VizChat 里填入自己向模型供应商申请的 API Key,所有推理 / 生成请求会走用户自己的账单,不消耗 VizChat 平台积分。这对重度用户是最省钱的用法。
前置要求
- 订阅层级 ≥
Starter(Free 不支持 BYOK)。Starter 新用户会自动获得 30 天免费试用,注册即享,无需信用卡。 - 在
Settings → Models里粘贴 Key,VizChat 用 AES 加密存储并只显示掩码。 - 删除 Key 会让该 provider 的所有后续请求回退到 VizChat 官方模型(消耗平台积分)。
支持的供应商(8 家)
下表 provider ID 与后端 VALID_PROVIDERS 集合(apps/vizchat-api/app/services/user_api_key_service.py)一一对应,和 OpenRouter 的路由前缀对齐。
| Provider ID | 显示名 | 代表模型 | 申请入口 |
|---|---|---|---|
openai | OpenAI | GPT-4o、GPT-4.1、o3、o4-mini | platform.openai.com |
anthropic | Anthropic | Claude Sonnet 4.5、Claude Opus 4.1 | console.anthropic.com |
google | Google (Gemini) | Gemini 3.1 Pro、Gemini 3.1 Flash | aistudio.google.com |
deepseek | DeepSeek | DeepSeek V3、DeepSeek R1 | platform.deepseek.com |
qwen | 阿里通义千问 | Qwen3 系列、Qwen-VL | dashscope.console.aliyun.com |
moonshot | 月之暗面 Kimi | Kimi K2、Moonshot v1 | platform.moonshot.cn |
x-ai | xAI | Grok 4、Grok Vision | console.x.ai |
mistralai | Mistral AI | Mistral Large、Codestral | console.mistral.ai |
模型选择与路由
VizChat 前端把模型分成两类槽位:
- Official:平台托管的 Pro / Lite 两档,按积分计费。
- Custom:BYOK 注入的模型,下拉里按 provider 分组。
Agent 默认用 Official Lite 槽位;切换到自定义模型后,整条会话都走 BYOK。配额服务只校验速率上限,不扣平台积分。
常见问题
- Key 被泄露怎么办:立即在 VizChat 删除,然后在供应商 Console 吊销。VizChat 的存储密文使用项目级加密 key,删除后无从恢复。
- 不同供应商可以同时配:可以,每个 provider 只存 1 个 Key,之间彼此独立。
- OpenRouter 支持吗:OpenRouter 路由在 Roadmap 中;当前
x-ai、mistralai等 provider 已接入 OpenRouter fallback,但 BYOK 仍走各自官方 endpoint。 - 企业 SSO Key 隔离:企业版支持团队共享池,详见 路线图。