AI-Powered Image Editor & Share: Generate, Edit, and Distribute Visuals Automatically
detail.loadingPreview
This n8n workflow leverages OpenAI's advanced DALL-E image editing capabilities to transform your images based on a text prompt. Simply submit your image and prompt via a web form, and the workflow automatically edits the image, then uploads and shares it to both Google Drive and imgbb.
About This Workflow
This robust n8n workflow provides a seamless solution for automating image manipulation and distribution using artificial intelligence. Triggered by a customizable web form, users can upload an existing image or provide a URL, specify a descriptive prompt, and even set the output quality. The workflow then intelligently communicates with OpenAI's DALL-E images/edits API to generate a stunning, AI-enhanced version of your input image.
Once generated, the edited image is automatically converted into a binary file format and concurrently uploaded to your Google Drive (with public sharing permissions) and the popular image hosting service, imgbb. This workflow eliminates tedious manual editing and sharing steps, making it an ideal tool for rapid content creation and efficient visual asset management.
Key Features
- AI Image Editing with DALL-E: Leverage OpenAI's powerful DALL-E
images/editsAPI to transform existing images based on textual prompts. - User-Friendly Web Form Trigger: Initiate the workflow with a simple web form, allowing users to input images (upload or URL), prompts, and quality settings.
- Dual Image Hosting: Automatically upload generated images to both Google Drive (with public read access) and imgbb for versatile sharing options.
- Dynamic File Naming: Images are saved with unique, timestamped filenames for easy organization and retrieval.
- Configurable Image Quality & Size: Control the output quality (
low,medium,high) and dimensions (1024x1024) of your AI-edited images.
How To Use
- On Form Submission (Trigger):
- Set up the
Form Title(e.g., "GPT image to image"). - Configure
Form Fields: EnsurePromt(Text, required),quality(Dropdown with 'low', 'medium', 'high', required),input image(File), andinput image url(Text) are correctly defined. - Set
Authenticationto "Basic Auth" and select your credential.
- Set up the
- Edit Image (OpenAI):
- Connect your OpenAI API credentials.
- Verify the
URLishttps://api.openai.com/v1/images/edits. - Map the
imagebody parameter to={{ $json["input image url"].isEmpty()?"input_image":"data"}}to handle both file uploads and URLs from the form. - Map
promptto={{ $json.Promt }}andqualityto={{ $json.quality }}from the form's input.
- Convert json binary to File / Convert json binary to File final:
- These nodes convert the base64 output (
data[0].b64_json) from the OpenAI node into a binary PNG file. Ensure theSource Propertyis correctly set andOperationistoBinary.
- These nodes convert the base64 output (
- Upload Result Image to Google Drive:
- Provide your Google API
serviceAccountcredentials. - Optionally specify a
Folder IDif you want to upload to a specific folder instead of the root. - The
Namefield will dynamically use the converted filename (={{ $input.item.binary.data.fileName }}).
- Provide your Google API
- Set Access Permissions:
- Ensure this node is connected after the Google Drive upload.
- The
File IDshould automatically reference the uploaded file (={{ $json.id }}). - Verify
Permissionsare set torole: readerandtype: anyonefor public access, or adjust as needed.
- Upload Result Image to imgbb:
- Input your
IMGBB_API_KEYinto the "key" body parameter. This key should be stored securely, ideally as an n8n credential or environment variable. - Ensure the
imagebody parameter maps to the binary data output from the precedingConvert json binary to Filenode.
- Input your
Apps Used
Workflow JSON
{
"id": "0a529aba-cfd7-47b7-aa71-beffb08ffb7e",
"name": "AI-Powered Image Editor & Share: Generate, Edit, and Distribute Visuals Automatically",
"nodes": 9,
"category": "Marketing",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 0a529aba-cfd7...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
AI-Powered On-Page SEO Audit & Report Automation
Instantly generate comprehensive on-page SEO technical and content audits for any website URL. This AI-powered workflow automates the entire process, from scraping the page to delivering a detailed report directly to your inbox, empowering you to optimize for better search rankings and user engagement.
Automate LinkedIn Content Promotion for Your Ghost Blog with AI
Effortlessly promote your latest Ghost blog posts on LinkedIn. This workflow leverages AI to generate engaging, professional LinkedIn messages based on your article content and saves them, along with article metadata, directly to a Google Sheet.
AI-Powered Instagram Comment Automation
This n8n workflow intelligently automates responses to Instagram comments, leveraging advanced AI to engage with your audience. It filters out irrelevant content and personalizes replies, saving you time while boosting your social media presence.