Genkit AI framework plugin for Google AI APIs, including Gemini APIs.
npm install @genkit-ai/googleai``bash`
npm i --save @genkit-ai/googleai
`ts
import { genkit } from 'genkit';
import { googleAI, gemini } from '@genkit-ai/googleai';
const ai = genkit({
plugins: [googleAI()],
model: gemini('gemini-2.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