Google Veo 3 integration with Google Cloud Console on n8n

I’m trying to make a flow in which image and prompt i’ll provide and video should be generated
using Google Cloud Console Project Free Trial credits
above is my flow i’m calling veo3 api it returns name property with url which contains operation id
then poll operation says Bad request - please check your parameters The Operation ID must be a Long, but was instead

and without .split(“/”).pop() in poll operation node
The resource you are requesting could not be found Error 404 (Not Found)

chatgpt keeps telling changes which mostly result in these 2 errors
can somebody guide me with proper Veo3 integration from GCP in n8n

1 Like

Hey Gupta,

I am struggling with the exact same problem for 2 months now. I would like to connect VEO 3 via Vertex API to bypass app like Falai… I am still stuck on it…

Hey @Renardo91 @Prince_Gupta

Instead of using .split("/").pop(), try extracting the operation ID using a more reliable method, like this one👇


const operationName = $json.name;
const operationId = operationName.substring(operationName.lastIndexOf('/') + 1);
return [{ json: { operationId } }];

Let me know if this helps

1 Like