SlideShare a Scribd company logo
1 of 8
Discover the process of incorporating sophisticated AI multimodal
models into your project through a simple Python API.
• Gemini, a recent creation from Google, is
making waves, and Bard is once again
becoming a practical option. Thanks to
Gemini, achieving nearly flawless
responses to your queries is now feasible
by supplying images, audio, and text.
• This tutorial delves into the Gemini API,
guiding you through the setup process on
your machine. Additionally, we'll delve into
diverse Python API functionalities,
encompassing text generation and image
comprehension.
• Gemini is the most advanced and largest AI
model developed by Google to date.
Three versions of the Gemini model designed for
different use cases
• Gemini Ultra: Largest and most advanced AI
capable of performing complex tasks.
• Gemini Pro: A balanced model that has good
performance and scalability.
• Gemini Nano: Most efficient for mobile
devices.
Gemini Ultra has state-of-the-art performance,
exceeding the performance of GPT-4 on several
metrics. It is the first model to outperform human
experts on the Massive Multitask Language
Understanding benchmark, which tests world
knowledge and problem solving across 57 diverse
subjects. This showcases its advanced
understanding and problem-solving capabilities.
Setting up – Step 1
• To use the API, we have to first get an API key that you
can can from here: https://ai.google.dev/tutorials/setup
Setting up – Step 2
• After that click on “Get an API key” button and then
click on “Create API key in new project”.
Setting up – Step 3
• Copy the API key and set it as an environment
variable. We are using Deepnote and it is quite easy
for us to set the key with the name
“GEMINI_API_KEY”. Just go to the integration,
scroll down and select environment variables.
Setting up – Step 4
• In the next step, we will install the Python API using PIP:
• pip install -q -U google-generativeai
• After that, we will set the API key to Google’s GenAI and initiate the instance.
• import google.generativeai as genai
• import os
• gemini_api_key = os.environ["GEMINI_API_KEY"]
• genai.configure(api_key = gemini_api_key)
•
Using Gemini Pro

More Related Content

Similar to How to Access and Use Gemini API for Free.pptx

Managing Infrastructure as a Product - Introduction to Platform Engineering
Managing Infrastructure as a Product - Introduction to Platform EngineeringManaging Infrastructure as a Product - Introduction to Platform Engineering
Managing Infrastructure as a Product - Introduction to Platform EngineeringAdityo Pratomo
 
The Latest Advances in Generative AI_ Exploring New Technology for Data Integ...
The Latest Advances in Generative AI_ Exploring New Technology for Data Integ...The Latest Advances in Generative AI_ Exploring New Technology for Data Integ...
The Latest Advances in Generative AI_ Exploring New Technology for Data Integ...Safe Software
 
Jose l ugia 6 wunderkinder, momenta
Jose l ugia  6 wunderkinder, momentaJose l ugia  6 wunderkinder, momenta
Jose l ugia 6 wunderkinder, momentaapps4allru
 
Build your cross-platform service in a week with App Engine
Build your cross-platform service in a week with App EngineBuild your cross-platform service in a week with App Engine
Build your cross-platform service in a week with App EngineJl_Ugia
 
The Best Python IDEs and Code Editors.pdf
The Best Python IDEs and Code Editors.pdfThe Best Python IDEs and Code Editors.pdf
The Best Python IDEs and Code Editors.pdfAppdeveloper10
 
MonkeyTalk Automation Testing For Android Application
MonkeyTalk Automation Testing For Android ApplicationMonkeyTalk Automation Testing For Android Application
MonkeyTalk Automation Testing For Android ApplicationContusQA
 
🌟Is Learning Python Your Career Game-Changer? 🚀🐍
🌟Is Learning Python Your  Career Game-Changer? 🚀🐍🌟Is Learning Python Your  Career Game-Changer? 🚀🐍
🌟Is Learning Python Your Career Game-Changer? 🚀🐍abhishekdf3
 
Elyra - a set of AI-centric extensions to JupyterLab Notebooks.
Elyra - a set of AI-centric extensions to JupyterLab Notebooks.Elyra - a set of AI-centric extensions to JupyterLab Notebooks.
Elyra - a set of AI-centric extensions to JupyterLab Notebooks.Luciano Resende
 
Ml goes fruitful
Ml goes fruitfulMl goes fruitful
Ml goes fruitfulPreeti Negi
 
PyCourse - Self driving python course
PyCourse - Self driving python coursePyCourse - Self driving python course
PyCourse - Self driving python courseEran Shlomo
 
EricLong_Resume_Public
EricLong_Resume_PublicEricLong_Resume_Public
EricLong_Resume_PublicEric Long
 
INTERNSHIP PPT - INFOLABZ.pptx
INTERNSHIP PPT - INFOLABZ.pptxINTERNSHIP PPT - INFOLABZ.pptx
INTERNSHIP PPT - INFOLABZ.pptxDevChaudhari15
 
DevOps Patterns Distilled: Implementing The Needed Practices In Practical Steps
DevOps Patterns Distilled: Implementing The Needed Practices In Practical StepsDevOps Patterns Distilled: Implementing The Needed Practices In Practical Steps
DevOps Patterns Distilled: Implementing The Needed Practices In Practical StepsCA Technologies
 
How to boost your workflow, or git rebase for designers
How to boost your workflow, or git rebase for designersHow to boost your workflow, or git rebase for designers
How to boost your workflow, or git rebase for designersAnton Parkhomenko
 
Jagan_Updated Resume
Jagan_Updated ResumeJagan_Updated Resume
Jagan_Updated ResumeJagan Mohan
 

Similar to How to Access and Use Gemini API for Free.pptx (20)

Managing Infrastructure as a Product - Introduction to Platform Engineering
Managing Infrastructure as a Product - Introduction to Platform EngineeringManaging Infrastructure as a Product - Introduction to Platform Engineering
Managing Infrastructure as a Product - Introduction to Platform Engineering
 
The Latest Advances in Generative AI_ Exploring New Technology for Data Integ...
The Latest Advances in Generative AI_ Exploring New Technology for Data Integ...The Latest Advances in Generative AI_ Exploring New Technology for Data Integ...
The Latest Advances in Generative AI_ Exploring New Technology for Data Integ...
 
{py}gradle
{py}gradle{py}gradle
{py}gradle
 
Jose l ugia 6 wunderkinder, momenta
Jose l ugia  6 wunderkinder, momentaJose l ugia  6 wunderkinder, momenta
Jose l ugia 6 wunderkinder, momenta
 
Build your cross-platform service in a week with App Engine
Build your cross-platform service in a week with App EngineBuild your cross-platform service in a week with App Engine
Build your cross-platform service in a week with App Engine
 
The Best Python IDEs and Code Editors.pdf
The Best Python IDEs and Code Editors.pdfThe Best Python IDEs and Code Editors.pdf
The Best Python IDEs and Code Editors.pdf
 
MonkeyTalk Automation Testing For Android Application
MonkeyTalk Automation Testing For Android ApplicationMonkeyTalk Automation Testing For Android Application
MonkeyTalk Automation Testing For Android Application
 
🌟Is Learning Python Your Career Game-Changer? 🚀🐍
🌟Is Learning Python Your  Career Game-Changer? 🚀🐍🌟Is Learning Python Your  Career Game-Changer? 🚀🐍
🌟Is Learning Python Your Career Game-Changer? 🚀🐍
 
Elyra - a set of AI-centric extensions to JupyterLab Notebooks.
Elyra - a set of AI-centric extensions to JupyterLab Notebooks.Elyra - a set of AI-centric extensions to JupyterLab Notebooks.
Elyra - a set of AI-centric extensions to JupyterLab Notebooks.
 
Ml goes fruitful
Ml goes fruitfulMl goes fruitful
Ml goes fruitful
 
PyCourse - Self driving python course
PyCourse - Self driving python coursePyCourse - Self driving python course
PyCourse - Self driving python course
 
EricLong_Resume_Public
EricLong_Resume_PublicEricLong_Resume_Public
EricLong_Resume_Public
 
INTERNSHIP PPT - INFOLABZ.pptx
INTERNSHIP PPT - INFOLABZ.pptxINTERNSHIP PPT - INFOLABZ.pptx
INTERNSHIP PPT - INFOLABZ.pptx
 
216170316007.pptx
216170316007.pptx216170316007.pptx
216170316007.pptx
 
DevOps Patterns Distilled: Implementing The Needed Practices In Practical Steps
DevOps Patterns Distilled: Implementing The Needed Practices In Practical StepsDevOps Patterns Distilled: Implementing The Needed Practices In Practical Steps
DevOps Patterns Distilled: Implementing The Needed Practices In Practical Steps
 
How to boost your workflow, or git rebase for designers
How to boost your workflow, or git rebase for designersHow to boost your workflow, or git rebase for designers
How to boost your workflow, or git rebase for designers
 
Jagan_Updated Resume
Jagan_Updated ResumeJagan_Updated Resume
Jagan_Updated Resume
 
Best practices in coding for beginners
Best practices in coding for beginnersBest practices in coding for beginners
Best practices in coding for beginners
 
EVOLVE'15 | Enhance | Bob O'Conner & Kevin Nenning | Capturing Existing Cont...
EVOLVE'15 | Enhance |  Bob O'Conner & Kevin Nenning | Capturing Existing Cont...EVOLVE'15 | Enhance |  Bob O'Conner & Kevin Nenning | Capturing Existing Cont...
EVOLVE'15 | Enhance | Bob O'Conner & Kevin Nenning | Capturing Existing Cont...
 
AEM Evernote Sync
AEM Evernote SyncAEM Evernote Sync
AEM Evernote Sync
 

More from ujjwalsoni23

How to Setup Language Model Locally without Code — LM Studio.pptx
How to Setup Language Model Locally without Code — LM Studio.pptxHow to Setup Language Model Locally without Code — LM Studio.pptx
How to Setup Language Model Locally without Code — LM Studio.pptxujjwalsoni23
 
Unlock the Power of Conversations - Building a Chatbot with Gemini Pro Free A...
Unlock the Power of Conversations - Building a Chatbot with Gemini Pro Free A...Unlock the Power of Conversations - Building a Chatbot with Gemini Pro Free A...
Unlock the Power of Conversations - Building a Chatbot with Gemini Pro Free A...ujjwalsoni23
 
Building Better AWS Lambdas: Unlocking the Power of Layers
Building Better AWS Lambdas: Unlocking the Power of LayersBuilding Better AWS Lambdas: Unlocking the Power of Layers
Building Better AWS Lambdas: Unlocking the Power of Layersujjwalsoni23
 
Exploring Private Hosted Zones in Route 53 A Hands-On Workshop.pptx
Exploring Private Hosted Zones in Route 53 A Hands-On Workshop.pptxExploring Private Hosted Zones in Route 53 A Hands-On Workshop.pptx
Exploring Private Hosted Zones in Route 53 A Hands-On Workshop.pptxujjwalsoni23
 
Copying and Sharing Amazon Machine Image (AMI) and Snapshots - Hands-on Session
Copying and Sharing Amazon Machine Image (AMI) and Snapshots - Hands-on SessionCopying and Sharing Amazon Machine Image (AMI) and Snapshots - Hands-on Session
Copying and Sharing Amazon Machine Image (AMI) and Snapshots - Hands-on Sessionujjwalsoni23
 
SSL Termination in ALB NLB
SSL Termination in ALB NLBSSL Termination in ALB NLB
SSL Termination in ALB NLBujjwalsoni23
 
Hands-On Lab for Locating client IP address from EC2 when using Network Load ...
Hands-On Lab for Locating client IP address from EC2 when using Network Load ...Hands-On Lab for Locating client IP address from EC2 when using Network Load ...
Hands-On Lab for Locating client IP address from EC2 when using Network Load ...ujjwalsoni23
 
AWS Global Infrastructure - Regional Edge Cache
AWS Global Infrastructure - Regional Edge CacheAWS Global Infrastructure - Regional Edge Cache
AWS Global Infrastructure - Regional Edge Cacheujjwalsoni23
 
AWS Global Infrastructure - Regions.pptx
AWS Global Infrastructure - Regions.pptxAWS Global Infrastructure - Regions.pptx
AWS Global Infrastructure - Regions.pptxujjwalsoni23
 
AWS Global Infrastructure - Availability Zone.pptx
AWS Global Infrastructure - Availability Zone.pptxAWS Global Infrastructure - Availability Zone.pptx
AWS Global Infrastructure - Availability Zone.pptxujjwalsoni23
 
AWS Lambda SnapStart.pptx
AWS Lambda SnapStart.pptxAWS Lambda SnapStart.pptx
AWS Lambda SnapStart.pptxujjwalsoni23
 
AWS Storage Gateway.pptx
AWS Storage Gateway.pptxAWS Storage Gateway.pptx
AWS Storage Gateway.pptxujjwalsoni23
 
AWS NAT Gateway in a Nutshell
AWS NAT Gateway in a NutshellAWS NAT Gateway in a Nutshell
AWS NAT Gateway in a Nutshellujjwalsoni23
 
AWS VPC Zero to Hero in 30 Minutes.pptx
AWS VPC Zero to Hero in 30 Minutes.pptxAWS VPC Zero to Hero in 30 Minutes.pptx
AWS VPC Zero to Hero in 30 Minutes.pptxujjwalsoni23
 
KMS managed Encryption Keys - CSE KMS.pptx
KMS managed Encryption Keys  - CSE KMS.pptxKMS managed Encryption Keys  - CSE KMS.pptx
KMS managed Encryption Keys - CSE KMS.pptxujjwalsoni23
 
Amazon S3 Server-Side Encryption with S3-Managed Keys – SSE-S3.pptx
Amazon S3 Server-Side Encryption with S3-Managed Keys – SSE-S3.pptxAmazon S3 Server-Side Encryption with S3-Managed Keys – SSE-S3.pptx
Amazon S3 Server-Side Encryption with S3-Managed Keys – SSE-S3.pptxujjwalsoni23
 
Azure Hands-on Session - Azure Resource Manager.pptx
Azure Hands-on Session - Azure Resource Manager.pptxAzure Hands-on Session - Azure Resource Manager.pptx
Azure Hands-on Session - Azure Resource Manager.pptxujjwalsoni23
 
Azure Hands-on Session - Hybrid Cloud Sync using Azure File Sync.pptx
Azure Hands-on Session - Hybrid Cloud Sync using Azure File Sync.pptxAzure Hands-on Session - Hybrid Cloud Sync using Azure File Sync.pptx
Azure Hands-on Session - Hybrid Cloud Sync using Azure File Sync.pptxujjwalsoni23
 
Aws hands on session - share aws resources using aws resource access manager
Aws hands on session - share aws resources using aws resource access managerAws hands on session - share aws resources using aws resource access manager
Aws hands on session - share aws resources using aws resource access managerujjwalsoni23
 
Hack proof your aws account in 8 easy steps
Hack proof your aws account in 8 easy stepsHack proof your aws account in 8 easy steps
Hack proof your aws account in 8 easy stepsujjwalsoni23
 

More from ujjwalsoni23 (20)

How to Setup Language Model Locally without Code — LM Studio.pptx
How to Setup Language Model Locally without Code — LM Studio.pptxHow to Setup Language Model Locally without Code — LM Studio.pptx
How to Setup Language Model Locally without Code — LM Studio.pptx
 
Unlock the Power of Conversations - Building a Chatbot with Gemini Pro Free A...
Unlock the Power of Conversations - Building a Chatbot with Gemini Pro Free A...Unlock the Power of Conversations - Building a Chatbot with Gemini Pro Free A...
Unlock the Power of Conversations - Building a Chatbot with Gemini Pro Free A...
 
Building Better AWS Lambdas: Unlocking the Power of Layers
Building Better AWS Lambdas: Unlocking the Power of LayersBuilding Better AWS Lambdas: Unlocking the Power of Layers
Building Better AWS Lambdas: Unlocking the Power of Layers
 
Exploring Private Hosted Zones in Route 53 A Hands-On Workshop.pptx
Exploring Private Hosted Zones in Route 53 A Hands-On Workshop.pptxExploring Private Hosted Zones in Route 53 A Hands-On Workshop.pptx
Exploring Private Hosted Zones in Route 53 A Hands-On Workshop.pptx
 
Copying and Sharing Amazon Machine Image (AMI) and Snapshots - Hands-on Session
Copying and Sharing Amazon Machine Image (AMI) and Snapshots - Hands-on SessionCopying and Sharing Amazon Machine Image (AMI) and Snapshots - Hands-on Session
Copying and Sharing Amazon Machine Image (AMI) and Snapshots - Hands-on Session
 
SSL Termination in ALB NLB
SSL Termination in ALB NLBSSL Termination in ALB NLB
SSL Termination in ALB NLB
 
Hands-On Lab for Locating client IP address from EC2 when using Network Load ...
Hands-On Lab for Locating client IP address from EC2 when using Network Load ...Hands-On Lab for Locating client IP address from EC2 when using Network Load ...
Hands-On Lab for Locating client IP address from EC2 when using Network Load ...
 
AWS Global Infrastructure - Regional Edge Cache
AWS Global Infrastructure - Regional Edge CacheAWS Global Infrastructure - Regional Edge Cache
AWS Global Infrastructure - Regional Edge Cache
 
AWS Global Infrastructure - Regions.pptx
AWS Global Infrastructure - Regions.pptxAWS Global Infrastructure - Regions.pptx
AWS Global Infrastructure - Regions.pptx
 
AWS Global Infrastructure - Availability Zone.pptx
AWS Global Infrastructure - Availability Zone.pptxAWS Global Infrastructure - Availability Zone.pptx
AWS Global Infrastructure - Availability Zone.pptx
 
AWS Lambda SnapStart.pptx
AWS Lambda SnapStart.pptxAWS Lambda SnapStart.pptx
AWS Lambda SnapStart.pptx
 
AWS Storage Gateway.pptx
AWS Storage Gateway.pptxAWS Storage Gateway.pptx
AWS Storage Gateway.pptx
 
AWS NAT Gateway in a Nutshell
AWS NAT Gateway in a NutshellAWS NAT Gateway in a Nutshell
AWS NAT Gateway in a Nutshell
 
AWS VPC Zero to Hero in 30 Minutes.pptx
AWS VPC Zero to Hero in 30 Minutes.pptxAWS VPC Zero to Hero in 30 Minutes.pptx
AWS VPC Zero to Hero in 30 Minutes.pptx
 
KMS managed Encryption Keys - CSE KMS.pptx
KMS managed Encryption Keys  - CSE KMS.pptxKMS managed Encryption Keys  - CSE KMS.pptx
KMS managed Encryption Keys - CSE KMS.pptx
 
Amazon S3 Server-Side Encryption with S3-Managed Keys – SSE-S3.pptx
Amazon S3 Server-Side Encryption with S3-Managed Keys – SSE-S3.pptxAmazon S3 Server-Side Encryption with S3-Managed Keys – SSE-S3.pptx
Amazon S3 Server-Side Encryption with S3-Managed Keys – SSE-S3.pptx
 
Azure Hands-on Session - Azure Resource Manager.pptx
Azure Hands-on Session - Azure Resource Manager.pptxAzure Hands-on Session - Azure Resource Manager.pptx
Azure Hands-on Session - Azure Resource Manager.pptx
 
Azure Hands-on Session - Hybrid Cloud Sync using Azure File Sync.pptx
Azure Hands-on Session - Hybrid Cloud Sync using Azure File Sync.pptxAzure Hands-on Session - Hybrid Cloud Sync using Azure File Sync.pptx
Azure Hands-on Session - Hybrid Cloud Sync using Azure File Sync.pptx
 
Aws hands on session - share aws resources using aws resource access manager
Aws hands on session - share aws resources using aws resource access managerAws hands on session - share aws resources using aws resource access manager
Aws hands on session - share aws resources using aws resource access manager
 
Hack proof your aws account in 8 easy steps
Hack proof your aws account in 8 easy stepsHack proof your aws account in 8 easy steps
Hack proof your aws account in 8 easy steps
 

Recently uploaded

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 

How to Access and Use Gemini API for Free.pptx

  • 1.
  • 2. Discover the process of incorporating sophisticated AI multimodal models into your project through a simple Python API. • Gemini, a recent creation from Google, is making waves, and Bard is once again becoming a practical option. Thanks to Gemini, achieving nearly flawless responses to your queries is now feasible by supplying images, audio, and text. • This tutorial delves into the Gemini API, guiding you through the setup process on your machine. Additionally, we'll delve into diverse Python API functionalities, encompassing text generation and image comprehension. • Gemini is the most advanced and largest AI model developed by Google to date.
  • 3. Three versions of the Gemini model designed for different use cases • Gemini Ultra: Largest and most advanced AI capable of performing complex tasks. • Gemini Pro: A balanced model that has good performance and scalability. • Gemini Nano: Most efficient for mobile devices. Gemini Ultra has state-of-the-art performance, exceeding the performance of GPT-4 on several metrics. It is the first model to outperform human experts on the Massive Multitask Language Understanding benchmark, which tests world knowledge and problem solving across 57 diverse subjects. This showcases its advanced understanding and problem-solving capabilities.
  • 4. Setting up – Step 1 • To use the API, we have to first get an API key that you can can from here: https://ai.google.dev/tutorials/setup
  • 5. Setting up – Step 2 • After that click on “Get an API key” button and then click on “Create API key in new project”.
  • 6. Setting up – Step 3 • Copy the API key and set it as an environment variable. We are using Deepnote and it is quite easy for us to set the key with the name “GEMINI_API_KEY”. Just go to the integration, scroll down and select environment variables.
  • 7. Setting up – Step 4 • In the next step, we will install the Python API using PIP: • pip install -q -U google-generativeai • After that, we will set the API key to Google’s GenAI and initiate the instance. • import google.generativeai as genai • import os • gemini_api_key = os.environ["GEMINI_API_KEY"] • genai.configure(api_key = gemini_api_key) •