Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Vertex AI: Gemini API access denied – 400 Bad Request "not allowed to use Publisher Model"

Hi everyone,

I'm trying to access Gemini models (e.g. `gemini-pro`) via the Vertex AI API in a Google Cloud project. I’m using a service account with proper credentials, and everything is set up correctly, including authentication and region (`europe-west4`).

However, I consistently get this error:
Client error: `POST https://europe-west4-aiplatform.googleapis.com/v1/projects/gemini-dsgvo/locations/europe-west4/publi...` resulted in a `400 Bad Request` response: { "error": { "code": 400, "message": "Project `XXX the project number XXXX` is not allowed to use Publisher Model `projects/g (truncated...)

1 1 85
1 REPLY 1