Persistent Gemini API 404 Error (v1beta) - Environment Issue

Hello,

I have a deployed Streamlit app that is stuck with a persistent Gemini API error. It seems to be an environment issue that I cannot resolve.

I have already tried all of the following troubleshooting steps without success:

  • Corrected the model name to gemini-pro and gemini-1.5-flash.
  • Simplified my requirements.txt to only include streamlit, google-generativeai, and pandas.
  • Rebooted the application multiple times.
  • Completely deleted and redeployed the application to build a fresh environment.
  • Generated and used a brand new Google API key.
  • Confirmed the code runs locally (or confirmed it fails locally with the same error).

The error persists even on a clean deployment, which suggests a platform or account-level issue. Can someone please look into the environment for my application?

Thank you.