获取任务数据
开发中
GET
http://192.168.2.184:8188/history/{prompt_id}
请求参数
Path 参数
prompt_id
string
必需
示例值:
7dd934a3-c22c-4474-a1ae-2f6a823699e5
示例代码
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.2.184:8188/history/7dd934a3-c22c-4474-a1ae-2f6a823699e5'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"35bd62e6-a6fd-4a32-84d4-365d80bd79d5": {
"prompt": [
1,
"35bd62e6-a6fd-4a32-84d4-365d80bd79d5",
{
"3": {
"inputs": {
"seed": 1095203137526772,
"steps": 20,
"cfg": 8,
"sampler_name": "euler",
"scheduler": "normal",
"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": "ghostxl_v10BakedVAE.safetensors"
},
"class_type": "CheckpointLoaderSimple",
"_meta": {
"title": "Checkpoint加载器(简易)"
}
},
"5": {
"inputs": {
"width": 1024,
"height": 1024,
"batch_size": 1
},
"class_type": "EmptyLatentImage",
"_meta": {
"title": "空Latent"
}
},
"6": {
"inputs": {
"text": "a beautiful girl",
"clip": [
"4",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP文本编码器"
}
},
"7": {
"inputs": {
"text": "text, watermark",
"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": "test003"
},
[
"9"
]
],
"outputs": {
"9": {
"images": [
{
"filename": "ComfyUI_00068_.png",
"subfolder": "",
"type": "output"
}
]
}
},
"status": {
"status_str": "success",
"completed": true,
"messages": [
[
"execution_start",
{
"prompt_id": "35bd62e6-a6fd-4a32-84d4-365d80bd79d5",
"timestamp": 1723867781938
}
],
[
"execution_cached",
{
"nodes": [],
"prompt_id": "35bd62e6-a6fd-4a32-84d4-365d80bd79d5",
"timestamp": 1723867781939
}
],
[
"execution_success",
{
"prompt_id": "35bd62e6-a6fd-4a32-84d4-365d80bd79d5",
"timestamp": 1723867826249
}
]
]
}
}
}
修改于 2024-04-19 13:32:08