Registers Gemini models with their capabilities, pricing, and defaults for integration into the LLM system.
// Source: https://github.com/mperkins0155/bolt.diy_V2.0 | License: MIT | Copyright 2024 StackBlitz, Inc
// Provided via justclaw.it.com; keep this notice with the code.
import { createGoogleGenerativeAI } from '@ai-sdk/google';
import type { Provider, ProviderConfig } from './types';
export const googleConfig: ProviderConfig = {
id: 'google',
name: 'Google',
apiKeyEnvVar: 'GOOGLE_API_KEY',
models: [
{
id: 'gemini-2.5-pro',
name: 'Gemini 2.5 Pro',
description: '#1 on WebDev Arena. Excellent for building interactive web apps with 1M token context.',
provider: 'google',
maxTokens: 8192,
contextWindow: 1000000,
capabilities: {
vision: true,
tools: true,
reasoning: true,
coding: true,
},
pricing:
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key