Image-based data extraction API using Gemini AI
Ready for 3.0Ready 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-12-01.
What this workflow does
This workflow has 6 nodes and runs when an HTTP GET request hits its webhook URL. It uses only n8n's built-in nodes.
How it runs
Trigger: When an HTTP GET request hits its webhook URL.
- Get image from URL (HTTP Request): calls an HTTP API
- Transform image to base (Extract from File): extracts data from a file (binary to propery)
- Call Gemini API (Flash Lite) with Image (HTTP Request): calls an HTTP API (POST)
- Edit fields to output required data alone (Edit Fields (Set)): sets 1 field: result
- Respond to Webhook: sends the response back to the webhook caller
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 (5)
- Webhook
n8n-nodes-base.webhook - Respond to Webhook
n8n-nodes-base.respondToWebhook - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - Extract from File
n8n-nodes-base.extractFromFile
From the author
This n8n workflow provides a ready-to-use API endpoint for extracting structured data from images. It processes an image URL using an AI-powered OCR model and returns the extracted details in a structured JSON format. Use Cases - Document OCR – Extract…