developers · build · shipped
playbook-comfyui-imagegen
The shape of it
Image generation on hardware you own. A recipe is chosen from what the box actually has -- the VRAM band decides which ComfyUI stack fits -- then applied, verified and used. The point of the VRAM check is that a card with 6 GB and a card with 24 GB do not get the same graph, and a stack that silently runs out of VRAM mid-render looks like a broken model.
Detect, resolve, plan
pip install -U awdk
python -m adk.toolpacks.image_bootstrap detect
python -m adk.toolpacks.image_bootstrap resolve --prefer-engine comfyui
detect reports the accelerator, its VRAM and the capability band. resolve maps that
band to a recipe id, or takes one explicitly with --recipe-id. Then read the plan before
you apply it:
python -m adk.toolpacks.image_bootstrap apply --recipe-id cuda-comfyui-12gb --dry-run
python -m adk.toolpacks.image_bootstrap apply --recipe-id cuda-comfyui-12gb
apply is idempotent, and the dry run prints the commands it would execute without
executing them.
The recipes
| Recipe | Fits | Notes |
|---|---|---|
cuda-comfyui-6gb | small VRAM, NVIDIA | a reduced graph; expect smaller images |
cuda-comfyui-12gb | the common mid-range card | the default choice for a desktop |
cuda-comfyui-24gb | a large card | bigger batches and resolution |
cuda-sana-sprint | NVIDIA, low step counts | Sana, a different engine family |
cuda-bonsai-image | short on VRAM | 1-bit, small |
metal-comfyui | Apple silicon | the same ComfyUI shape on Metal |
cpu-sdxl-turbo | no GPU | slow; useful for a deterministic smoke test |
mesh-spark | a DGX Spark node in your mesh | render on the node, keep the laptop cool |
webgpu-browser | no usable local GPU | runs in the browser, no server model |
cloud-burst-vast | burst only | rents a GPU; the only recipe that costs money |
A refusal is information: apply refuses when free VRAM is measurably below the recipe's
need rather than half-starting a stack that will die during the first render.
Verify -- health is not capability
ComfyUI answers 200 on a health route with zero checkpoints loaded and generates
nothing. verify therefore asks the route generation actually uses and reports
degraded when the server is up but has no models:
python -m adk.toolpacks.image_bootstrap verify --base-url http://localhost:8188
Generate
ComfyUI listens on 8188 by default. adk image discovers a server that is already
running -- it starts nothing -- so the first question is which lanes can really generate:
adk image --backends
adk image "a lighthouse in fog, 35mm" --out lighthouse.png
adk image --width 1024 --height 1024 --steps 24 --seed 7 "a heron on a wet rock" --out heron.png
--backend forces a lane, --model picks a checkpoint, --negative sets the negative
prompt, and ADK_COMFYUI_PORT moves discovery off 8188.
adk image --backends distinguishes "running" from "running but no image route" -- a
server with the right port and the wrong build answers, and every generation fails. That
distinction is reported instead of collapsed into "not running".
Licences
ComfyUI is GPL-3.0. Checkpoint weights have their own terms and are not interchangeable: several popular SDXL-family weights carry non-commercial or use-restricted clauses, so read the model card before shipping an image commercially. Sana and Bonsai weights are likewise under their own terms. This page describes what the recipes fetch; it grants no licence to the weights.