simonw/llm-gemini
LLM plugin to access Google's Gemini family of models
What it solves
This project provides a plugin for the llm CLI tool, enabling seamless API access to Google's Gemini family of models. It allows users to interact with these models directly from the command line, manage API keys, and leverage advanced multimodal capabilities without writing custom integration code.
How it works
The plugin integrates Gemini models into the llm ecosystem. Once installed, users configure their API key and can call various Gemini models (such as Gemini Flash or Gemma) using the -m flag. It supports multimodal inputs by allowing users to attach images, audio, video, and even YouTube URLs as context for prompts.
Who it’s for
Developers and power users who use the llm CLI tool and want to integrate Google's Gemini models into their workflows, particularly those needing multimodal analysis or server-side tools like code execution and Google Search grounding.
Highlights
- Multimodal Support: Process images, audio, video files, and YouTube URLs as prompt attachments.
- Server-Side Tools: Support for
CodeExecution(Python sandbox),GoogleSearch(grounding), andURLContext(fetching web content). - Structured Output: Ability to force JSON output using the
json_objectoption. - Embeddings: Support for multiple Gemini embedding models with configurable vector dimensions (768, 1536, 3072).
- Interactive Chat: Integration with the
llm chatcommand for conversational AI.
Related
- Project
- Project
- Project
- Project
- Project