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.

api_openai_image_1_multi_inputs.json
Fetching workflow JSON…

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

// Install (beta)
npm i @comfyorg/sdk

// Run "OpenAI: GPT-Image-1 Multi Inputs" (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });

// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("api_openai_image_1_multi_inputs_api.json");

const asset = client.assets.fromFile("input.png");
wf.setInput("2", "image", asset); // LoadImage

const job = await client.run(wf);
await job.getOutputs("11")[0].toFile("output.png"); // SaveImageAdvanced

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).

Comfy Cloud API access requires a plan with an API key.

FAQ

Frequently Asked Questions

View all workflows
Showing 30 of 30 templates