Hello,
I have a workflow where I make 2 successful calls (status 200) to the Veo 2 API (Post and Get after waiting for the response) and get access to the URI with the video.
When I go to the URI to see the result I then get this 403 error message. (I replaced the actual project name with XXXX)
My issue: I only have 1 project in GCP, in which I created my API key enabling me to access the veo API and I have no clue what this project ("XXX" below) refers to. I looked for it in GCP but could not find it (through search etc....) so I can't fix this issue.
The interesting thing is that I am being charged for the VEO API calls as they are successful but can't access the final output
I look for any response online but am stuck now. Any pointer?
Thanks a mill
{ "error": { "code": 403, "message": "Generative Language API has not been used in project xxxxxxx before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/generativelanguage.googleapis.com/overview?project=xxxxxx then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.", "status": "PERMISSION_DENIED", "details": [ { "@type": "type.googleapis.com/google.rpc.ErrorInfo", "reason": "SERVICE_DISABLED", "domain": "googleapis.com", "metadata": { "serviceTitle": "Generative Language API", "containerInfo": "xxxxxxxx", "service": "generativelanguage.googleapis.com", "activationUrl": "https://console.developers.google.com/apis/api/generativelanguage.googleapis.com/overview?project=xxxxxxx", "consumer": "projects/xxxxxxx" } }, { "@type": "type.googleapis.com/google.rpc.LocalizedMessage", "locale": "en-US", "message": "Generative Language API has not been used in project xxxxxxx before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/generativelanguage.googleapis.com/overview?project=xxxxxxx then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry." }, { "@type": "type.googleapis.com/google.rpc.Help", "links": [ { "description": "Google developers console API activation", "url": "https://console.developers.google.com/apis/api/generativelanguage.googleapis.com/overview?project=xxxxxxx" } ] } ] } }
Hi @anthonycloud,
Welcome to Google Cloud Community!
The error message you encountered indicates that the Generative Language API is not enabled or used in project xxxxxxx. The project ID in that error (xxxxxxx) is different from your known project.
The video URI you're accessing is probably managed or served via a different project than the one where you created your API key. The Veo 2 API might internally be using multiple projects. Even though your API calls are successful, the final output might be restricted due to project permissions.
Here are a few troubleshooting steps you can try to resolve the problem:
1. Check the Project ID:
2. Enable the Generative Language API:
3. Check IAM Permissions:
4. Confirm the credentials your app is using:
Additionally, you may check this thread from Github that is similar to your case. It describes an issue wherein users encountered a 403 Permission Denied error due to project access restrictions.
For a better understanding of Veo 2, you can refer to this documentation.
If the issue persists, you can reach out to Google Cloud Support. When reaching out, include detailed information and relevant screenshots of the errors you’ve encountered. This will assist them in diagnosing and resolving your issue more efficiently.
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.
Thanks a lot for taking the time to answer.
I followed each step and still can't find this project id listed anywhere in my only GCP account. I don't have access to GCP support for some reason while my spent> threshold (I Spent 79 dollars in API calls for no result and can't have any assistance). Seems to be stuck in a loop.
Hi @anthonycloud,
You can modify or check the billing account linked to your project by following the instructions provided in the official Google Cloud documentation. One useful resource is the Billing Docs on Modifying Projects, which guides you through how to associate your GCP project with the correct billing account. Additionally, you can refer to this Google API Support page for further troubleshooting steps related to managing API access and billing issues within your Google Cloud account. Both resources provide useful insights into resolving any project or billing-related issues you're encountering.
Hope it helps!