What is Gemini AI?
Gemini AI, developed by Google, represents a family of large language models that currently stands as one of the most advanced AI models created by Google. Here's a brief overview:
Key Features:
1.MultiModal: Gemini seamlessly understands and responds across various formats such as text, code, images, and audio. This is a departure from most AI models that focus on a single modality.
2.Versatile: The Gemini AI family is available in three sizes - Ultra, Pro, and Nano - catering to a spectrum of tasks ranging from complex research to efficient on-device applications.
3.Safe: Gemini incorporates extensive safety checks to address concerns related to bias, toxicity, and other potential risks.
4.Accessible: Developers and businesses can access Gemini Pro through Google AI Studio (free) or Vertex AI (paid, offering more features).
Now, let's integrate this with Pega.
To integrate Gemini AI, access the developer console on the official Gemini AI website provided by Google.
The URL to access Google Gemini AI is Google Gemini AI
1.The following screen appears upon accessing the provided link.
2.Next, click on "Get API key" in Google AI Studio and proceed to accept all the terms and conditions.
3.Subsequently, click on "Continue," and then proceed to click on "Get API key."
4.Proceed by clicking on "Create API key" in the New Project.
5.After clicking on "Create API key" in the New Project, Google provides us with a new API key and a curl command. Now, let's test this curl command using Postman. (For those unfamiliar with Postman: Postman is an API platform for building and using APIs. It simplifies each step of the API lifecycle and streamlines collaboration, allowing you to create better APIs faster.)
5.1 Import the curl command into Postman, navigate to the "Params" tab, provide the API key given by Google, and then test the command using either your own parameters or those provided by Google to verify if the URL is functioning correctly or not.
6.Now, given that the response is successful, proceed to enter the Dev Studio and create a REST integration.
7.Now, create a REST integration in Connect REST using the provided URL as demonstrated below.
8.Click "Next" and choose POST as the method; by default, GET might be selected.
9.In the next tab, the data model tab, add the REST response using the JSON obtained in the initial step.
Comments
Post a Comment