diff --git a/README.md b/README.md index 58242bc..ce5d2c6 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/src/models/gemini.py b/src/models/gemini.py index e8a8ea9..11cdd86 100644 --- a/src/models/gemini.py +++ b/src/models/gemini.py @@ -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"]