
This ComfyUI workflow transforms a simple selfie into a high-fashion editorial photograph with creative doodle illustrations. By utilizing a combination of advanced AI models such as Google Gemini Image and Nano Banana Pro, the workflow allows users to input a selfie and a text prompt describing their desired outfit. The process involves generating four distinct fashion photographs, each enhanced with playful doodles to add a unique artistic flair. The workflow is designed to be both user-friendly and technically robust, employing nodes like LoadImage for importing selfies, and RegexReplace for processing text prompts. The GeminiImage2Node is pivotal in synthesizing the initial images, while the ImageBatch and ImageFromBatch nodes facilitate the creation and selection of multiple outputs. Users can then upscale their chosen image and refine facial details, ensuring a polished final product.
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 "Selfie + Text Prompt to Studio Photoshoot Doodle" (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-fashion_shoot_prompt_doodle_api.json");
const asset = client.assets.fromFile("input.png");
wf.setInput("1", "image", asset); // LoadImage
const job = await client.run(wf);
await job.getOutputs("13")[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













