Vertex AI - All models fail with '404 Publisher Model not found' error

Hello,

I’m having an issue with my project automatisation-blog-465109 where all my calls to the Vertex AI API from a Cloud Function fail.

I consistently get a 404 Publisher Model ... was not found error, no matter which model I try.

Error Message:
{ “details”: “404 Publisher Model projects/automatisation-blog-465109/locations/europe-west1/publishers/google/models/gemini-1.5-flash-001 was not found or your project does not have access to it.”, “error”: “Internal Server Error” }

What I have already checked:

  1. The Vertex AI API is enabled in my project.
  2. The service account for my Cloud Function has the “Vertex AI User” role.
  3. The project is linked to an active billing account.
  4. I have tested multiple models, including gemini-1.5-flash-001, gemini-1.0-pro, and even text-bison@001, and the error is the same for all of them.

Since I don’t have access to paid technical support, I’m hoping the community can help. Could there be another type of restriction on my project that is preventing access to all AI models?

Thank you for your help.

Hi @simo152,

Welcome to Google Developer Program Forums!

The model you’re trying to use has been discontinued — text-bison@001. That’s the reason you’re getting a 404 error.

You need to migrate to a newer, supported model. As of now, “gemini-2.0-flash” or other “gemini” models are the recommended replacements for text generation tasks. You can find the latest supported models and their lifecycle in this documentation.

When switching models, keep in mind that the API structure and input/output formats may differ slightly. Be sure the model ID in your code exactly matches the supported one you’re targeting from the Vertex AI Model Garden.

If you’ve already migrated and are still running into issues, double-check your project permissions:

  • Ensure the service account for your Cloud Function has the Vertex AI User role
  • Review your IAM setup for any restrictions, If you’re looking for specific IAM permissions required for different Vertex AI, check this document.
  • Try calling the model from us-central1, which is the default and most supported region for Vertex AI models

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

I hope you have GCP console access , in continuation to what @dawnberden said Goto https://console.cloud.google.com/vertex-ai/studio/multimodal?project= for your project and then create prompt with the model where you are seeing 404 Publisher Model error , if you see the same 404 error there also it means you can’t use the same model for now , either deprecated or not enabled for you project. try with the models listed there, use the working model in the client Agent.