This ComfyUI template demonstrates a high‑fidelity image editing pipeline that preserves the original subject, pose, lighting, and composition while making targeted changes. It’s built around a simple, reliable graph: LoadImage feeds a reference image into OpenAIGPTImageNodeV2 for natural‑language edits, and SaveImageAdvanced handles consistent output naming and metadata. The included sample asset (hairstyle_makeup_base_gpt_image25.png) lets you test the flow immediately.

Technically, OpenAIGPTImageNodeV2 calls an OpenAI GPT image model in image‑edit mode, using the source pixels as strong conditioning so that only requested elements (e.g., outfit, hairstyle, facial features, or camera angle) change. You guide the edit by writing a precise prompt that also states what must stay the same (for example: “Keep the same pose, lighting, background, and composition; only change the hairstyle to a short bob”). This makes the workflow excellent for sequential frames and subject‑consistent variations. SaveImageAdvanced then writes the results with versioned filenames so iterations are easy to track.

API

Utiliser ce workflow depuis le code

Chaque workflow Comfy est un graphe JSON. Le contenu ci-dessous est ce workflow, exactement comme ComfyUI l’exécute — récupérez-le depuis l’URL, gardez-le dans le contrôle de version, ou chargez-le dans ComfyUI et exécutez-le nœud par nœud.

f423e4de5251.json
Récupération du JSON du workflow…

Exécutez-le depuis TypeScript ou Python avec le Comfy SDK. Le même code cible Comfy Cloud ou un ComfyUI auto-hébergé — seule l’URL de base change.

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

// Run this workflow (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });
const wf = await client.workflows.fromFile("workflow_api.json");
const job = await client.run(wf);
await job.getOutputs("<output-node-id>")[0].toFile("output.png");

Le SDK prend un workflow au format API : ouvrez ce workflow dans ComfyUI et utilisez Fichier → Exporter le workflow (API).

L’accès à l’API Comfy Cloud nécessite un forfait avec clé API.

Voir tous les workflows
Showing 30 of 30 templates