Integrate Leonardo AI and Gemini to automate workflows with scalable backend

Connect Leonardo AI and Gemini nodes to in your workflow. Integrate with any tool or database and ship powerful backend logic and APIs instantly - No code required!

getting started

How To Connect Leonardo AI and Gemini

Supported Triggers & Actions

Leonardo AI NODES

Generate Image

This endpoint generates images with the given generation prompt and returns the Generation ID.

Generate Prompt

This endpoint returns a random image generation prompt.

Improve Prompt

This endpoint returns an improved image generation prompt.

Upload Dataset Image

This endpoint uploads the given file buffer to the signed URL provided by the **Upload Init Image** node. Detailed instructions for using this endpoint are available in the guide: [How to upload an image using a presigned URL](https://docs.leonardo.ai/docs/how-to-upload-an-image-using-a-presigned-url).

Upload Init Image

This endpoint returns a random image generation prompt. Detailed instructions for using this endpoint are available in the guide: [How to upload an image using a presigned URL](https://docs.leonardo.ai/docs/how-to-upload-an-image-using-a-presigned-url).

Gemini NODES

Count Tokens in Prompt

When using long prompts, it might be useful to count tokens before sending any content to the model.

script

Gemini Text Generator

Make an API call to the Generative Language Model endpoint

script

Generate Embedding

Generate Embeddings from text input and represent text (words, sentences, and blocks of text) in a vectorized formusing Gemini AI

script

Multimodal

Use Google's Gemini AI to generate text from text-only or text-and-image input. [Full documentation](https://cloud.google.com/vertex-ai/docs/generative-ai/start/quickstarts/quickstart-multimodal).

script

Stream Response

Generates a stream of response text using Google's Generative AI with a given prompt

script

blog posts & tutorials

Recommended Reads

Below are recommneded blogs that will help in your journey