feat: Nano Banana GA and video input samples#14246
Conversation
|
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
There was a problem hiding this comment.
Code Review
This pull request updates several image generation examples to use the "gemini-3.1-flash-image" model and introduces a new example demonstrating image generation using a video source. A critical issue was identified in the new video-based image generation script where the Image class is incorrectly imported from google.genai.types instead of PIL, which will cause a runtime AttributeError when attempting to call Image.open().
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
|
|
||
| response = client.models.generate_content( | ||
| model="gemini-3-pro-image-preview", | ||
| model="gemini-3.1-flash-image", |
There was a problem hiding this comment.
note: validated that this was the correct model
|
validating based on policy guidance from Ankur and review of the code |
Description
Add samples for video-to-image with Nano Banana 2 and update Nano Banana models