Generate hyper-realistic images from Telegram via Gemini Nano Banana 2

Go to Workflow
0 views
Built by Dahiana Dahiana
Created on June 12, 2026

Description

Generate hyper-realistic images from Telegram messages with Nano Banana 2

Send any image description to your Telegram bot and receive a hyper-realistic AI-generated photo back in seconds.

How it works
A user sends a natural language image request to the Telegram bot
The bot confirms the receipt
Gemini Pro 3 expands the request into a detailed JSON prompt: focal length, aperture, ISO, lighting behavior, material physics, etc.
Gemini Flash generates the image and returns it as a base64 string
The image is sent back as a photo in the same Telegram chat

Setup steps
Telegram — Create a bot via @BotFather, copy the token, and add it as a Telegram credential in n8n. Connect it to the Telegram Trigger node and both Telegram send nodes
OpenRouter — Add your OpenRouter API key (or any other tool you use) as a credential in n8n. Connect it to the Expand to JSON Prompt and Generate Image nodes.
Activate the workflow and send your bot an image description to test

Optional
Modify the config node with your system prompt preferences for a more diverse pool of results.

Nodes Used (4)

Code
n8n-nodes-base.code
Google Drive
n8n-nodes-base.googleDrive
HTTP Request
n8n-nodes-base.httpRequest
Telegram
n8n-nodes-base.telegram