Skip to content

Instantly share code, notes, and snippets.

@thinkyhead
Created November 21, 2024 06:02
Show Gist options
  • Save thinkyhead/841aa574b6bfbf51a4f23d78d2c7c8b5 to your computer and use it in GitHub Desktop.
Save thinkyhead/841aa574b6bfbf51a4f23d78d2c7c8b5 to your computer and use it in GitHub Desktop.
ComfyUI Workflow for Open WebUI
When exporting a workflow from ComfyUI use "API format."
This example workflow uses:
- Model: deliberate_v2
- LoRA: LCM 1.5
- Steps: 8
- CFG Scale: 1.2
ComfyUI Base URL:
http://localhost:8188
Use the following values for ComfyUI Workflow Nodes fields:
Prompt: text 4
Model: ckpt_name 2
Width: width 3
Height: height 3
Steps: steps 1
Seed: 1
{
"1": {
"inputs": {
"seed": 0,
"steps": 8,
"cfg": 1.2,
"sampler_name": "lcm",
"scheduler": "normal",
"denoise": 1,
"model": [
"8",
0
],
"positive": [
"4",
0
],
"negative": [
"5",
0
],
"latent_image": [
"3",
0
]
},
"class_type": "KSampler",
"_meta": {
"title": "KSampler"
}
},
"2": {
"inputs": {
"ckpt_name": "deliberate_v2.safetensors"
},
"class_type": "CheckpointLoaderSimple",
"_meta": {
"title": "Load Checkpoint"
}
},
"3": {
"inputs": {
"width": 512,
"height": 512,
"batch_size": 1
},
"class_type": "EmptyLatentImage",
"_meta": {
"title": "Empty Latent Image"
}
},
"4": {
"inputs": {
"text": "Prompt",
"clip": [
"8",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"5": {
"inputs": {
"text": "",
"clip": [
"8",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"6": {
"inputs": {
"samples": [
"1",
0
],
"vae": [
"2",
2
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE Decode"
}
},
"7": {
"inputs": {
"filename_prefix": "imagine",
"images": [
"6",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "Save Image"
}
},
"8": {
"inputs": {
"model": [
"2",
0
],
"clip": [
"2",
1
],
"lora_name": "lcm-lora-sdv1-5.safetensors",
"strength_model": 1,
"strength_clip": 1
},
"class_type": "LoraLoader",
"_meta": {
"title": "Load LoRA"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment