OpenAI: GPT-Image-1 Multi Inputs - After
OpenAI: GPT-Image-1 Multi Inputs - Before

This ComfyUI workflow leverages the OpenAI GPT-Image-1 model to generate images from multiple input sources. By integrating various nodes such as OpenAIGPTImage1, LoadImage, and ImageBatch, the workflow efficiently processes and combines different types of inputs to produce a cohesive image output. The OpenAIGPTImage1 node serves as the core component, utilizing OpenAI's advanced image generation capabilities to interpret and synthesize visual data from textual descriptions or other image inputs. This workflow is particularly useful for users who need to generate complex images that require input from multiple sources, such as text prompts and existing images.

Technically, the workflow begins with loading images using the LoadImage node, which can handle multiple image inputs simultaneously through the ImageBatch node. These inputs are then processed by the OpenAIGPTImage1 node, which applies OpenAI's sophisticated algorithms to generate new images based on the provided data. Finally, the SaveImage node ensures that the output images are stored for further use. The inclusion of a MarkdownNote node allows users to annotate their workflow, providing context or instructions directly within the ComfyUI interface. This workflow is particularly beneficial in fields such as digital art, marketing, and content creation, where generating high-quality, contextually relevant images is crucial.

API

Use this workflow from code

Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.

GET https://comfy.org/workflows/download/97efe22684e2.json
Fetching workflow JSON…

Run it from Python or TypeScript with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.

# Install (beta)
pip install comfy-sdk        # Python
npm i @comfyorg/sdk          # TypeScript

# Run "OpenAI: GPT-Image-1 Multi Inputs" (Python)
from comfy_sdk import Comfy

client = Comfy(api_key="comfyui-...")

# This workflow, exported in API format (see note below)
wf = client.workflows.from_file("api_openai_image_1_multi_inputs_api.json")

asset = client.assets.from_file("input.png")
wf.set_input("2", "image", asset)  # LoadImage

job = client.run(wf)
for output in job.get_outputs("11"):  # SaveImageAdvanced
    output.to_file(output.name)

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API). API access requires a Comfy Cloud plan with an API key. SDK docs · Get an API key

FAQ

Frequently Asked Questions

View all workflows
Character
Cinematic
Image to Video
Lip Sync
Multiple Angles
Portrait
Style Reference
Style Transfer
Text to Video
Video Generation
Video
Showing 30 of 30 templates