Gemini Integration
Monitor Google Gemini API usage and conversations
Gemini Integration
Monitor Gemini API usage across your organization to detect Shadow AI and maintain compliance.
Quick Start
const connector = await client.createConnector({
connector_type: 'gemini',
display_name: 'Company Gemini',
credentials: {
api_key: 'xxxxxxxxxxxx',
},
});
await client.syncConnector(connector.connector_id, true);
Authentication
{
"credentials": {
"api_key": "xxxxxxxxxxxx"
}
}
For Vertex AI:
{
"credentials": {
"project_id": "my-project",
"location": "us-central1",
"service_account_key": "{...}"
}
}
Synced Content
| Content Type | Description | Purpose |
|---|---|---|
| API Logs | Request/response | Usage tracking |
| Prompts | System prompts | Asset inventory |
| Files | Uploaded content | Data governance |
Configuration
{
"settings": {
"sync_conversations": true,
"retention_days": 90,
"vertex_ai": false
}
}
Shadow AI Detection
const usage = await client.detectShadowAI({
connector_type: 'gemini',
time_range: 'last_30_days'
});
Rate Limits
- Consumer API: 60 requests/minute
- Vertex AI: Based on quota
