Janitor AI 模型设置
Janitor AI + Grok API 指南(2026):设置、费用与排错
将 Janitor AI 连接到官方 xAI Grok API,选择当前模型、估算 Token 费用、排查 401 与 429,并保护 API Key。
阅读约 12 分钟
快速回答
这篇指南主要讲什么
Grok 消费者应用与 xAI 开发者 API 是两个独立入口。要通过 Janitor AI 当前的自定义代理控件调用 xAI 模型,需要 xAI 开发者 API Key、完整 Chat Completions 地址 `https://api.x.ai/v1/chat/completions`,以及 grok-4.6 或 grok-4.3 等有效模型 ID。API 按 Token 计费,不包含在免费 Grok 消费额度中。Janitor AI 界面可能变化,保存前应核对当前字段名称。
- “在 Janitor AI 使用 Grok”到底指什么
- 用官方 xAI API 完成 6 步设置
- 应该选择哪个 Grok 模型

搜索 Janitor AI Grok 的用户通常不是在比较 Grok Ani 与 Janitor AI,而是想知道代理地址、模型 ID、消费者订阅是否包含 API,以及为什么首次测试出现 401、404 或 429。本篇只承接模型接入意图;Grok Ani vs JanitorAI 对比负责平台选择,Janitor AI Advanced Prompts 指南负责回复行为规则。
“在 Janitor AI 使用 Grok”到底指什么
xAI 开发者 API 通过兼容 OpenAI 的基础地址和 Chat Completions 接口提供 Grok 模型。若 Janitor AI 当前界面接受兼容自定义服务商,它负责角色卡与对话前端,xAI 负责生成回复。两边账号不会因此合并:Grok 网页或 App 订阅不会自动创建开发者 Key、支付 Janitor 请求,也不会把角色卡搬进 Grok。应把服务商、前端和角色卡看作三个独立层。
| Route | What it gives you | What it does not give you |
|---|---|---|
| Grok consumer app | Grok chat with consumer-plan limits | An API key for Janitor AI |
| Direct xAI API | Official OpenAI-compatible endpoint and usage billing | A free unlimited model |
| Third-party model gateway | One key for several model providers | The same privacy, price or uptime as direct xAI |
| LumiChat | Hosted character discovery and managed chat | Janitor AI proxy controls or xAI account access |
用官方 xAI API 完成 6 步设置
创建专用 xAI 开发者 Key,只填入 Janitor AI 的模型服务商控件。xAI 官方基础地址为 https://api.x.ai/v1,Chat Completions 路径为 /v1/chat/completions;如果字段要求完整代理 URL,就使用合并后的地址。Janitor AI 菜单与标签可能变化,公开文档也不总是集中,因此不要照搬旧视频坐标。先用一名临时虚构成年角色测试,不要带入私人聊天历史。
- Create an API key in the xAI developer console; never paste a consumer account password.
- Open the current Janitor AI chat model or proxy settings.
- Choose the OpenAI-compatible or custom endpoint path exposed by the current interface.
- Enter the full Chat Completions endpoint:
https://api.x.ai/v1/chat/completions. - Enter an active model ID and the API key.
- Save, refresh the chat if required, then test a disposable fictional character.
应该选择哪个 Grok 模型
使用 xAI 开发者控制台当前展示的精确模型 ID。xAI 在 2026 年 8 月 12 日发布 grok-4.6,提供 500K 上下文;grok-4.3 列出 1M 上下文。上下文更大不等于角色扮演一定更好:角色定义、示例、Lore 与历史都会占用输入 Token 和费用。应使用同一组十轮消息,比较语气一致性、纠错、重复与延迟。
| Model | Context listed by xAI | Input / 1M tokens | Output / 1M tokens | Practical note |
|---|---|---|---|---|
| grok-4.6 | 500K | $2.00 | $6.00 | Current frontier model; prices increase above 200K prompt tokens |
| grok-4.5 | 500K | $2.00 | $6.00 | Current model, but 4.6 is newer |
| grok-4.3 | 1M | $1.25 | $2.50 | Lower listed token price and larger context |
一次 Janitor AI Grok 对话可能花多少钱
xAI API 对输入与输出 Token 计费,消费者端“免费开始”不等于 API 余额。下表按官方基础费率估算,未包含缓存折扣、工具、税费、地区差异和超过 200K Prompt 后的阶梯价格,因此只是例子而不是账单预测。实际费用应查看返回 usage 或 xAI 控制台。Janitor 长对话可能反复发送增长中的上下文,输入费用往往不只来自最新一句话。
| Example request | grok-4.6 estimated token charge | grok-4.3 estimated token charge |
|---|---|---|
| 5K input + 300 output | about $0.0118 | about $0.0070 |
| 20K input + 300 output | about $0.0418 | about $0.0258 |
| 50K input + 500 output | about $0.1030 | about $0.0638 |
按层排查 401、404、429 与回复异常
一次只排查一层:先验证 endpoint 与 Key,再验证模型 ID 和短请求,最后处理角色卡与 Prompt 栈。认证失败不能靠增加提示词解决;请求没有到达 xAI 时,也不能说模型记忆差。不要把 Key 交给运营方、隐私政策和计费路径不清楚的公共反向代理。必须使用网关时,应比较模型 slug、加价、数据政策和日志保留。
| Symptom | Most likely layer | First check |
|---|---|---|
| 401 / unauthorized | API key | Create or copy an active xAI developer key |
| 404 / model not found | URL or model ID | Verify the full endpoint and current model slug |
| 429 / rate limit | xAI account tier or request volume | Wait, reduce requests and check console limits |
| Blank or generic reply | Card, prompt or context | Test one small card and inspect prompt conflicts |
| Cost climbs over time | Growing chat context | Compare input-token usage and summarize only when needed |
| Works in Grok app, fails in Janitor | Consumer access is not API access | Verify console billing, key and endpoint separately |
连接成功后的提示词与记忆检查
连接成功后,把稳定身份放在角色卡,把变化中的场景事实放在 Janitor AI Chat Memory,世界事实放在 Lore 层,回复行为放在 Advanced Prompt。一次只改一个变量。如果 Grok 替用户行动,应减少冲突示例并添加一条可观察的用户控制规则;费用增长时先检查上下文;回复重复时,用同一卡片新建聊天对照后再重写所有层。
直连 API、网关还是 LumiChat
想要官方服务商路径、清晰控制台计费和精确模型选择时,优先直连 xAI;只有需要统一模型与付款,并愿意增加数据处理方时才选择可信网关;喜欢维护角色卡和模型设置时选择 Janitor AI。如果目标只是发现托管角色并立即聊天,可打开 LumiChat 角色库。LumiChat 是独立服务,不提供 xAI Key,也不会解锁 Janitor AI 功能。
常见问题
Janitor AI 可以使用 Grok 吗?
当前服务商控件接受 endpoint、Key 和模型 ID 时,可以使用兼容 OpenAI 的 xAI 模型路径。
Grok 的 Janitor AI 代理地址是什么?
官方 Chat Completions 地址是 https://api.x.ai/v1/chat/completions;应确认当前字段要完整地址还是基础地址。
Janitor AI 使用 Grok 免费吗?
不能笼统称为免费。xAI 开发者 API 按 Token 计费,与消费者 Grok 入口分开。
哪个 Grok 模型更适合?
可先测试当前 grok-4.6,再用价格较低、上下文更大的 grok-4.3 做同卡片对照。
为什么出现 401?
API Key 缺失、无效、被撤销或不是 xAI 开发者 Key。消费者登录信息不能代替 Key。
为什么出现 429?
达到账号或模型速率限制,应检查控制台、降低请求频率并退避重试。
聊天会发送给 xAI 吗?
xAI 作为当前模型路径时,生成所需 Prompt 会发送给 xAI,因此不要包含密钥或多余身份信息。
可以不配置 API,改用 LumiChat 吗?
可以,适合希望使用托管网页角色聊天的用户;两者是不同平台。
继续体验
进入 LumiChat,开始真实角色聊天
浏览在线角色,选择适合你的人设与场景,立即开始对话。
继续阅读
Janitor AI 提示词工作流
Janitor AI Advanced Prompt(2026):模板与修复指南
一套可测试的 Advanced Prompt 工具包,包含用户控制、文风、节奏、场景状态模板与 6 轮 A/B 测试。
聊天记忆指南
2026 年 Janitor AI Chat Memory 指南:摘要模板、提示词与遗忘修复
判断哪些信息该放进 Chat Memory、Persona、最近对话或 Lorebook,并实际验证角色是否记住。
状态与故障排查
Janitor AI 无法使用?状态判断与修复方法(2026)
先按症状定位故障层,再做最小修复;避免清空全部数据和危险的“解锁版”捷径。
AI 陪伴平台深度对比
Grok Ani vs JanitorAI(2026):哪款更适合火辣角色扮演?
比较开箱即用的动画陪伴与灵活、社区角色卡驱动、文字优先的角色扮演平台。
