[URGENT] Project cannot access Gemini API (404 Not Found) after all configuration steps completed. Console UI is also failing

Hello,

I am facing a persistent "404 Not Found" error when trying to call the Gemini API, and I have exhausted all possible troubleshooting steps. Even the Google Cloud Console itself is now failing to load basic pages like the dashboard and support.

**Project Details:**

  • `Project ID: (PII Removed by Staff)

  • `Project Number: (PII Removed by Staff)

**Problem:**

  • All API calls from my Google Apps Script backend to "generativelanguage.googleapis.com" fail with a "404 models/gemini-pro is not found" error.

**Summary of Completed Steps:**

  • Billing is ACTIVE and correctly linked to this project.

  • The "Generative Language API" is ENABLED.

  • A new, unrestricted API Key was generated from within this project and is being used.

  • The Google Apps Script is correctly linked to this standard GCP Project (not a "Default" project).

  • Execution Logs in Apps Script PROVE that the script is being called successfully from my client app, but the final outbound call to the Gemini API fails.

  • I cannot file a bug report because the Support and Issue Tracker pages are also inaccessible or show permission errors for my account.

This appears to be a deep platform-level issue with my project. Can anyone from Google please investigate the internal logs for project (PII Removed by Staff)? Thank you.


Hi Ahmad, welcome to the community.

Sorry to see you are having challenges. Hopefully this will help. The first thing I notice is the that the model is saying gemini-pro, not something like gemini-2.5-pro. The earliest version of Gemini pro was retired in Feb this year, and it could be the model being used needs to be updated to a more current model.

You may also need to check that the latest library for Gemini is being used by the Script.

Hope this helps.

​Hi Paul,

​Thank you very much for your response and advice. I really appreciate it.

​You are absolutely right about the older gemini-pro model being retired. As you suggested, I have already tried replacing it with newer models according to the documentation, such as gemini-1.0-pro and gemini-1.5-flash.

​Unfortunately, I am still facing the exact same issue. No matter which model I try, I consistently get a 404 Not Found error with the message:

“Publisher Model … was not found or your project does not have access to it.”

​To provide more context, here are the extensive troubleshooting steps I’ve already taken:

  • ​I have enabled both the “Vertex AI API” and the “Generative Language API”.

  • ​I have confirmed that Billing is active for the project (currently on a Free Trial with credits).

  • ​I created a completely new Google Cloud project to rule out any misconfiguration, and the issue persists.

  • ​I created a new API Key and ensured it has no restrictions (“Don’t restrict key”).

  • ​The API call is made via Google Apps Script, and I have added the required https://www.googleapis.com/auth/cloud-platform OAuth Scope to the appsscript.json manifest file.

  • ​I also discovered that my account does not have permission to file a technical support case, which might be related to this access issue.

​Given all these steps, the issue strongly seems to be an account/project-level permission or entitlement problem, rather than a code error.

​Is there anything else I can check on my end, or could your team possibly investigate from the backend why my project does not seem to have access to these standard Gemini models?

​Thank you very much for your time and help.

​Best regards,

Ahmad Musyaffak

I am having the same issue. and I have already verified the following on my own:"

  • Billing is active and linked to the project.

  • The “Vertex AI API” is shown as “Enabled” in the console.

  • My user account has the “Vertex AI User” and “Owner” roles for this project.

  • I am using a fresh OAuth 2.0 access token for authentication.

Is anyone from google can us with this, please

Hi,

Unfortunately no one at Google can access a User’s account based on a Community post. You’ll need open a Customer Care case. If you don’t have access to open a ticket, I recommend finding someone within your company that can.

In the meantime, can you access the AI Studio? AI Studio

It will give you a chance to check whether you can use the Endpoint. It also provide code samples which may help find the problem if it is code related.

1 Like

Hi Paul,

Thank you so much for your suggestion. I have followed your advice and tested the model in AI Studio (specifically, the Vertex AI Studio for my project (PII Removed by Staff)).

The good news is that it works in the AI Studio. I was able to get a successful response using the model: gemini-1.5-flash-preview-09-2025.

However, when I use that exact same model name (gemini-1.5-flash-preview-09-2025) in my REST API call from Google Apps Script, I still get the 404 Not Found error: “Publisher Model … was not found or your project does not have access to it.”

To summarize the situation:

  • The model works correctly inside the Vertex AI Studio UI.

  • The exact same model fails with a 404 error when called via the REST API.

  • I also do not have permission to create a technical support case.

This seems to be a discrepancy between the UI access and the API access for my project. Is there any way this can be investigated further from your end? It seems my project is not correctly provisioned to access the models via the API.

Thank you for your help.

Hi, was the above 404 error via REST API call made using the example information from the Studio? If not, can you try that? If the example cURL calls work, then it may just be a matter of finding what is different between the App code’s configuration and the working example.