Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@genkit-ai/googleai

firebase366.1kApache-2.01.12.0TypeScript support: included

Genkit AI framework plugin for Google AI APIs, including Gemini APIs.

genkit, genkit-plugin, genkit-embedder, genkit-model, gemini, google gemini, google ai, ai, genai, generative-ai

readme

Google Gemini Developer API plugin for Genkit

Installing the plugin

npm i --save @genkit-ai/googleai

Using the plugin

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