with Giphy and Google Gemini?
Searches all GIPHY gifs or stickers for a word or phrase. See the docs here
Generates content from text input using the Google Gemini API. See the documentation
Translates or convert a word or phrase to the perfect Gif or Sticker using GIPHY's special sauce algorithm. See the docs here
Generates content from both text and image input using the Gemini API. See the documentation
Uploads a Gif or video file up to 100MB programmatically on GIPHY.com See the docs here
The Giphy API provides programmatic access to Giphy's vast library of animated GIFs, allowing you to search, share, and explore this rich visual content. Leveraging Pipedream, you can harness the power of Giphy to add engaging visuals to your applications, automate the delivery of GIFs in response to events, or enrich your social media interactions with dynamic imagery. It opens up fun and expressive ways to inject personality into chatbots, forums, or any platform that could use a splash of animated flair.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
giphy: {
type: "app",
app: "giphy",
}
},
async run({steps, $}) {
return await axios($, {
url: `api.giphy.com/v1/gifs/random`,
params: {
api_key: `${this.giphy.$auth.api_key}`,
},
})
},
})
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.
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
})
},
})