This Headshot Generator workflow lets you upload a selfie, choose an outfit and backdrop, and produce a polished, professional portrait. It wires together text controls and image conditioning so your face is preserved while the clothing and background are restyled. Your selfie is brought in with LoadImage and routed into a core generation node (ID: d4c06663-cb1a-4a41-a36b-f09c93e55e7e) that handles the actual synthesis. PreviewAny gives you quick visual checks, and SaveImage writes final results to disk.

Outfit and backdrop are managed with text nodes so you can work from presets or free‑type instructions. PrimitiveStringMultiline holds a small JSON block of presets; JsonExtractString pulls fields like outfit and backdrop from that JSON. ComfySwitchNode lets you toggle between preset-driven text and a custom prompt path. StringConcatenate assembles the final instruction text the generator sees (for example, a base headshot prompt plus your selected outfit and backdrop). A CustomCombo node encapsulates supporting pieces of the pipeline, so model loading and sampler details stay tidy while still exposing the key inputs you need for fast iteration.

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/d70243b6fc64.json
Fetching 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

Frequently Asked Questions

View all workflows
Character
Cinematic
Image to Video
Lip Sync
Multiple Angles
Portrait
Style Reference
Style Transfer
Text to Video
Video Generation
Video
Showing 30 of 30 templates