# Veo-3.1-fast-generate-preview: 400 Bad Request

**URL:** <https://discuss.ai.google.dev/t/veo-3-1-fast-generate-preview-400-bad-request/122996>\
**Category:** Gemini API\
**Tags:** veo, bug, api\
**Created:** [February 13, 2026, 11:59pm UTC](https://discuss.ai.google.dev/t/veo-3-1-fast-generate-preview-400-bad-request/122996 "2026-02-13T23:59:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leon\_Nicholls](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/leon_nicholls/32/262_2.png) [@Leon\_Nicholls](https://discuss.ai.google.dev/u/Leon_Nicholls)\
**Post date:** [February 13, 2026, 11:59pm UTC](https://discuss.ai.google.dev/t/veo-3-1-fast-generate-preview-400-bad-request/122996/1 "2026-02-13T23:59:16Z")

</div>

The sample code in the documentation doesn’t allow the generated file to be downloaded: [https://ai.google.dev/gemini-api/docs/video?example=dialogue#aspect-ratio](https://ai.google.dev/gemini-api/docs/video?example=dialogue#aspect-ratio)  
```  
$ node generate-veo-video.mjs  
Waiting for video generation to complete…  
Waiting for video generation to complete…  
Waiting for video generation to complete…  
Waiting for video generation to complete…  
Waiting for video generation to complete…  
Waiting for video generation to complete…  
Waiting for video generation to complete…  
Generated video saved to pizza\_making.mp4  
file:///media/leon/oldlarge/Downloads/node\_modules/[@google](https://discuss.ai.google.dev/groups/google)/genai/dist/node/index.mjs:12202  
const apiError = new ApiError({  
^

ApiError: {“error”:{“message”:“Bad Request”,“code”:400,“status”:“Bad Request”}}  
at throwErrorIfNotOK (file:///media/leon/oldlarge/Downloads/node\_modules/[@google](https://discuss.ai.google.dev/groups/google)/genai/dist/node/index.mjs:12202:30)  
at process.processTicksAndRejections (node:internal/process/task\_queues:105:5)  
at async file:///media/leon/oldlarge/Downloads/node\_modules/[@google](https://discuss.ai.google.dev/groups/google)/genai/dist/node/index.mjs:11905:13  
at async downloadFile (file:///media/leon/oldlarge/Downloads/node\_modules/[@google](https://discuss.ai.google.dev/groups/google)/genai/dist/node/index.mjs:18178:16)  
at async NodeDownloader.download (file:///media/leon/oldlarge/Downloads/node\_modules/[@google](https://discuss.ai.google.dev/groups/google)/genai/dist/node/index.mjs:18154:30)  
at async ApiClient.downloadFile (file:///media/leon/oldlarge/Downloads/node\_modules/[@google](https://discuss.ai.google.dev/groups/google)/genai/dist/node/index.mjs:12150:9)  
at async NodeFiles.download (file:///media/leon/oldlarge/Downloads/node\_modules/[@google](https://discuss.ai.google.dev/groups/google)/genai/dist/node/index.mjs:6950:9) {  
status: 400  
}

Node.js v22.13.1  
```

```auto
import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({});

const prompt = `A montage of pizza making: a chef tossing and flattening the floury dough, ladling rich red tomato sauce in a spiral, sprinkling mozzarella cheese and pepperoni, and a final shot of the bubbling golden-brown pizza, upbeat electronic music with a rhythmical beat is playing, high energy professional video.`;

let operation = await ai.models.generateVideos({
    model: "veo-3.1-fast-generate-preview",
    prompt: prompt,
    config: {
      aspectRatio: "9:16",
    },
});

// Poll the operation status until the video is ready.
while (!operation.done) {
    console.log("Waiting for video generation to complete...")
    await new Promise((resolve) => setTimeout(resolve, 10000));
    operation = await ai.operations.getVideosOperation({
        operation: operation,
    });
}

// Download the generated video.
ai.files.download({
    file: operation.response.generatedVideos[0].video,
    downloadPath: "pizza_making.mp4",
});
console.log(`Generated video saved to pizza_making.mp4`);

```

---

<div class="post-metadata">

**Author:** ![Mustan\_lokhand](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/mustan_lokhand/32/86726_2.png) [@Mustan\_lokhand](https://discuss.ai.google.dev/u/Mustan_lokhand)\
**Post date:** [February 14, 2026, 12:06am UTC](https://discuss.ai.google.dev/t/veo-3-1-fast-generate-preview-400-bad-request/122996/2 "2026-02-14T00:06:49Z")

</div>

I have notified the team about this. We are looking into it

---

<div class="post-metadata">

**Author:** ![KONAL\_PURI](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/konal_puri/32/32455_2.png) [@KONAL\_PURI](https://discuss.ai.google.dev/u/KONAL_PURI)\
**Post date:** [February 14, 2026, 4:58am UTC](https://discuss.ai.google.dev/t/veo-3-1-fast-generate-preview-400-bad-request/122996/3 "2026-02-14T04:58:05Z")

</div>

I have been facing a similar issue for the last 3 hours.

🎥 VIDEO: Polling for completion…  
geminiService.ts?t=1771043164084:359 🎥 VIDEO: Poll #1…  
geminiService.ts?t=1771043164084:359 🎥 VIDEO: Poll #2…  
geminiService.ts?t=1771043164084:359 🎥 VIDEO: Poll #3…  
geminiService.ts?t=1771043164084:359 🎥 VIDEO: Poll #4…  
geminiService.ts?t=1771043164084:359 🎥 VIDEO: Poll #5…  
geminiService.ts?t=1771043164084:369 🎥 VIDEO RESPONSE: ✅ Got video URI {videoUri: ‘[https://generativelanguage.googleapis.com/v1beta/files/6zs4a45selk8:download?alt=media’](https://generativelanguage.googleapis.com/v1beta/files/6zs4a45selk8:download?alt=media%E2%80%99), pollCount: 5}  
geminiService.ts?t=1771043164084:371 🎥 VIDEO: Downloading from URI… {videoUri: ‘[https://generativelanguage.googleapis.com/v1beta/files/6zs4a45selk8:download?alt=media’](https://generativelanguage.googleapis.com/v1beta/files/6zs4a45selk8:download?alt=media%E2%80%99)}  
geminiService.ts?t=1771043164084:372 GET 400 (Bad Request)  
(anonymous) @ geminiService.ts?t=1771043164084:372  
withRetry @ geminiService.ts?t=1771043164084:15  
generateVideoAsset @ geminiService.ts?t=1771043164084:372  
await in generateVideoAsset  
runPipeline @ App.tsx:370  
await in runPipeline  
executeDispatch @ react-dom\_client.js?v=81091858:13622  
runWithFiberInDEV @ react-dom\_client.js?v=81091858:997  
processDispatchQueue @ react-dom\_client.js?v=81091858:13658  
(anonymous) @ react-dom\_client.js?v=81091858:14071  
batchedUpdates$1 @ react-dom\_client.js?v=81091858:2626  
dispatchEventForPluginEventSystem @ react-dom\_client.js?v=81091858:13763  
dispatchEvent @ react-dom\_client.js?v=81091858:16784  
dispatchDiscreteEvent @ react-dom\_client.js?v=81091858:16765Understand this error  
geminiService.ts?t=1771043164084:384 🎥 VIDEO DOWNLOAD FAILED:

---

<div class="post-metadata">

**Author:** ![Leon\_Nicholls](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/leon_nicholls/32/262_2.png) [@Leon\_Nicholls](https://discuss.ai.google.dev/u/Leon_Nicholls)\
**Post date:** [February 16, 2026, 12:55pm UTC](https://discuss.ai.google.dev/t/veo-3-1-fast-generate-preview-400-bad-request/122996/4 "2026-02-16T12:55:02Z")

</div>

It appears to be working now. Will I still get billed for all the generated videos I couldn’t download?

---

<div class="post-metadata">

**Author:** ![system](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/system/32/1_2.png) [@system](https://discuss.ai.google.dev/u/system)\
**Post date:** [November 5, 2026, 6:34pm UTC](https://discuss.ai.google.dev/t/veo-3-1-fast-generate-preview-400-bad-request/122996/5 "2026-11-05T18:34:27Z")

</div>

Closed on November 5, 2026, 6:34pm UTC

This thread was automatically closed 60 days after the last reply. If you are running into an issue, please create a new post.
