Skip to content

Update Veo 3.1 features including interpolation#207

Open
chrisraygill wants to merge 1 commit intomainfrom
Update-Veo-docs
Open

Update Veo 3.1 features including interpolation#207
chrisraygill wants to merge 1 commit intomainfrom
Update-Veo-docs

Conversation

@chrisraygill
Copy link
Copy Markdown
Collaborator

No description provided.

…ion, and reference images with updated examples and configuration details.
@chrisraygill chrisraygill requested a review from pavelgj January 14, 2026 22:26
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @chrisraygill, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly updates the documentation for the Google GenAI integration, specifically focusing on the Veo 3.1 model. It introduces and clarifies several advanced video generation features, including the ability to interpolate between two images, extend existing videos, and utilize multiple reference images for more guided content creation. The updates also refine the descriptions of various configuration options to accurately reflect the model's capabilities, ensuring users have comprehensive guidance on leveraging these new functionalities.

Highlights

  • Updated Veo 3.1 Capabilities: The documentation for the Veo 3.1 Series now explicitly lists support for 4K resolution, landscape/portrait aspect ratios, video extension, and interpolation, providing a clearer overview of its advanced features.
  • New 'Image-to-Video and Interpolation' Section: The previous 'Video Generation from Photo Reference' section has been updated and expanded to clearly differentiate between generating video from a single image and the new interpolation feature, which transitions between two images.
  • Video Interpolation Feature: A detailed explanation and a new code example have been added to demonstrate how to generate a video that smoothly transitions between a starting image and an ending image using the image and lastFrame configuration parameters.
  • Video Extension Capability: Documentation and a code example are now included for the Veo 3.1 model's ability to extend previously generated videos by an additional 7 seconds, utilizing the video configuration parameter.
  • Enhanced Reference Image Usage: A new section and code example illustrate how Veo 3.1 can leverage up to three reference images to guide the appearance of specific elements (like people or products) within the generated video.
  • Configuration Option Refinements: The descriptions for durationSeconds and resolution have been clarified, and new configuration options like video and lastFrame have been introduced, along with expanded details for referenceImages.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the documentation for the Google Generative AI plugin to include new features for the Veo 3.1 model series, such as interpolation, video extension, and using reference images. The changes are mostly additions of new sections with explanations and code examples. I've found a couple of areas in the documentation that could be improved for clarity and correctness. My main concerns are a duplicated configuration entry and a slightly misleading explanation for the new interpolation feature.

Comment on lines 864 to +865
- **durationSeconds** _number_ (Veo 2 only)

Length of each output video in seconds (5 to 8). Not configurable for Veo 3.1/3.0 (defaults to 8 seconds).
- **durationSeconds** _number_
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

There appears to be a duplicated entry for durationSeconds. The version-specific entry on line 864 is redundant as the new, more detailed entry starting on line 865 covers all cases. I recommend removing the old entry to avoid confusion.

- **durationSeconds** _number_


**Interpolation:**

To generate a video that transitions between a starting image and an ending image, use the `image` parameter for the first frame and the `lastFrame` config for the final frame.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The explanation for interpolation could be clearer. It mentions using an image parameter for the first frame, but the code example provides the starting image as a media part within the prompt array. To avoid confusion, I suggest rephrasing this to better match the code example.

To generate a video that transitions between a starting image and an ending image, provide the starting image as a `media` part in the `prompt` and the ending image in the `lastFrame` config parameter.

let { operation } = await ai.generate({
model: googleAI.model('veo-3.1-generate-preview'),
prompt: [
{ text: 'A ghostly woman swinging gently on a rope swing beneath a massive tree fades away, vanishing completely.' },
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It would be good if this example fed into the extending one...

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.

2 participants