Error code

GEMINI_AUTH_FAILED

Gemini API key rejected

  • HTTP status401
  • Classauth
  • Severitycritical
  • Retryableno

Gemini API key rejected

Google rejected the GEMINI_API_KEY — invalid, revoked, or restricted to a different project.

Common causes

  • Key rotated in AI Studio without updating PlatformSystemSettings.
  • Project billing not enabled.
  • Key restricted to a different referer/IP.

What to do

Update GEMINI_API_KEY via super-admin → System Settings. The key lives in the DB, not env vars.

מפתח Gemini נדחה

Google דחתה את GEMINI_API_KEY — לא תקף, בוטל, או מוגבל לפרויקט אחר.

סיבות נפוצות

  • המפתח התחלף ב־AI Studio מבלי לעדכן ב־PlatformSystemSettings.
  • חיוב הפרויקט אינו מופעל.
  • המפתח מוגבל ל־referer/IP אחר.

פעולה מומלצת

עדכנו את GEMINI_API_KEY דרך super-admin → System Settings. המפתח שמור במסד, לא ב־env.