Google Gemini

Configure Google Gemini models in BraceKit.

Google Gemini

Googleโ€™s Gemini models offer strong performance with unique features like Google Search grounding, extended thinking, and built-in image generation.

Setup

1. Get an API Key

  1. Go to aistudio.google.com
  2. Sign in with your Google account
  3. Click โ€œGet API Keyโ€
  4. Create a new key or copy existing

2. Configure in BraceKit

  1. Open Settings โ†’ AI Provider
  2. Click Gemini in the provider grid
  3. Paste your API key
  4. Select a model from the dropdown (models are fetched automatically)

Settings are saved automatically as you type.

Available Models

Note: Models are fetched dynamically from Googleโ€™s API based on your API key.

Current Stable Models

ModelBest ForContextNotes
gemini-2.5-flashGeneral use1MBest price-performance, fast
gemini-2.5-proComplex tasks1MMost capable, deep reasoning
gemini-2.5-flash-liteSimple tasks1MUltra-low latency, cost-efficient

Image Generation Models

ModelBest For
gemini-2.5-flash-imageNative image generation and editing

Thinking Models

Gemini 2.5 Pro supports extended thinking for complex reasoning:

  • Click the brain icon (๐Ÿง ) in the toolbar to enable
  • The model shows its reasoning process before the response

Note: Image generation models donโ€™t support extended thinking or Google Search.

Special Features

Google Search Grounding

Gemini can use Google Search to provide up-to-date information:

  1. Click the Google icon in the toolbar (when using Gemini)
  2. Send your message
  3. Gemini searches and includes sources
You: What are the latest features in React 19?

BraceKit: [Uses Google Search]

Based on recent information, React 19 includes:

1. **Actions** โ€” New way to handle form submissions
2. **use() hook** โ€” Read resources in render
3. **Server Components** โ€” Improved support

Sources:
- react.dev/blog
- github.com/facebook/react

Note: Google Search grounding is not available on image generation models.

Image Generation

Generate images directly in chat:

  1. Select gemini-2.5-flash-image model
  2. Choose an aspect ratio in the toolbar
  3. Describe the image you want
  4. The image appears in the response

See Image Generation for full details.

Vision

All Gemini models support image analysis:

  • Attach images to messages
  • Ask questions about them
  • Get detailed analysis

Large Context

Gemini models support large context windows (up to 1M tokens):

  • Analyze entire documents
  • Process large codebases
  • Extended conversations

Model Parameters

Configure in Settings โ†’ AI Provider under the Advanced section:

ParameterRangeEffect
Temperature0-2Higher = more creative
Max Tokens1-128KMaximum response length
Top P0-1Nucleus sampling
Top K1-100Token selection limit

Aspect Ratios for Image Generation

When using gemini-2.5-flash-image:

RatioBest For
1:1Profile pictures, icons
16:9Banners, headers
9:16Stories, mobile
4:3Standard photos
3:4Portraits
3:2Photography
2:3Portrait photography
4:5Instagram posts
5:4Landscape orientation
21:9Ultrawide, cinematic

Note: Gemini doesnโ€™t support โ€œautoโ€ aspect ratio. Select a specific ratio.

Deprecated Models

The following models are deprecated or being phased out. Migrate to newer versions:

Deprecated ModelMigrate ToDate
gemini-1.5-progemini-2.5-proSept 2025
gemini-1.5-flashgemini-2.5-flashSept 2025
gemini-2.0-flashgemini-2.5-flashJune 2026

Check Googleโ€™s deprecations page for the latest information.

Pricing

Google offers generous free tiers. Check Google AI pricing for current rates.

Troubleshooting

โ€œQuota exceededโ€

  • Youโ€™ve hit the free tier limit
  • Wait for the quota to reset
  • Or upgrade to paid tier

Image generation failed

  • Ensure youโ€™re using gemini-2.5-flash-image
  • Check your prompt doesnโ€™t violate safety guidelines
  • Try a simpler prompt

Google Search not working

  • Ensure the Google Search toggle is on
  • Image generation models donโ€™t support search
  • Some queries may not trigger search
  • Check your API key has search access

Models not loading

  • Verify your API key is correct
  • Check network connection
  • Try refreshing the model list

โ€œModel not foundโ€ error

  • The model may have been deprecated
  • Check the deprecations page
  • Switch to a newer model version

Sources: