問題描述
使用 Google Cloud Code Assist API(Google Antigravity)時,出現以下錯誤:
Cloud Code Assist API error (429): You have exhausted your capacity on this model.
Your quota will reset after 3h20m30s.
錯誤原因
這是 HTTP 429 Too Many Requests 錯誤,表示:
- API 請求次數超過配額限制
- 該 model(如
claude-opus-4-5-thinking)有每日使用上限 - 達到上限後會被限流,需等待 quota 重置
影響
- 無法使用該 model 進行對話
- API 請求會持續失敗直到 quota 重置
- 通常需要等待 1-4 小時不等
解決方案
方案一:等待 quota 重置
錯誤訊息會顯示剩餘時間,等待後自動恢復。
方案二:切換到其他 model
暫時使用其他可用的 model,例如:
gemini-3-flash— 通常配額較寬鬆kimi-k2— Moonshot 的 modelglm-4.7— 智譜的 model
在 OpenClaw 中可以用指令切換:
/model gemini-3-flash
方案三:使用多個帳號
如果需要大量使用,可以設定多個 Google 帳號輪流使用。
如何避免
- 監控 API 使用量
- 避免在短時間內發送大量請求
- 使用 thinking model 時注意 token 消耗較高
- 考慮使用較輕量的 model 處理簡單任務
相關錯誤碼
| 錯誤碼 | 說明 |
|---|---|
| 429 | 請求過多,超過配額 |
| 401 | 認證失敗,token 無效或過期 |
| 403 | 沒有權限存取該資源 |
| 500 | 伺服器內部錯誤 |
發佈留言