Skip to content

Add direct Gemini API support for Nano Banana - #28

Merged
AlexBoliachiy merged 2 commits into
masterfrom
codex/gemini-api
Nov 10, 2026
Merged

AlexBoliachiy merged 2 commits into
masterfrom
codex/gemini-api

Conversation

@AlexBoliachiy

@AlexBoliachiy AlexBoliachiy commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Add a direct Google Gemini connection using an AI Studio API key, with provider selection, authenticated key validation, and a model picker for Nano Banana 2.1, 2 Lite, 2, and Pro when returned by Google's catalog.

Generation and reference-based refinement use the Interactions API with square 1K output. Variants run sequentially, completed variants survive a later failure, Stop cancels active requests, and potentially billed requests are never retried automatically. Failed key validation or saving preserves the previous connection, and model choices are saved separately for each provider.

Invalid, expired, and restricted Gemini keys show the Generation settings recovery button. Setup and the README explain paid Gemini API billing and the supported API-key connection.

Related to #23.

Validation

  • Code generation, production and development builds, and TypeScript checks passed.
  • All 137 automated provider, connection, discovery, startup, image-request, history, and error-recovery tests passed with --test-concurrency=1.
  • All 19 running-app settings checks passed with controlled provider responses, covering Gemini selection, validation failure recovery, model persistence and refresh, the recovery button, and existing API/ChatGPT flows.

@AlexBoliachiy
AlexBoliachiy marked this pull request as ready for review November 10, 2026 11:53
@AlexBoliachiy AlexBoliachiy self-assigned this Nov 10, 2026
@AlexBoliachiy
AlexBoliachiy merged commit 7098778 into master Nov 10, 2026
@AlexBoliachiy
AlexBoliachiy deleted the codex/gemini-api branch November 23, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants