区分画布 JSON 与 prompt 节点对象
{
"version": 0.4,
"nodes": [
[
5,
"EmptyLatentImage"
],
[
3,
"KSampler"
],
[
8,
"VAEDecode"
],
[
9,
"SaveImage"
],
[
4,
"CheckpointLoaderSimple"
],
[
6,
"CLIPTextEncode"
],
[
7,
"CLIPTextEncode"
]
],
"links": 9
}本页下载文件真实渲染;人工错误与响应样本已标注。
把已经验证的 UI 工作流导出成后端 API prompt,识别 class_type、inputs 与节点引用,避免把画布文件直接提交。
| EmptyLatentImage | 5 | [512, 512, 1] |
| KSampler | 3 | [156680208700286, "randomize", 20, 8, "euler", "normal", 1] |
| SaveImage | 9 | ["practice/comfyui-export-api-format"] |
| CheckpointLoaderSimple | 4 | ["v1-5-pruned-emaonly-fp16.safetensors"] |
| CLIPTextEncode | 6 | ["beautiful scenery nature glass bottle landscape, , purple galaxy bottle,"] |
| CLIPTextEncode | 7 | ["text, watermark"] |