Latenode

Telegram bot that generates images from ChatGPT prompts

This automation allows users to create a Telegram bot that integrates with the ChatGPT language model to generate images based on text prompts.

Users can interact with the bot within the Telegram messaging platform, sending text prompts that the bot will then use to create and return corresponding images. This integration combines the conversational capabilities of ChatGPT with the visual communication possibilities of image generation, enabling users to easily exchange text-based ideas and receive visual representations in a seamless chat-based experience.

Updated Apr 6, 2026Est. run: 26sEst. cost: $0.0703
How Latenode estimates time and cost

Latenode bills workflow runs in credits: 1 credit = 30 seconds of processing. Minimum charge per run depends on your plan. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how credits work →
Messaging & bots

Workflow preview

What this template does

  • Enables users to create a Telegram bot that integrates with ChatGPT
  • Allows users to send text prompts to the bot, which then generates images
  • Provides a seamless chat-based experience for exchanging text-based ideas and receiving visual representations
  • Combines the conversational capabilities of ChatGPT with the visual communication possibilities of image generation
  • Outputs images generated by OpenAI's image generation model directly to the user in the Telegram chat

How it works

1
Trigger

Receive Text Prompt from Telegram User

The Telegram bot receives a text prompt from a user within the Telegram messaging platform.

2
Action

Pass Text Prompt to ChatGPT

The Telegram bot sends the user's text prompt to the ChatGPT language model, which is integrated with the system.

3
AI

Generate Image from Text Prompt

ChatGPT processes the text prompt and generates a corresponding image using the OpenAI image generation API.

4
Action

Send Generated Image to Telegram

The Telegram bot receives the generated image from the OpenAI API and sends it back to the user within the Telegram chat.

Setup guide

1

Add Telegram Bot credential

1. In the Latenode Credentials panel, add a new credential for the Telegram Bot integration. 2. Enter your Telegram Bot token provided by the BotFather.

2

Configure Telegram Bot node

1. Add a Telegram Bot node to your Latenode workflow. 2. In the node settings, select the Telegram Bot credential you added in the previous step. 3. Configure the bot's behavior, such as the command trigger, response messages, and image generation settings.

3

Add OpenAI credential

1. In the Latenode Credentials panel, add a new credential for the OpenAI integration. 2. Enter your OpenAI API key, which you can obtain from your OpenAI account dashboard.

4

Configure OpenAI image generation node

1. Add an OpenAI image generation node to your Latenode workflow. 2. In the node settings, select the OpenAI credential you added in the previous step. 3. Configure the image generation parameters, such as the prompt, size, and number of images to generate.

5

Map Telegram input to OpenAI prompt

1. In the Telegram Bot node settings, map the user's text input to the prompt field in the OpenAI image generation node. 2. This will ensure that the bot sends the user's text prompt to OpenAI to generate the corresponding image.

Requirements

Obtain a Telegram bot token by creating a new bot using the BotFather on Telegram
Set up an OpenAI account and obtain an API key for the GPT-3 and DALL-E models
Configure the Telegram bot to use the OpenAI API key for image generation
Deploy the Telegram bot code to a hosting platform that can handle incoming Telegram messages and make requests to the OpenAI API

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.

More templates

You might also like

Browse all templates →
Messaging & bots

Automate WhatsApp Sales with AI Chatbots and Product Data

This Latenode automation allows users to build a WhatsApp chatbot that acts as a sales agent, providing automated responses to customer inquiries. The chatbot is powered by a product catalog vector store and an AI language model, allowing it to understand and respond to user messages in real-time. The workflow involves importing a product brochure, extracting the text, creating a vector store, and using the OpenAI language model and a memory buffer to generate relevant responses to WhatsApp users. The chatbot can handle both text messages and non-text messages, with the latter triggering a standard response. This automation is designed for businesses looking to enhance their customer support and sales efforts through a conversational WhatsApp interface.

26s$0.0703
Messaging & bots

Instantly sync Facebook Messenger to your WhatsApp for real-time alerts

This automation allows users to automatically send incoming Facebook Messenger messages to a specified WhatsApp account as real-time notifications. It is designed for users who need to stay on top of their Facebook Messenger communications while on the go, allowing them to respond quickly via WhatsApp. The automation integrates with Facebook Messenger and WhatsApp to monitor for new messages and forward them to the designated WhatsApp contact.

26s$0.0703
Messaging & bots

Automate Telegram Chatbots with AI-Powered Responses

This AI-powered Telegram bot aims to provide instant, relevant replies to user messages by integrating with advanced AI models. The bot will analyze incoming messages and generate appropriate responses tailored to the user's queries, drawing from the capabilities of language models and other AI technologies. This solution is designed to streamline communication and enhance the user experience within the Telegram messaging platform, offering an intelligent and conversational interface that can handle a wide range of user inquiries efficiently.

26s$0.0703