The 'Character × 4 Scene Explorer' workflow is designed to help users generate a variety of character images based on a single reference image. This workflow leverages the power of Google Gemini Image and Nano Banana Pro models to create a 1x4 grid of character variations. By using nodes such as LoadImage and GeminiImage2Node, the workflow first processes the input image to produce four distinct character scenes. Once generated, users can select their preferred image for further refinement and upscaling using the Nano Banana Pro model, ensuring high-quality output.
Technically, this workflow utilizes several custom nodes, including those from comfyui-kjnodes and comfyui_essentials, which streamline the image processing and refinement tasks. Nodes like Reroute, PrimitiveInt, and RegexReplace are employed to manage data flow and transform inputs efficiently. This workflow is particularly useful for artists and designers looking to explore multiple character design options quickly, as it automates the generation and refinement process, saving time and enhancing creativity.
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.
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 "Character × 4 Scene Explorer" (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("templates-split_stack_api.json");
const asset = client.assets.fromFile("input.png");
wf.setInput("1", "image", asset); // LoadImage
const job = await client.run(wf);
await job.getOutputs("18")[0].toFile("output.png"); // SaveImageThe 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













