sub2api icon indicating copy to clipboard operation
sub2api copied to clipboard

我的grok生图感觉有自己的想法

Open Rotor1996 opened this issue 4 months ago • 6 comments

说小猫,给灯塔,关键三天两头给同样的图。 今天上午开始出现的

Rotor1996 avatar Jul 16 '26 06:07 Rotor1996

The timing of this report matches the OAuth media-routing regression window: a later OAuth security change sent image requests back through the CLI proxy instead of the official Imagine API.

#4433 restores official-API routing for OAuth media while preserving API-key and custom-host behavior. In a private production canary, both OAuth and API-key image requests returned HTTP 200. The requests used different prompts, produced distinguishable outputs with different SHA-256 hashes, and both subsequent image-to-video requests reached done.

This addresses the routing regression. If repeated fixed images still occur after the fix is merged, please provide a new prompt, timestamp, and request ID so an upstream generation issue can be investigated separately from routing.

Fix PR: #4433

heathermhuang avatar Jul 16 '26 11:07 heathermhuang

我今天也遇到了,我通过规律发现是那些便宜的周卡订阅会有这个问题,换成正价账号就没有这个问题了

put-go avatar Jul 16 '26 12:07 put-go

@heathermhuang 我使用最新版本复测后确认,该问题会在部分特定订阅账号上稳定出现。

例如提示词明确要求“小猫跳舞”,但任务几乎瞬间生成成功,返回的内容却与提示词和原图明显不符。多次测试后发现,结果似乎是在少量已有视频中随机选取或拼接,更像是触发了某种降级或兜底逻辑,而非正常执行视频生成任务。

我已经通过邮件发送了详细的复现过程,以及可用于复现问题的 Grok 测试账号。

put-go avatar Jul 17 '26 00:07 put-go

补充:同样遇到相同问题,这部分账号在网页上生视频是正常的,但走API生成就会出现生成完全无关的视频。唯一异常是 weekly/monthly billing 查询都返回 403 Access denied。但网页上确实是supergrok。

pxj2026 avatar Jul 17 '26 01:07 pxj2026

I opened #4474 with two focused fixes:

  1. Grok media requests now normalize legacy image_url references to xAI's current url payload shape for image, images, reference_images, and mask.
  2. New image/video generation uses a media-only eligibility gate. OAuth accounts with a recorded weekly or monthly billing 403 are excluded automatically, while chat and existing video status lookups remain available.

Direct xAI canaries confirmed that some subscription accounts can still return HTTP 200 / done with unrelated fallback media. Because output quality is not a deterministic routing signal, #4474 also adds the explicit account override extra.grok_media_eligible=false for those known-bad accounts. Set it to true to force-enable an account, or null on update to restore automatic probe-based behavior.

No test-account credentials or private endpoint details are included in the PR.

heathermhuang avatar Jul 17 '26 04:07 heathermhuang

Production deployment and E2E update:

  • A downstream build containing merged PR #4474 and the scheduler-cache follow-up #4484 is now deployed and healthy with zero container restarts.
  • The complete OAuth/API-key matrix passed: text, image generation, and image-to-video generation all returned successful results, and every request was attributed to the expected account and group in usage logs.
  • I repeated the exact kitten image-to-video request from this issue against the paid OAuth path. Submission returned asynchronously, final completion took 82 seconds, and the resulting file was an 8.04-second video. Frame inspection showed the same kitten and background, forward movement, blinking, visible tail movement, and no unrelated scene replacement. This did not reproduce the near-instant repeated fallback symptom.
  • In a controlled quarantine test, cached OAuth text remained available, while OAuth image and video requests were rejected before upstream dispatch with grok_media_no_eligible_account. API-key media remained available. The account and Redis scheduler state were restored after the test.
  • All disposable test API keys were deleted and independently returned HTTP 401 afterward.

One important limitation remains: this validates the paid OAuth path and the quarantine behavior, but it does not prove the behavior of every weekly account. I could not complete device authorization for the disposable weekly-account session, so a natural weekly-account production generation was not available for the final matrix. Weekly-account classification still depends on obtaining its billing observation.

#4484 fixes a cache-path gap found during deployment: the scheduler's slim Redis metadata was dropping the media eligibility fields added by #4474, which could otherwise make a quarantined account eligible again after a cache hit.

Related reports tracked during this work: #4471, #4421, #4419, #4412, and #4433.

heathermhuang avatar Jul 17 '26 07:07 heathermhuang