Gemini by Example¶
A hands-on introduction to using the Google Gemini API through annotated example programs.
Overview¶
Gemini by Example provides step-by-step tutorials for learning how to use the Gemini API in Python. The project features:
-
Simple, commented examples that build from basic to advanced usage
-
Side-by-side code and explanations
-
Runnable shell commands with expected outputs
-
Examples organized by category
-
Support for images to illustrate concepts
Sections¶
-
Text - 5 examples
-
Images - 5 examples
-
Audio - 3 examples
-
Video - 4 examples
-
PDFs and other data types - 3 examples
-
Agentic behaviour - 4 examples
-
Token counting & context windows - 4 examples
-
Miscellaneous - 5 examples