spriteforge/examples/comfyui/txt2img_api.json

42 lines
1.0 KiB
JSON
Raw Normal View History

{
"1": {
"class_type": "CheckpointLoaderSimple",
"inputs": {"ckpt_name": "{{MODEL}}"}
},
"2": {
"class_type": "CLIPTextEncode",
"inputs": {"text": "{{PROMPT}}", "clip": ["1", 1]}
},
"3": {
"class_type": "CLIPTextEncode",
"inputs": {"text": "{{NEGATIVE_PROMPT}}", "clip": ["1", 1]}
},
"4": {
"class_type": "EmptyLatentImage",
"inputs": {"width": "{{WIDTH}}", "height": "{{HEIGHT}}", "batch_size": "{{BATCH_SIZE}}"}
},
"5": {
"class_type": "KSampler",
"inputs": {
"seed": "{{SEED}}",
"steps": "{{STEPS}}",
"cfg": "{{CFG}}",
"sampler_name": "{{SAMPLER}}",
"scheduler": "{{SCHEDULER}}",
"denoise": "{{DENOISE}}",
"model": ["1", 0],
"positive": ["2", 0],
"negative": ["3", 0],
"latent_image": ["4", 0]
}
},
"6": {
"class_type": "VAEDecode",
"inputs": {"samples": ["5", 0], "vae": ["1", 2]}
},
"7": {
"class_type": "SaveImage",
"inputs": {"filename_prefix": "SpriteForge", "images": ["6", 0]}
}
}