LumiChat AI

Janitor AI 模型设置

Janitor AI + Grok API 指南(2026):设置、费用与排错

将 Janitor AI 连接到官方 xAI Grok API,选择当前模型、估算 Token 费用、排查 401 与 429,并保护 API Key。

作者: LumiChat AI Team发布时间:

阅读约 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 模型

角色快速入口

每次刷新随机展示 3 个角色;有推广视频时优先播放视频,没有视频时显示角色图片,并保留角色介绍和聊天入口。

Elara Voss

冰霜精灵公主

Elara Voss

开局疏离、后期回报高,适合宫廷权谋与融化冰心的剧情。

奇幻王室慢热
开始聊天
Aurora Quinn

秘法导师

Aurora Quinn

自信的魔法导师,适合带试探、斗嘴和慢热张力的课堂幻想。

魔法试探慢热
开始聊天

大阪地下 DJ

高桥希

来自大阪心斋桥的 Techno DJ,节奏感强、说话直接,适合想要更有音乐氛围、都市夜生活和高能互动的聊天体验。

DJTechno夜生活
开始聊天
用于比较托管聊天与 Janitor AI Grok API 配置的真实 LumiChat 角色库

搜索 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。应把服务商、前端和角色卡看作三个独立层。

RouteWhat it gives youWhat it does not give you
Grok consumer appGrok chat with consumer-plan limitsAn API key for Janitor AI
Direct xAI APIOfficial OpenAI-compatible endpoint and usage billingA free unlimited model
Third-party model gatewayOne key for several model providersThe same privacy, price or uptime as direct xAI
LumiChatHosted character discovery and managed chatJanitor 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 菜单与标签可能变化,公开文档也不总是集中,因此不要照搬旧视频坐标。先用一名临时虚构成年角色测试,不要带入私人聊天历史。

  1. Create an API key in the xAI developer console; never paste a consumer account password.
  2. Open the current Janitor AI chat model or proxy settings.
  3. Choose the OpenAI-compatible or custom endpoint path exposed by the current interface.
  4. Enter the full Chat Completions endpoint: https://api.x.ai/v1/chat/completions.
  5. Enter an active model ID and the API key.
  6. 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 和费用。应使用同一组十轮消息,比较语气一致性、纠错、重复与延迟。

ModelContext listed by xAIInput / 1M tokensOutput / 1M tokensPractical note
grok-4.6500K$2.00$6.00Current frontier model; prices increase above 200K prompt tokens
grok-4.5500K$2.00$6.00Current model, but 4.6 is newer
grok-4.31M$1.25$2.50Lower listed token price and larger context

一次 Janitor AI Grok 对话可能花多少钱

xAI API 对输入与输出 Token 计费,消费者端“免费开始”不等于 API 余额。下表按官方基础费率估算,未包含缓存折扣、工具、税费、地区差异和超过 200K Prompt 后的阶梯价格,因此只是例子而不是账单预测。实际费用应查看返回 usage 或 xAI 控制台。Janitor 长对话可能反复发送增长中的上下文,输入费用往往不只来自最新一句话。

Example requestgrok-4.6 estimated token chargegrok-4.3 estimated token charge
5K input + 300 outputabout $0.0118about $0.0070
20K input + 300 outputabout $0.0418about $0.0258
50K input + 500 outputabout $0.1030about $0.0638

按层排查 401、404、429 与回复异常

一次只排查一层:先验证 endpoint 与 Key,再验证模型 ID 和短请求,最后处理角色卡与 Prompt 栈。认证失败不能靠增加提示词解决;请求没有到达 xAI 时,也不能说模型记忆差。不要把 Key 交给运营方、隐私政策和计费路径不清楚的公共反向代理。必须使用网关时,应比较模型 slug、加价、数据政策和日志保留。

SymptomMost likely layerFirst check
401 / unauthorizedAPI keyCreate or copy an active xAI developer key
404 / model not foundURL or model IDVerify the full endpoint and current model slug
429 / rate limitxAI account tier or request volumeWait, reduce requests and check console limits
Blank or generic replyCard, prompt or contextTest one small card and inspect prompt conflicts
Cost climbs over timeGrowing chat contextCompare input-token usage and summarize only when needed
Works in Grok app, fails in JanitorConsumer access is not API accessVerify 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,开始真实角色聊天

浏览在线角色,选择适合你的人设与场景,立即开始对话。

进入聊天