Error when using Vertex AI

I am using Vertex AI with the text-bison model. Everything worked last week but now I’m getting an error when hitting the endpoint.

Edit: I have tried to give the service account excessive permissions but to no avail.

Endpoint: https://us-central1-aiplatform.googleapis.com/v1/projects/${projectID}/locations/us-central1/publishers/google/models/text-bison:predict

The compute engine is set to us-central1.

I get this error:
{
message: ‘Project 136xxxxxx473 is not allowed to use Publisher Model projects/olle-johansson-sandbox-ffjl/locations/us-central1/publishers/google/models/text-bison’,
domain: ‘global’,
reason: ‘failedPrecondition’
}

The 136xxxxxx473 is the project number for the project (ID) olle-johansson-sandbox-ffjl.
I have tried changing the locations, and the quota has not been exceeded.

Does anyone know what this means?

Hi @ollejj ,

Welcome to Google Cloud Community!

The error you’re encountering is likely due to the deprecation of PaLM 2 for text or the Vertex AI text-bison model. For more details you can check this documentation. To resolve this, I recommend migrating to Gemini.

I hope this helps.