sub2api icon indicating copy to clipboard operation
sub2api copied to clipboard

grok实际还有额度但是报错

Open herosimith opened this issue 4 months ago • 3 comments

Grok Responses API returned 403: {"code":"***","error":"You have run out of credits or need a Grok subscription. Add credits at https://grok.com/?_s=usage or upgrade at https://grok.com/supergrok."}

herosimith avatar Jul 11 '26 16:07 herosimith

一样

glidea avatar Jul 11 '26 16:07 glidea

一样

GQLJ111 avatar Jul 12 '26 02:07 GQLJ111

已在开放中的 PR #4009 修复。

根因是 OAuth 订阅凭证被发送到了按 credits 计费的 api.x.ai 端点。PR 现在让新 Grok OAuth 账号默认保存订阅 CLI 代理地址;运行时还会识别并纠正旧账号中官方 api.x.ai 的根路径、/v1、大小写、尾斜杠和默认 443 端口写法。自定义域名和非默认端口不会被改写。xAI API Key 账号仍然使用官方 API 端点。

旧的官方根路径已做真实 OAuth 回归,Responses、Chat Completions、Messages、流式请求均返回 HTTP 200,未再出现 credits/subscription 403。

heathermhuang avatar Jul 12 '26 05:07 heathermhuang