GO

google-gemini

Open Source AI/MLDevelopment

Google Gemini AI provider for OpenCode

google gemini ai image-generation

Quick Install

npm install @openpets/google-gemini
pnpm add @openpets/google-gemini

Required Environment Variables

  • GOOGLE_API_KEY

    Google API key for Gemini AI (get from https://makersuite.google.com/app/apikey)

Available Tools (3)

These tools are available when you install the google-gemini plugin in your AI assistant.

gemini-text-to-image

Generate detailed image prompts and descriptions using Google Gemini AI. Creates enhanced prompts that can be used with other image generation tools.

gemini-image-to-image

Placeholder for Google Gemini image-to-image transformation. Currently not supported - use FAL AI provider instead. This tool is prepared for future Imagen 3 support.

gemini-text-to-video

Placeholder for Google Gemini text-to-video generation. Currently not supported - use FAL AI provider instead. This tool is prepared for future video generation capabilities.

Example Queries

generate text with gemini
enhance this prompt with gemini

Usage Scenarios

text generation

  1. 1 generate text with gemini

prompt enhancement

  1. 1 enhance this prompt with gemini

Use google-gemini with Your AI Assistant

This open source plugin works with OpenCode-compatible AI assistants including ChatGPT, Claude, Perplexity, and other LLM-powered coding tools. Install the plugin and start using natural language to interact with google-gemini.

Works with ChatGPT Works with Claude Works with Perplexity MCP Compatible