Update Nano Banana model IDs to GA (drop -preview suffix)
Google promoted gemini-3-pro-image-preview and gemini-3.1-flash-image-preview (Nano Banana Pro and Nano Banana 2) to GA in early 2026, dropping the -preview suffix from their model IDs. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014Bwg5aRmgChpwrVnpNgoQm
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
64b7889d6b
commit
0e1b7be6f2
@@ -34,7 +34,7 @@ A separate node, **API Image Generate (BYOK)**, handles still images. Gemini onl
|
||||
| Model family | Example model ids | Text-to-image | Image-to-image | Sizes |
|
||||
|---|---|---|---|---|
|
||||
| Imagen | `imagen-4.0-generate-001`, `imagen-4.0-fast-generate-001`, `imagen-3.0-generate-002` | ✅ | ❌ (no edit endpoint) | 1024x1024, 1792x1024, 1024x1792 |
|
||||
| "Nano Banana" (Gemini's multimodal image models) | `gemini-2.5-flash-image` (Nano Banana), `gemini-3-pro-image-preview` (Nano Banana Pro), `gemini-3.1-flash-image-preview` (Nano Banana 2) | ✅ | ✅, including **multiple** reference images | 1024x1024, 1792x1024, 1024x1792 |
|
||||
| "Nano Banana" (Gemini's multimodal image models) | `gemini-2.5-flash-image` (Nano Banana), `gemini-3-pro-image` (Nano Banana Pro), `gemini-3.1-flash-image` (Nano Banana 2) | ✅ | ✅, including **multiple** reference images | 1024x1024, 1792x1024, 1024x1792 |
|
||||
|
||||
Imagen calls litellm's `aimage_generation` (Google's `:predict` endpoint) and can only generate from text — it has no image-editing capability in litellm at all, so Imagen models don't appear in the node's `image`-source dropdown. Nano Banana models use the same call for text-to-image, and litellm's `aimage_edit` (Google's `:generateContent` endpoint) for image-to-image — which natively accepts a list of images, so batching multiple images into `reference_image` (the same convention as Omni Flash video, above) sends all of them as references in one call.
|
||||
|
||||
|
||||
@@ -42,12 +42,13 @@ IMAGEN_STATIC_MODELS = [
|
||||
# "Nano Banana" family: Gemini's own multimodal image models. Support both
|
||||
# text-to-image (aimage_generation, ":generateContent") and image-to-image
|
||||
# (aimage_edit, also ":generateContent" — Imagen has no edit endpoint at all).
|
||||
# Google's naming: gemini-2.5-flash-image = Nano Banana, gemini-3-pro-image-preview
|
||||
# = Nano Banana Pro, gemini-3.1-flash-image-preview = Nano Banana 2.
|
||||
# Google's naming: gemini-2.5-flash-image = Nano Banana, gemini-3-pro-image
|
||||
# = Nano Banana Pro, gemini-3.1-flash-image = Nano Banana 2. Both Pro and 2
|
||||
# reached GA in early 2026 and dropped their "-preview" suffix.
|
||||
NANO_BANANA_STATIC_MODELS = [
|
||||
"gemini-2.5-flash-image",
|
||||
"gemini-3-pro-image-preview",
|
||||
"gemini-3.1-flash-image-preview",
|
||||
"gemini-3-pro-image",
|
||||
"gemini-3.1-flash-image",
|
||||
]
|
||||
|
||||
IMAGE_SIZE_OPTIONS = ["1024x1024", "1792x1024", "1024x1792"]
|
||||
|
||||
Reference in New Issue
Block a user