Veo 2 and n8n: Any success

Describe the problem/error/question

I have 2 successful calls to the VEO API which returns an URI. Issue is that this URI is a 403 error message about a GCP project I don’t have. I really don’t understand where this project ID is from as it isn’t tied to any API key or part of my workflows

I have no idea how to troubleshoot this as I can’t access this project
Thanks for any pointer

image

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:
1 Like

Hi, could you share your workflow.
n8n attach workflow

1 Like
1 Like

it seems you need to enable this on your google console?

Are you in n8n cloud or selfhosting?

Best regards,

Samuel

Thanks Samuel, I checked and the issue is that Gemini is indeed enabled in GCP. The error message refers to another GCP project I don’t have access to. What I am struggling to understand is where this GCP project is coming from, as I don’t call it in any of my API calls. I even searched for that project ID in GCP and it doesn’t exist. I use the cloud version of n8n.

1 Like

@Anthony_Roger Okay if your using cloud version it’s likely there workspace, did you have to setup clientid and secret? or was the login button there to auth with the credentials? I think you used used httpqueryauth actually.

You can try change from generic credential type, changing the auth type, so you create an app, add the right permission this would probably work.


or maybe predefined

and follow this: Google OAuth2 single service | n8n Docs

Once setup and added the Gemini api, you should be good to goo.

Hope this helps,

Samuel

First thanks Samuel, I really appreciate the pointer here as I spent an inordinate amount of time trying to fix the issue.

So, first I believe your solution may solve the issue as this gemini model seems to only accept oaut or service account so when I used my API key in my query I may have managed to bypass some control as I got the results but it was blocked at the end. (I was charged by Google for some successful calls but can’t access the file…)

Now, next issue: I have trying to set up OAuth2 and managed all the steps listed on your site. The issue is with the Google API doc which doesn’t specify the scope I need to use for my app. I found 3 (2 restrictred, 1 none) but had no luck at setting these up. If anyone has any reco wtr the scope that is required to access VEO 2, I would be super grateful

1 Like

Hey @Anthony_Roger

Just to confirm it’s not my site, haha, but n8n am just being a community member trying to help others out.

Alot of people do say similar things, like you must been working here for ages, no i’ve just been in IT my whole life haha I don’t directly work for n8n yet.

So just to confirm, does the scopes appear as error message now? normally you can just add the Gemini api, and enable it. I believe this should add most the scopes needed. (I could be wrong)

But is this all enabled now? and you see the error in n8n for scopes, when making request?

Am uk based, veo 2 isn’t avaible yet to us :frowning:

Best regards,

Samuel

Thanks Samuel. So I checked the N8N supported scope and gemini isn’t there. So instead of Oauth I had to revert back to a service account. I used the predifined credential, got my api calls working with my ai studio key but still get this error message. I guess the model being somewhat new, it ain’t supported yet by n8n so will need to wait I guess. Thanks anyway for all the help, I think we exhausted all paths

1 Like