ComfyUI
ComfyUI is a node-based visual programming interface for AI image and video generation. Plinken integrates with ComfyUI running on a RunPod GPU container, providing a workflow editor for creating complex generation pipelines.
ComfyUI Module
Section titled “ComfyUI Module”The ComfyUI module (comfyui) manages the ComfyUI Manager panel and connection to the active pod.
Module Parameters
Section titled “Module Parameters”| Parameter | Type | Description |
|---|---|---|
visible | bool | ComfyUI Manager panel visibility |
Commands
Section titled “Commands”| Command ID | Description |
|---|---|
comfyui:toggle-visible | Toggle the ComfyUI Manager panel |
pl.cmd("comfyui:toggle-visible")Prerequisites
Section titled “Prerequisites”- A running ComfyUI container on RunPod (see Container Manager)
- RunPod API key configured in Settings
Connection
Section titled “Connection”When a ComfyUI pod is running, Plinken automatically:
- Detects the active pod
- Establishes an SSH tunnel
- Routes the ComfyUI API endpoint (
comfy_url) to the local client - Enables the ComfyUI panel
Workflows
Section titled “Workflows”ComfyUI uses a node graph to define generation pipelines. Each node performs one operation:
Common Node Types
Section titled “Common Node Types”| Node | Description |
|---|---|
| Load Checkpoint | Load a Stable Diffusion model |
| CLIP Text Encode | Convert text prompt to embeddings |
| KSampler | Run the diffusion sampling process |
| VAE Decode | Convert latents to pixel images |
| Save Image | Output the generated image |
| Load Image | Input an image for img2img or ControlNet |
| ControlNet Apply | Apply ControlNet conditioning |
Workflow Types
Section titled “Workflow Types”| Workflow | Description |
|---|---|
| Text-to-Image | Generate images from text prompts |
| Image-to-Image | Transform existing images with AI |
| Inpainting | Fill in masked regions of images |
| ControlNet | Guide generation with structural inputs (pose, depth, edges) |
| Video Generation | Generate video frames with AnimateDiff or similar |
| Upscaling | AI upscaling with ESRGAN or similar models |
Integration with Plinken
Section titled “Integration with Plinken”Importing Results
Section titled “Importing Results”Generated images and videos can be imported directly into your Plinken project:
- Images → Compositor image layers or timeline assets
- Videos → Timeline video tracks or compositor video layers
LoRA Support
Section titled “LoRA Support”LoRA (Low-Rank Adaptation) weights can be loaded in ComfyUI workflows for fine-tuned generation. Manage LoRA files through the LoRA Manager.
| Feature | Description |
|---|---|
| Upload LoRA | Upload .safetensors files to the pod |
| Browse LoRA | List available LoRA models |
| Apply LoRA | Add LoRA nodes to workflows |
Workflow Editor
Section titled “Workflow Editor”The workflow editor provides a visual canvas for building ComfyUI node graphs:
| Feature | Description |
|---|---|
| Drag & drop | Add nodes from the node library |
| Wire connections | Connect node outputs to inputs |
| Preview | See intermediate results at each node |
| Queue | Submit workflows for execution |
| History | View past generation results |
ComfyUI exposes a WebSocket + HTTP API for workflow execution:
| Endpoint | Method | Description |
|---|---|---|
/prompt | POST | Submit a workflow for execution |
/history | GET | Retrieve generation history |
/view | GET | View generated images |
/ws | WS | Real-time progress updates |
Performance Tips
Section titled “Performance Tips”- Batch generation — Queue multiple prompts for efficient GPU utilization
- Model caching — Keep frequently used models loaded to avoid reload time
- Resolution — Start with 512×512 or 1024×1024, upscale after
- Steps — 20–30 steps is usually sufficient for SDXL; Flux needs fewer (4–8 for Schnell)
Troubleshooting
Section titled “Troubleshooting”| Issue | Solution |
|---|---|
| ComfyUI not connecting | Ensure pod is running and SSH tunnel is active |
| Model not found | Upload models to the pod via the LoRA Manager or SSH |
| Out of memory | Use a larger GPU or reduce resolution/batch size |
| Slow generation | Check GPU utilization; consider a faster GPU tier |
Related
Section titled “Related”- Container Manager — Managing RunPod GPU pods
- Create Overview — AI tools overview
- WaveSpeed — Simpler cloud video generation