feat(google): add gemini-3.1-flash-lite-image and fix Gemini image catalog errors#294
Conversation
Adds Nano Banana 2 Lite, the low-latency/low-cost variant of the Gemini 3.1 image family: 1K-only resolution (2K/4K unsupported), 14 object reference images, and the same minimal/high thinking levels as its siblings.
- gemini-3-pro-image-preview and gemini-3.1-flash-image-preview are deprecated (shut down June 25, 2026); rename to their GA replacement IDs gemini-3-pro-image and gemini-3.1-flash-image. - Fix THINKING_LEVEL casing across the Gemini 3.x image family: the API expects lowercase "high", not "High". - Add the 512px quality tier to gemini-3.1-flash-image (GA gained it over the preview). - Remove QUALITY from imagen-4.0-fast-generate-001: the imageSize parameter is only supported on the Standard and Ultra Imagen 4 variants, not Fast.
Code review1 issue found. Bug: Potential invalid
|
Summary
gemini-3.1-flash-lite-image(Nano Banana 2 Lite) to the Google image catalog: 1K-only resolution, 14 object reference images, generate+edit,minimal/highthinking levels.gemini-3-pro-image-previewandgemini-3.1-flash-image-previeware deprecated and shut down June 25, 2026 — renamed to their GA replacement IDsgemini-3-pro-imageandgemini-3.1-flash-image.THINKING_LEVELwas["minimal", "High"]everywhere in the Gemini 3.x image family; the API expects lowercase"high"(confirmed against an actual code sample in Google's docs). Fixed on all three Gemini 3.x entries.gemini-3.1-flash-image(GA) gained a512pxquality tier over the preview version — added.imagen-4.0-fast-generate-001had aQUALITY: ["1K"]constraint, but Google's docs state theimageSizeparameter is only supported on the Standard and Ultra Imagen 4 variants, not Fast — removed.gemini-2.5-flash-image's aspect ratio list and reference-image count could not be independently confirmed against official docs and were left unchanged.Test plan
make cipasses (lint, format, mypy, bandit, tests with coverage)Modelentry and confirmed it validates