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.
GET https://comfy.org/workflows/download/d5ce59e59ff3.jsonFetching workflow JSON…
Run it from Python or TypeScript with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
# Install (beta)
pip install comfy-sdk # Python
npm i @comfyorg/sdk # TypeScript
# Run this workflow (Python)
from comfy_sdk import Comfy
client = Comfy(api_key="comfyui-...")
wf = client.workflows.from_file("workflow_api.json")
job = client.run(wf)
for output in job.get_outputs("<output-node-id>"):
output.to_file(output.name)The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API). API access requires a Comfy Cloud plan with an API key. SDK docs · Get an API key
FAQ














