Easy Image Captioning with Gemini 1.5 Pro

Try it out! This workflow takes an image and generates a caption for it using AI. The OpenAI node has been able to do this for a while but this workflow demonstrates how to achieve the same with other multimodal vision models such as Google's Gemini. Additional, we'll use the Edit Image node to overlay the generated caption onto the image. This can be useful for publications or can be repurposed for copyrights and/or watermarks. Need Help? Join the [Discord](https://discord.com/invite/XPKeKXeB

Workflow Structure (11 nodes)
100%
Manual Trigger
When clicking ‘Test workflow’
Http Request
Get Image
Edit Image
Get Info
Merge
Merge Image & Caption
Edit Image
Resize For AI
Langchain.lm Chat Google Gemini
Google Gemini Chat Model
Langchain.chain Llm
Image Captioning Agent
Langchain.output Parser Structured
Structured Output Parser
Code
Calculate Positioning
Merge
Merge Caption & Positions
Edit Image
Apply Caption to Image
Node Types:
trigger
action
default
code
logic
http
Requires credentials

Prerequisites

Required Credentials (1)

Google Palm

Used by: Google Gemini Chat Model

Docs

Complexity

Complex

Advanced features used. Requires n8n experience.

Setup time: ~30 min
Score: 58/100
Custom Code
Conditional Logic

When to Use This Workflow

AI-Powered Content Creation

Automate content generation, summarization, or analysis using AI capabilities.

Save hours of manual work while maintaining quality and consistency.

Real-time Response

React instantly when events happen - new orders, form submissions, or API calls.

Zero delay between trigger and action for time-sensitive workflows.

Error Reduction

Eliminate human error from routine processes with consistent automation.

Improve accuracy and reliability across your workflows.

workflow.json
{
  "meta": {
    "instanceId": "408f9fb9940c3cb18ffdef0e0150fe342d6e655c3a9fac21f0f644e8bedabcd9"
  },
  "nodes": [
    {
      "id": "0b64edf1-57e0-4704-b78c-c8ab2b91f74d",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        480,
        300
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a875d1c5-ccfe-4bbf-b429-56a42b0ca778",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
...

Workflow Details

Nodes
16
Trigger
Manual
Source
awesome
Added
Dec 4, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

Automate Image Validation Tasks using AI Vision

1. Import Photos To Validate [Read more about using Google Drive](https://docs.n8n.io/integrations/builtin/app-nodes/n8n...

Outputparserstructured
Google-drive
Editimage
Chainllm
11 nodesManual
Curated

Intelligent Web Query and Semantic Re-Ranking Flow

Step 1. Set Up a Free Brave Web Search Query API Key To attain the free web search API tier from Brave, follow these ste...

Webhook
Outputparserautofixing
Outputparserstructured
Chainllm
20 nodesWebhook
Curated

Host Your Own AI Deep Research Agent with n8n, Apify and OpenAI o3

2. Ask Clarifying Questions [Read more about form nodes](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-b...

Outputparserstructured
Lmchatopenai
Form
Chainllm
87 nodesEvent
Curated

Visual Regression Testing with Apify and AI Vision Model

Part A. Generate Base Images Before we can run our visual regression tests, we must generate a series of base screenshot...

Google-drive
Lmchatgooglegemini
Outputparserstructured
Http-request
34 nodesScheduled
Curated

CV Resume PDF Parsing with Multimodal Vision AI

Try me out! This workflow converts a Candidate Resume PDF to an image which is then "read" by a Vision Language Model (...

Outputparserstructured
Google-drive
Http-request
Editimage
13 nodesManual
Curated

HN Who is Hiring Scrape

Go to https://hn.algolia.com - filter by "Ask HN: Who is hiring?" (important with quotes for full match) - sort by date...

Lmchatopenai
Outputparserstructured
Http-request
Chainllm
20 nodesManual
Curated