gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

can i add image generation model configs for nano banana ?

Open curiouscurrent opened this issue 4 months ago • 11 comments

What would you like to be added?

Went through the repo and found that there is no image generation models like nano banana in the model configs. Shall I add it ?

Thankyou.

Why is this needed?

Image generation is widely used everywhere, and accessing it via cli is equally important.

Additional context

No response

curiouscurrent avatar Jul 19 '26 12:07 curiouscurrent

Hi! I'd like to work on this issue. If adding Nano Banana model configurations aligns with the project's roadmap, I'd be happy to implement it and submit a PR. Please let me know if there are any design considerations or conventions I should follow.

Sumitha007 avatar Jul 20 '26 04:07 Sumitha007

Hi @Kunall7890! I'm currently working on a fix for this and will submit a PR soon, so please feel free to take a look at other open issues instead. Thanks!"

Sumitha007 avatar Jul 20 '26 08:07 Sumitha007

Hi! I'd be interested in working on this.

Before I start, I had a couple of questions after looking through the repository:

  • I noticed nanobanana is already referenced as an extension (mentioned in the changelog), but I couldn't find any built-in image generation model configs in defaultModelConfigs.ts.
  • Should this enhancement add the underlying Gemini image generation model(s) as built-in model configs, or is the expectation to improve/extend the existing extension?
  • Also, could you clarify which official Gemini model ID(s) should be added?

I'd be happy to work on it once the expected scope is clarified.

Sumitha007 avatar Jul 20 '26 09:07 Sumitha007

Effort Analysis: The request involves adding configuration for a new image generation model ('nano banana') to the built-in model registry. This primarily requires adding an entry to the DEFAULT_MODEL_CONFIGS object in packages/core/src/config/defaultModelConfigs.ts, defining its metadata (tier, family, features) and potentially an alias in packages/core/src/config/models.ts. Since the codebase already has a structured ModelConfigService for managing these definitions, adding a new model is a trivial configuration update. The issue is also labeled as a 'good first issue', which aligns with the effort/small categorization for trivial logic and config updates.

gemini-cli[bot] avatar Jul 20 '26 20:07 gemini-cli[bot]

I am starting work on this issue.

kunalrawat425 avatar Jul 22 '26 17:07 kunalrawat425

Hi! I'd like to work on this issue.

I looked through packages/core/src/config/defaultModelConfigs.ts and found that image generation models aren't currently registered in the built-in model configs. From the code, it looks like this primarily involves adding entries to modelDefinitions and possibly aliases.

Could you please confirm which official Gemini image model IDs should be added (e.g. gemini-2.5-flash-image, gemini-3.1-flash-image-preview, etc.) and whether only defaultModelConfigs.ts should be updated?

Rishindra1430 avatar Aug 05 '26 19:08 Rishindra1430

👋 @Champbreed, thanks for your interest in this issue! We're reserving self-assignment for issues that have been marked with the help wanted label. Feel free to check out our list of issues that need attention.

gemini-cli[bot] avatar Aug 24 '26 06:08 gemini-cli[bot]

Hi maintainers — I’d like to contribute to this issue. I checked #28502 and it was auto-closed without code changes, so this appears to remain unimplemented.

I have prepared a focused local proposal that adds the image model configurations, tests, schema updates, and documentation. Before submitting it, could you confirm the expected scope — an extension/template configuration, or core model support — and add the help wanted label if external contributions are welcome? I’ll keep the PR focused and run npm run preflight before opening it.

mimimind avatar Aug 29 '26 05:08 mimimind

This item has been automatically marked as stale due to 60 days of inactivity. It will be closed in 14 days if no further activity occurs. Thank you!

gemini-cli[bot] avatar Oct 29 '26 01:10 gemini-cli[bot]

I want to work on this issue of adding image generation model , Please Assign this issue to me.

Shashank123-wq-tech avatar Nov 24 '26 12:11 Shashank123-wq-tech

I would like to take this on — I will open a PR adding the nano-banana image model config to DEFAULT_MODEL_CONFIGS.

phon-t avatar Nov 25 '26 13:11 phon-t