I get I’m quite new, but until last week I was using Veo3 and Veo2 without any problem, using the same api_key of Gemini with the normal Google AI call in python:
client = genai.Client(api_key=GEMINI_API_KEY) ## and then the call.
Now, when I call both models I get this message:
{
“error”: {
“code”: 403,
“message”: “Generative Language API has not been used in project 542708778979 before or it is disabled. Enable it by visiting [unuseful link] 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”: {
“activationUrl”: [same unuseful link],
“serviceTitle”: “Generative Language API”,
“service”: “generativelanguage . googleapis . com”,
“containerInfo”: “542708778979”,
“consumer”: “projects/542708778979”
}
},
{
“@type”: “type.googleapis.com/google.rpc.LocalizedMessage”,
“locale”: “en-US”,
“message”: “Generative Language API has not been used in project 542708778979 before or it is disabled. Enable it by visiting [still unuseful link] 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”: “[another unuseful link which brings to a wrong project id]”
}
]
}
]
}
}
Strangely, 542708778979 it’s definitely not my project id (which is “gen-lang-client-0043515583”) and I cannot change anything on it.
I made everything I could, renewing api_keys, switching to OAuth2, open a new project and so.
I would like to keep this method and not switch to vertex API, which I think at this stage I do not need it.
In any case, I saw that I’m not the only one with this problem, but I have not seen any practical solution until now.
I need help, I need to go on production with my app very soon.