@byokey/google
v0.2.0
Published
Google (Gemini) provider adapter for the BYOK Infrastructure Toolkit
Maintainers
Readme
@byokey/google
Google Gemini provider adapter for the BYOK Infrastructure Toolkit.
Supports all Gemini models including Gemini 3.1 Pro, 3 Flash, 2.5 Flash, 2.5 Pro, and more.
Installation
npm install @byokey/core @byokey/googleUsage
import { createClient } from '@byokey/core';
import { google } from '@byokey/google';
const client = createClient({ adapters: [google()] });
const response = await client.execute({
provider: 'google',
model: 'gemini-2.5-flash',
credential: 'AIza...', // Your Google AI API key
messages: [{ role: 'user', content: 'Hello!' }]
});Configuration
google({
baseUrl: 'https://generativelanguage.googleapis.com', // Custom endpoint
apiVersion: 'v1beta', // API version
timeoutMs: 30000, // Request timeout
});