Google Gemini
Use Google’s Gemini models with RadarOS through the unifiedModelProvider interface. Gemini offers strong multi-modal capabilities—vision, audio, and native file handling.
Setup
- Install
- Environment
Install the Google GenAI SDK (required by RadarOS for Gemini support):
Factory
The Gemini model identifier.
Optional configuration. See Config below.
Supported Models
| Model ID | Description |
|---|---|
gemini-2.5-flash | Fast, efficient. Great for high-throughput and latency-sensitive apps. |
gemini-2.5-pro | Highest capability. Best for complex reasoning and long-context tasks. |
Config
Google API key. If omitted, uses
GOOGLE_API_KEY environment variable.Example
Multi-Modal Support
Gemini supports vision, audio, and file content. Pass multi-modal content viaContentPart[] in messages:
Realtime / Voice (Gemini Live)
For real-time voice agents, usegoogleLive() to create a Google Gemini Live provider:
googleLive() is a shorthand for new GoogleLiveProvider(). It accepts the same config:
npm install @google/genai
See the Voice Agents docs for full details.