What do you want to automate

with Grain and Google Gemini?

Prompt, edit and deploy AI agents that connect to Grain, Google Gemini and 2,500+ other apps in seconds.

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Generate Content from Text and Image with Google Gemini API on New Highlight (Instant) from Grain API
Grain + Google Gemini
 
Try it
Generate Content from Text and Image with Google Gemini API on New Highlight Removed (Instant) from Grain API
Grain + Google Gemini
 
Try it
Generate Content from Text and Image with Google Gemini API on New Highlight Updated (Instant) from Grain API
Grain + Google Gemini
 
Try it
Generate Content from Text and Image with Google Gemini API on New Recording (Instant) from Grain API
Grain + Google Gemini
 
Try it
Generate Content from Text and Image with Google Gemini API on New Recording Removed (Instant) from Grain API
Grain + Google Gemini
 
Try it
New Highlight (Instant) from the Grain API

Emit new event when a highlight that matches the filter is added.

 
Try it
New Highlight Removed (Instant) from the Grain API

Emit new event when a highlight is removed.

 
Try it
New Highlight Updated (Instant) from the Grain API

Emit new event when a highlight is updated.

 
Try it
New Recording (Instant) from the Grain API

Emit new event when a recording that matches the filter is added.

 
Try it
New Recording Removed (Instant) from the Grain API

Emit new event when a recording is removed.

 
Try it
Get Recording with the Grain API

Fetches a specific recording by its ID from Grain, optionally including the transcript and intelligence notes. See the documentation

 
Try it
Generate Content from Text with the Google Gemini API

Generates content from text input using the Google Gemini API. See the documentation

 
Try it
Generate Content from Text and Image with the Google Gemini API

Generates content from both text and image input using the Gemini API. See the documentation

 
Try it
Generate Embeddings with the Google Gemini API

Generate embeddings from text input using Google Gemini. See the documentation

 
Try it
Integrate the Grain API with the Google Gemini API
Setup the Grain API trigger to run a workflow which integrates with the Google Gemini API. Pipedream's integration platform allows you to integrate Grain and Google Gemini remarkably fast. Free for developers.

Connect Grain

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    grain: {
      type: "app",
      app: "grain",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.grain.com/_/public-api/me`,
      headers: {
        Authorization: `Bearer ${this.grain.$auth.oauth_access_token}`,
      },
    })
  },
})

Overview of Google Gemini

The Google Gemini API is a cutting-edge tool from Google that enables developers to leverage AI models like Imagen and MusicLM to create and manipulate images and music based on textual descriptions. With Pipedream, you can harness this API to automate workflows that integrate AI-generated content into a variety of applications, from generating visuals for social media posts to composing background music for videos. Pipedream's serverless platform allows you to connect Google Gemini API with other apps to create complex, event-driven workflows without managing infrastructure.

Connect Google Gemini

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    google_gemini: {
      type: "app",
      app: "google_gemini",
    }
  },
  async run({steps, $}) {
    const data = `{{your_promptt}}`;
      //E.g. {"contents":[{"parts":[{"text":"Write a story about a magic backpack"}]}]}
    return await axios($, {
      method: "POST",
      url: `https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent`,
      headers: {
        "Content-Type": "application/json",        
      },      
      params: {
        key: `${this.google_gemini.$auth.api_key}`,
      },
      data
    })
  },
})

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo