Templates / Easy image captioning with Gemini 1.5 Pro

Easy image captioning with Gemini 1.5 Pro

Ready for 3.0

by Jimleuk ✓ · 14,424 views · created 2024-09-18 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 11 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Gemini Chat Model. It also calls images.pexels.com over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Get Image (HTTP Request): calls images.pexels.com
  2. Resize For AI (Edit Image): resize
  3. Get Info (Edit Image): information
  4. Image Captioning Agent (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Structured Output Parser
  5. Merge: merges the data from its input branches
  6. Calculate Positioning (Code): runs custom JavaScript code
  7. Merge: merges the data from its input branches
  8. Apply Caption to Image (Edit Image): multi step

Services it uses

Google Gemini Chat Model

HTTP calls to: images.pexels.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

This n8n workflow demonstrates how to automate image captioning tasks using Gemini 1.5 Pro - a multimodal LLM which can accept and analyse images. This is a really simple example of how easy it is to build and leverage powerful AI models in your repetitive…

Excerpt from Jimleuk's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.