- 🦊一分钟,了解StableDiffusion WebUI 和 ComfyUI !
- Stable Diffusion WebUI
- ComfyUI
/history/{prompt_id}
GET
http://192.168.3.25:8188/history/0593b3cc-a51c-4791-af75-16dfc623101a
请求参数
无
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://192.168.3.25:8188/history/0593b3cc-a51c-4791-af75-16dfc623101a'
返回响应
🟢200成功
application/json
Body
39d61fa4-58a4-4f61-a547-caab0f4c3a53
object
必需
prompt
array [oneOf]
必需
outputs
object
必需
status
object
必需
示例
{
"39d61fa4-58a4-4f61-a547-caab0f4c3a53": {
"prompt": [
10,
"39d61fa4-58a4-4f61-a547-caab0f4c3a53",
{
"3": {
"inputs": {
"seed": 687973405480854,
"steps": 30,
"cfg": 8,
"sampler_name": "dpmpp_2m",
"scheduler": "karras",
"denoise": 1,
"model": [
"4",
0
],
"positive": [
"6",
0
],
"negative": [
"7",
0
],
"latent_image": [
"5",
0
]
},
"class_type": "KSampler",
"_meta": {
"title": "K采样器"
}
},
"4": {
"inputs": {
"ckpt_name": "sdxl-动漫二次元_2.0.safetensors"
},
"class_type": "CheckpointLoaderSimple",
"_meta": {
"title": "Checkpoint加载器(简易)"
}
},
"5": {
"inputs": {
"width": 512,
"height": 512,
"batch_size": 1
},
"class_type": "EmptyLatentImage",
"_meta": {
"title": "空Latent"
}
},
"6": {
"inputs": {
"text": "1girl,flower,outdoors,solo,dress,long hair,closed eyes,sky,holding,smile,cloud,open mouth,field,blush,day,blue sky,white flower,holding flower,flower field,short sleeves,teeth,blue dress,petals,:d,facing viewer,grey hair,floating hair,wind,happy,^_^,daisy,upper teeth only,white dress,",
"clip": [
"4",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP文本编码器"
}
},
"7": {
"inputs": {
"text": "(worst quality, low quality),deformed,distorted,disfigured,doll,poorly drawn,bad anatomy,wrong anatomy,",
"clip": [
"4",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP文本编码器"
}
},
"8": {
"inputs": {
"samples": [
"3",
0
],
"vae": [
"4",
2
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE解码"
}
},
"9": {
"inputs": {
"filename_prefix": "ComfyUI",
"images": [
"8",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "保存图像"
}
}
},
{
"client_id": "533ef3a3-39c0-4e39-9ced-37d290f371f8"
},
[
"9"
]
],
"outputs": {
"9": {
"images": [
{
"filename": "ComfyUI_00138_.png",
"subfolder": "",
"type": "output"
}
]
}
},
"status": {
"status_str": "success",
"completed": true,
"messages": [
[
"execution_start",
{
"prompt_id": "39d61fa4-58a4-4f61-a547-caab0f4c3a53"
}
],
[
"execution_cached",
{
"nodes": [],
"prompt_id": "39d61fa4-58a4-4f61-a547-caab0f4c3a53"
}
]
]
}
}
}
修改于 2024-07-08 12:14:31