This ComfyUI workflow turns a regular photo into a cartoon-style caricature using one of 15 preset looks. It starts with LoadImage for your source photo, passes your style choice from a CustomCombo dropdown, extracts the matching preset parameters via JsonExtractString, and assembles any required identifiers with StringConcatenate. The core stylization happens in a custom processing node (UUID d4c06663-cb1a-4a41-a36b-f09c93e55e7e), which takes the source image plus the selected style key and outputs a single stylized frame. You can inspect results live with PreviewAny and save the final image via SaveImage.

Under the hood, the preset system keeps results consistent and repeatable across images. The JSON-driven mapping decouples the user-friendly style names from the actual configuration values the processing node expects, making it easy to swap styles without touching low-level settings. Because the heavy lifting is encapsulated inside the d4c06663-cb1a-4a41-a36b-f09c93e55e7e node, the graph stays simple and fast to use—no additional model loading or sampler tuning required.

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.

d5ce59e59ff3.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 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");

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