Trouble with Veo 2 API Video Generation

Hi, I’m trying out the Veo 2 API to generate videos, but I’m having trouble specifying the number of videos I want. By default, it seems to generate 2, but I only want to generate 1. I’m passing the numberOfVideos parameter in the JSON, but it doesn’t seem to be recognizing it.

I’ve attached the JSON I’m using. Could someone help me determine what’s going wrong or if I’m using the parameter incorrectly?

Thanks!

{
  "instances": [
    {
      "prompt": "A cinematic video of an artist painting a canvas in a cozy studio. The camera slowly moves around the painter as they mix colors on a palette and apply brush strokes with focus and emotion. Natural light comes through a large window, casting soft shadows. The atmosphere is calm and inspiring, with subtle background music."
    }
  ],
  "parameters": {
    "aspectRatio": "9:16",
    "personGeneration": "allow_adult",
    "durationSeconds": 5,
    "numberOfVideos": 1
  }
}

Hi @lucas_popritkin,

Welcome to forum, thanks for reporting the issue. I tried running the API without extra parameters I was able to run and it will generate two videos but with extra parameters numberOfVideo:1 and durationSeconds": 5, doesn’t stop. I will report back to the team.

I observed that using python api this is not the case and it will generate as per paramters.

Thank you.

1 Like

Thank you very much. Can you let me know when it is resolved?