Google Gemini Developer API plugin for Genkit

npm i --save @genkit-ai/googleai
import { genkit } from 'genkit';
import { googleAI, gemini } from '@genkit-ai/googleai';

const ai = genkit({
plugins: [googleAI()],
model: gemini('gemini-1.5-flash'),
});

async () => {
const { text } = ai.generate('hi Gemini!');
console.log(text);
};

The sources for this package are in the main Genkit repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Genkit documentation.

License: Apache 2.0

Interfaces

PluginOptions

Type Aliases

GeminiConfig
GeminiVersionString
GoogleAIPlugin

Variables

gemini10Pro
gemini15Flash
gemini15Flash8b
gemini15Pro
gemini20Flash
gemini20FlashExp
gemini20FlashLite
gemini20ProExp0205
gemini25FlashPreview0417
gemini25ProExp0325
gemini25ProPreview0325
textEmbedding004
textEmbeddingGecko001

Functions

gemini
googleAI
googleAIPlugin

References

default → googleAI