Uploaded December 2024 | Updated September 2026, 2 weeks ago
With Gemini 2.0 two-million-token capacity, the model can work with extensive datasets, such as entire books, research papers, or detailed project documents, all in one interaction. And given that Gemini API is free right now, I thought I would share how to get started with Gemini API in Python.
πSource Code To The Examples: patreon.com/posts/118849266
πGoogle Gemini API Reference: https://ai.google.dev/api?lang=python
π Show Support
β Paypal: paypal.me/jiejenn/5
β Venmo: @Jie-Jenn
π³ Patreon: patreon.com/JieJenn (early access to tutorial source code)
βοΈ Business Inquiring: YouTube@LearnDataAnalysis.org
00:00 - Intro to Google Gemini API
00:51 - Set up Gemini API in Google Console
01:29 - Generate an API key
02:17 - Install Python dependencies
02:43 - Set up .env file
02:57 - prep.py
03:48 - Example 1. Basic API usage
05:20 - Example 2. Include media files
07:15 - Example 3. Create a chat session
11:29 - Example 4. Chat session with function calling
#googlegemini #python #crashcourse
With Gemini 2.0 two-million-token capacity, the model can work with extensive datasets, such as entire books, research papers, or detailed project documents, all in one interaction. And given that Gemini API is free right now, I thought I would share how to get started with Gemini API in Python.
πSource Code To The Examples: patreon.com/posts/118849266
πGoogle Gemini API Reference: https://ai.google.dev/api?lang=python
π Show Support
β Paypal: paypal.me/jiejenn/5
β Venmo: @Jie-Jenn
π³ Patreon: patreon.com/JieJenn (early access to tutorial source code)
βοΈ Business Inquiring: YouTube@LearnDataAnalysis.org
00:00 - Intro to Google Gemini API
00:51 - Set up Gemini API in Google Console
01:29 - Generate an API key
02:17 - Install Python dependencies
02:43 - Set up .env file
02:57 - prep.py
03:48 - Example 1. Basic API usage
05:20 - Example 2. Include media files
07:15 - Example 3. Create a chat session
11:29 - Example 4. Chat session with function calling
#googlegemini #python #crashcourse










