FM
FlowMarket
General Automation Beginner ⚡ 6 n8n Nodes

OpenAI ImageGen1 via HTTP request edit image

Edit an existing image with OpenAI ImageGen1 via API Request Transform your creative pipeline by letting n8n call OpenAI ImageGen1’s edit image endpoint, aut...

🔌 Nodes & Integrations Used (3)

HTTP Request Convert To File Chat Trigger

📖 Implementation & Setup Guide

Edit an existing image with OpenAI ImageGen1 via API Request

Transform your creative pipeline by letting **n8n** call **OpenAI ImageGen1’s _edit image_ endpoint**, automatically replacing or augmenting parts of any image you supply and returning a brand-new version in seconds. Designers, marketers, and product teams can eliminate repetitive manual edits and test more variations, faster.

Who is this for? - Content creators who need quick, on-brand image tweaks - Marketers running A/B visual tests at scale - Developers exploring the new ImageGen1 API inside low-code automations

Use case / problem solved Opening design software to mask, fill, or swap objects is slow and error-prone. This workflow feeds an input image plus a prompt to **OpenAI ImageGen1**, receives the edited output, and passes it on to any service you like—perfect for bulk-editing product shots, social visuals, or UI mocks.

What this workflow does 1. **Read or receive** the source image (Webhook → Binary Data). 2. **Call OpenAI ImageGen1** with an **HTTP Request** node, sending the image and edit prompt. 3. **Parse** the JSON response to capture the returned image URL. 4. **Download & hand off** the edited file (e.g., upload to S3, post to Slack, or store in Drive).

Setup 1. Add your **OpenAI API key** in the API KEY node. 2. Follow the notes on the workflow for more information. 3. (Optional) Point the final node to your preferred storage or chat tool.

> 📝 A sticky note in the workflow summarizes these steps and links to the OpenAI documentation.

How to customize this workflow - **Trigger alternatives**: Replace the Chat with Google Drive, Airtable, etc. - **Chained edits**: Loop the output back for successive prompts. - **Conditional flows**: Add an If node to branch actions by image size or category.

With renamed nodes, color-coded sticky notes, and a concise setup guide, you’ll be editing images via **OpenAI ImageGen1** in under five minutes—no code, maximum creativity.

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save OpenAI ImageGen1 via HTTP request _edit image_.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related General Automation Workflows

View All in General Automation →