# ComfyUI

> Run a ComfyUI workflow on this node's input (float EXR round trip).

| Node | ComfyUI |
|---|---|
| Menu | AI › ComfyUI |
| **Names in each format** | |
| .oink comp (JSON) | `"type": "OC_N_comfyui"` |
| .nk script | none: written as an Oink node |
| Python | `nuke.createNode("OC_N_comfyui")` |
| Assistant (MCP) | `create_node(type="ComfyUI")` |
| Tab search | `comfyui`, or its initials `cui` |

![ComfyUI properties](/shots/nodes/comfyui@2x.webp)

## Inputs and outputs

| Port | Name | Type |
|---|---|---|
| input 0 | Image | image |
| output 0 | Image | image |

## Knobs

Panel tab **Comfyui**, in panel order.

| Knob | Label | Type | Default | Range / values | .nk knob | Description |
|---|---|---|---|---|---|---|
| `workflow` | workflow (API json) | file |  |  |  |  |
| `detected` | detected | text |  |  |  |  |
| `image_input` | image input | text | `auto` |  |  |  |
| `output` | output | text | `auto` |  |  |  |
| `prompt` | prompt | text |  |  |  |  |
| `seed` | seed (-1 keep) | float | `-1` | -1 to 2147483647 (integer) |  |  |
| `steps` | steps (0 keep) | float | `0` | 0 to 200 (integer) |  |  |
| `denoise` | denoise (-1 keep) | float | `-1` | -1 to 1 |  |  |
| `cfg` | cfg (-1 keep) | float | `-1` | -1 to 30 |  |  |
| `overrides` | overrides | text |  |  |  |  |
| `mode` | mode | menu | `FRAME` | FRAME (per frame), SEQUENCE (sequence) |  |  |
| `first` | first | float | `1001` | 0 to 100000 (integer) |  |  |
| `last` | last | float | `1001` | 0 to 100000 (integer) |  |  |
| `encoding` | encoding | menu | `SRGB` | SRGB (sRGB), LINEAR (linear) |  |  |
| `vram_gb` | VRAM lease (GB) | float | `16` | 0 to 80 |  |  |
| `server` | server (blank = auto) | text |  |  |  |  |
| `status` | status | text |  |  |  |  |

### Other knobs (Python, .nk and the assistant; not on the panel)

| Knob | Label | Type | Default | Range / values | .nk knob | Description |
|---|---|---|---|---|---|---|
| `gl_color` | Viewer Controls Color | float ×3 | `0, 0, 0` | 0 to 1 |  |  |
| `postage_stamp_frame` | Static Frame | int | `1` | -2147483648 to 2147483647 |  |  |
| `lifetimeStart` | Lifetime Start | int | `0` | -2147483648 to 2147483647 |  |  |
| `lifetimeEnd` | Lifetime End | int | `100` | -2147483648 to 2147483647 |  |  |
| `useLifetime` | Use Lifetime | boolean | `false` |  |  |  |
| `cached` | Cached | boolean | `false` |  |  |  |
| `bookmark` | Bookmark | boolean | `false` |  |  |  |
| `dope_sheet` | Dope Sheet | boolean | `false` |  |  |  |
| `clone_group` | Clone Group | string |  |  |  |  |
| `link_source` | Link Source | string |  |  |  |  |
| `link_overrides` | Link Overrides | string |  |  |  |  |
| `split_views` | Split Views | string |  |  |  |  |


---
Sources: opencomp_core/nodes/ai/comfyui_node.py, opencomp_electron/src/components/properties/knobSchema.ts
