Skip to content

Conversation

@dhvll
Copy link
Contributor

@dhvll dhvll commented Oct 22, 2025

Add support for Google Vertex AI Veo 3.1 video models to Echo router and Next.js video template.
Set Veo 3.1 as the default in the template.
Resolves: #595

@vercel
Copy link
Contributor

vercel bot commented Oct 22, 2025

@dhvll is attempting to deploy a commit to the Merit Systems Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@vercel vercel bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Comments:

templates/next-video-template/src/app/api/generate-video/validation.ts (lines 37-40):
The validation file was not updated to include the new veo-3.1 models, which will cause the API to reject all requests using the newly added veo-3.1 models even though they are now in the UI dropdown.

View Details
📝 Patch Details
diff --git a/templates/next-video-template/src/app/api/generate-video/validation.ts b/templates/next-video-template/src/app/api/generate-video/validation.ts
index 669dfd41..16639b8d 100644
--- a/templates/next-video-template/src/app/api/generate-video/validation.ts
+++ b/templates/next-video-template/src/app/api/generate-video/validation.ts
@@ -35,6 +35,8 @@ export function validateGenerateVideoRequest(body: unknown): ValidationResult {
   }
 
   const validModels: VideoModelOption[] = [
+    'veo-3.1-fast-generate-preview',
+    'veo-3.1-generate-preview',
     'veo-3.0-fast-generate-preview',
     'veo-3.0-generate-preview',
   ];

Analysis

API validation rejects veo-3.1 models that are available in UI

What fails: validateGenerateVideoRequest() in validation.ts only allows veo-3.0 models, rejecting veo-3.1 models that are available in the UI dropdown

How to reproduce:

# Send API request with veo-3.1 model:
curl -X POST /api/generate-video -H "Content-Type: application/json" \
  -d '{"prompt":"test video","model":"veo-3.1-fast-generate-preview"}'

Result: Returns 400 error: "Model must be: veo-3.0-fast-generate-preview, veo-3.0-generate-preview"

Expected: Should accept veo-3.1 models since they're defined in VideoModelOption type and available in video-generator.tsx UI component

@dhvll dhvll requested a review from zdql October 22, 2025 15:10
@dhvll
Copy link
Contributor Author

dhvll commented Oct 27, 2025

@zdql can I get review on this?

@dhvll
Copy link
Contributor Author

dhvll commented Nov 1, 2025

Can I get a review on this @rsproule

Copy link
Contributor

rsproule commented Nov 3, 2025

can you add this option in the next video template?

how did you test this?

@dhvll
Copy link
Contributor Author

dhvll commented Nov 3, 2025

Haven’t tested the old and new models yet — just updated the latest models according to the pricing changes.

Copy link
Contributor

Easiest way to test is probably to update the video template with these new model options + point it at your local version of echo

@dhvll
Copy link
Contributor Author

dhvll commented Nov 12, 2025

Okay on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Veo 3.1 in the veo provider

3 participants