Skip to main content

OpenAI ImageGen1 via HTTP request (edit image)

Workflow preview

Workflow preview
100%
OpenAI ImageGen1 via HTTP request (edit image) preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 part...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.converttofile, @n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.stickynote, n8n-nodes-base.set

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by TechDennis.

Original n8n.io source

1.1 Workflow description

Title
OpenAI ImageGen1 via HTTP request (edit image)
Workflow name
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, 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.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - HTTP Request

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 2 - Convert to File

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 3 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 4 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - API KEY

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow OpenAI ImageGen1 via HTTP request (edit image)
Complexity intermediate
Nodes 6
Categories Content Creation, Multimodal AI
Author TechDennis
Published 04 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3858/3858.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does OpenAI ImageGen1 via HTTP request (edit image) do?

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 part...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.