Skip to main content
Gemini logo

Gemini

Overview

Google's Gemini AI is an advanced artificial intelligence platform that combines state-of-the-art machine learning capabilities with cutting-edge natural language processing (NLP) and computer vision. Designed to enhance various applications across industries, Gemini AI empowers organizations to unlock insights from data, automate processes, and create innovative user experiences. By leveraging Google's extensive research and infrastructure, Gemini AI offers scalable and efficient solutions tailored to meet the demands of modern businesses.

Setting up Gemini

Create an access token

To use the Gemini, you need an API key. To create one:

  1. Go to Google AI Studio
  2. Click Create API key
  3. Copy the API key to configure your integration's connection

Learn more about Gemini Authentication.

Add integration

Once you have an access token, you're ready to set up your Superblocks integration.

  1. In the web app, navigate to the Integrations page
  2. Click on the Gemini tile
  3. Name the integration
  4. Paste your credentials into the relevant fields
  5. Optionally, add more configurations to set credentials for different environments
  6. Click Create
success

Gemini connected Now you can use Gemini in any Application, Workflow, or Scheduled Job.

Use Gemini in APIs

Once your Gemini integration is created, you can start calling Gemini actions in Superblocks APIs.

Gemini actions are REST requests. To learn more about REST requests in Superblocks, see the Building REST requests guide.

Certain Gemini actions support streaming. Learn more about building APIs in Superblocks that

stream data from REST APIs

.

Supported actions

Generates Content

Generates a response from the model given an input GenerateContentRequest.

Generates Content (Streaming)

Generates a streamed response from the model given an input GenerateContentRequest.

Generic HTTP Request

Every SaaS integration in Superblocks comes with a built in Generic HTTP Request Action. This is a powerful action you can use to call Gemini API endpoints not in the Superblocks supported actions.

To use this action simply add the method, path, required query parameters, and body for the desired endpoint.

info

Learn more about REST requests in Superblocks in our Building REST requests guide.

Generic HTTP Requests use the authentication set up and base URL you've configured for your integration, making it an easy for your team to extend Superblocks Integrations to meet their needs.