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/publishers/google/models/gemini-pro:generateContent](https://europe-west4-aiplatform.googleapis.com/v1/projects/gemini-dsgvo/locations/europe-west4/publishers/google/models/gemini-pro:generateContent) 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…)