Gemini API cookbook for practical examples and guides
Top 3.6% on sourcepulse
This repository provides a structured learning path and practical examples for using the Google Gemini API, targeting developers and researchers looking to integrate advanced AI capabilities into their applications. It offers hands-on tutorials for quick integration and showcases complex use cases, enabling users to leverage multimodal AI, code execution, function calling, and media generation.
How It Works
The cookbook is organized into Quick Starts for foundational knowledge and step-by-step feature exploration, and Examples that demonstrate combining multiple Gemini API features or external tools for complex applications. It highlights recent additions like Gemini 2.5 models, Imagen, Veo, Live API, browser tool integration, and code execution, providing practical guidance on their implementation.
Quick Start & Requirements
pip install google-generativeai
.Highlighted Details
Maintenance & Community
CONTRIBUTING.md
.Licensing & Compatibility
google-genai
SDK (v1.0) is compatible with all Gemini API models and features, including Live API, improved tool usage, and media generation. It supports connection via Google AI Studio or Vertex AI.Limitations & Caveats
google-generativeai
package supports original Gemini models and Gemini 2 models with a limited feature set; all new features are in the new Google GenAI SDK. Migration guidance is available.2 days ago
1 week