Hello, I am trying to make an API call to the Vertex AI endpoint from n8n, but I’m getting a 403 error: `Permission ‘aiplatform.endpoints.predict’ denied`. I have already done the following: - The `Vertex AI API` is enabled for my project. - I created a Service Account. - I gave the Service Account the `Vertex AI User` role. - I am using a JSON key from the Service Account to authenticate. Can anyone see what I might be missing? Thank you!
Here are some suggestions that may help resolve the issue:
- Ensure you are granting the correct service account when calling the Vertex AI API. You can also refer to this documentation for a high-level approach when encountering a 403 API error, which includes checking that the Vertex AI per-product, per-project service account (P4SA) has the necessary permissions if your API request depends on other Google Cloud resources.
- There is also a possibility that the issue might be caused by how n8n handles the authentication to Vertex AI. Try isolating the issue by testing the service account independently of n8n.
- Double-check for any typographical errors on the configuration side, these can sometimes cause permission issues.
- Ensure that you have a valid billing account linked to the project when calling the Vertex AI API.
Additionally, kindly note that the model you’re calling, veo-3.0-generate-preview with Text-to-Video capability, is currently in public preview, which means it may not yet offer the expected quality, and might have limited support. While advanced capabilities like Image-to-Video require requesting additional limited access via this waitlist form.