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
- Go to aistudio.google.com
- Sign in with your Google account
- Click โGet API Keyโ
- Create a new key or copy existing
2. Configure in BraceKit
- Open Settings โ AI Provider
- Click Gemini in the provider grid
- Paste your API key
- 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
| Model | Best For | Context | Notes |
|---|---|---|---|
| gemini-2.5-flash | General use | 1M | Best price-performance, fast |
| gemini-2.5-pro | Complex tasks | 1M | Most capable, deep reasoning |
| gemini-2.5-flash-lite | Simple tasks | 1M | Ultra-low latency, cost-efficient |
Image Generation Models
| Model | Best For |
|---|---|
| gemini-2.5-flash-image | Native 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:
- Click the Google icon in the toolbar (when using Gemini)
- Send your message
- 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:
- Select
gemini-2.5-flash-imagemodel - Choose an aspect ratio in the toolbar
- Describe the image you want
- 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:
| Parameter | Range | Effect |
|---|---|---|
| Temperature | 0-2 | Higher = more creative |
| Max Tokens | 1-128K | Maximum response length |
| Top P | 0-1 | Nucleus sampling |
| Top K | 1-100 | Token selection limit |
Aspect Ratios for Image Generation
When using gemini-2.5-flash-image:
| Ratio | Best For |
|---|---|
| 1:1 | Profile pictures, icons |
| 16:9 | Banners, headers |
| 9:16 | Stories, mobile |
| 4:3 | Standard photos |
| 3:4 | Portraits |
| 3:2 | Photography |
| 2:3 | Portrait photography |
| 4:5 | Instagram posts |
| 5:4 | Landscape orientation |
| 21:9 | Ultrawide, 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 Model | Migrate To | Date |
|---|---|---|
| gemini-1.5-pro | gemini-2.5-pro | Sept 2025 |
| gemini-1.5-flash | gemini-2.5-flash | Sept 2025 |
| gemini-2.0-flash | gemini-2.5-flash | June 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
Related
- Image Generation โ Full guide
- OpenAI โ GPT models
- xAI โ Alternative image generation
- Google AI Studio โ Get API keys
Sources: