Skip to main content

Variable: google

const google: (modelId, config?) => ModelConfig & object

Defined in: packages/core/src/providers/factories.ts:349

Google (Gemini). Auto-detection already routes any gemini-* id here; the factory is for explicit config. The API key is read from GEMINI_API_KEY, GOOGLE_GEMINI_API_KEY, then GOOGLE_GENERATIVE_AI_API_KEY.

Images, video frames, audio, and PDF/file inputs are accepted natively.

Type Declaration​

models​

models: (config?) => Promise<ModelInfo[]>

List the Gemini models the configured key can see (API natural order).

Parameters​

config?​

ProviderConfig

Returns​

Promise<ModelInfo[]>

Example​

Direct thinking budget

const bot = new Baleybot({
model: google('gemini-2.5-pro', { reasoning: { budgetTokens: 16384 } })
});