Skip to content

feat: Nano Banana GA and video input samples#14246

Merged
iennae merged 2 commits into
GoogleCloudPlatform:mainfrom
katiemn:nb
May 29, 2026
Merged

feat: Nano Banana GA and video input samples#14246
iennae merged 2 commits into
GoogleCloudPlatform:mainfrom
katiemn:nb

Conversation

@katiemn

@katiemn katiemn commented May 28, 2026

Copy link
Copy Markdown
Contributor

Description

Add samples for video-to-image with Nano Banana 2 and update Nano Banana models

@katiemn katiemn requested review from a team as code owners May 28, 2026 23:38
@snippet-bot

snippet-bot Bot commented May 28, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@product-auto-label product-auto-label Bot added the samples Issues that are directly related to samples. label May 28, 2026

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

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.

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().

Comment thread genai/image_generation/imggen_mmflash_img_with_vid.py Outdated
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",

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.

note: validated that this was the correct model

@iennae

iennae commented May 29, 2026

Copy link
Copy Markdown
Contributor

validating based on policy guidance from Ankur and review of the code

@iennae iennae merged commit cbab284 into GoogleCloudPlatform:main May 29, 2026
8 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants