aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-03-25 22:31:24 +0800
committercrupest <crupest@outlook.com>2024-04-06 02:21:19 +0800
commite22c8b82aadf2b9cf888394a4b3fd01d56db1182 (patch)
tree70ff5de9905a45cd38a5b6b215799ff995080394
parent2b40202b4cd07a62e48723f0004fd6492358d4e4 (diff)
downloadcrupest-e22c8b82aadf2b9cf888394a4b3fd01d56db1182.tar.gz
crupest-e22c8b82aadf2b9cf888394a4b3fd01d56db1182.tar.bz2
crupest-e22c8b82aadf2b9cf888394a4b3fd01d56db1182.zip
configs(bruno): add more ComfyUI API.
-rw-r--r--configs/bruno/ComfyUI/Get Object Info.bru11
-rw-r--r--configs/bruno/ComfyUI/Get Prompt History.bru15
-rw-r--r--configs/bruno/ComfyUI/Post Prompt.bru124
3 files changed, 150 insertions, 0 deletions
diff --git a/configs/bruno/ComfyUI/Get Object Info.bru b/configs/bruno/ComfyUI/Get Object Info.bru
new file mode 100644
index 0000000..d1a833c
--- /dev/null
+++ b/configs/bruno/ComfyUI/Get Object Info.bru
@@ -0,0 +1,11 @@
+meta {
+ name: Get Object Info
+ type: http
+ seq: 4
+}
+
+get {
+ url: {{BASE_URL}}/object_info
+ body: none
+ auth: none
+}
diff --git a/configs/bruno/ComfyUI/Get Prompt History.bru b/configs/bruno/ComfyUI/Get Prompt History.bru
new file mode 100644
index 0000000..2e26888
--- /dev/null
+++ b/configs/bruno/ComfyUI/Get Prompt History.bru
@@ -0,0 +1,15 @@
+meta {
+ name: Get Prompt History
+ type: http
+ seq: 6
+}
+
+get {
+ url: {{BASE_URL}}/history/{{prompt_id}}
+ body: none
+ auth: none
+}
+
+vars:pre-request {
+ prompt_id: 7e345a55-21c4-4bdc-9b34-add561775144
+}
diff --git a/configs/bruno/ComfyUI/Post Prompt.bru b/configs/bruno/ComfyUI/Post Prompt.bru
new file mode 100644
index 0000000..09bf89a
--- /dev/null
+++ b/configs/bruno/ComfyUI/Post Prompt.bru
@@ -0,0 +1,124 @@
+meta {
+ name: Post Prompt
+ type: http
+ seq: 5
+}
+
+post {
+ url: {{BASE_URL}}/prompt
+ body: json
+ auth: none
+}
+
+body:json {
+ {
+ "client_id": "crupest",
+ "prompt": {
+ "3": {
+ "inputs": {
+ "seed": 156680208700286,
+ "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": "KSampler"
+ }
+ },
+ "4": {
+ "inputs": {
+ "ckpt_name": "SUPIR/SUPIR-v0Q.ckpt"
+ },
+ "class_type": "CheckpointLoaderSimple",
+ "_meta": {
+ "title": "Load Checkpoint"
+ }
+ },
+ "5": {
+ "inputs": {
+ "width": 512,
+ "height": 512,
+ "batch_size": 1
+ },
+ "class_type": "EmptyLatentImage",
+ "_meta": {
+ "title": "Empty Latent Image"
+ }
+ },
+ "6": {
+ "inputs": {
+ "text": "beautiful scenery nature glass bottle landscape, , purple galaxy bottle,",
+ "clip": [
+ "4",
+ 1
+ ]
+ },
+ "class_type": "CLIPTextEncode",
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "7": {
+ "inputs": {
+ "text": "text, watermark",
+ "clip": [
+ "4",
+ 1
+ ]
+ },
+ "class_type": "CLIPTextEncode",
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "8": {
+ "inputs": {
+ "samples": [
+ "3",
+ 0
+ ],
+ "vae": [
+ "4",
+ 2
+ ]
+ },
+ "class_type": "VAEDecode",
+ "_meta": {
+ "title": "VAE Decode"
+ }
+ },
+ "9": {
+ "inputs": {
+ "filename_prefix": "ComfyUI",
+ "images": [
+ "8",
+ 0
+ ]
+ },
+ "class_type": "SaveImage",
+ "_meta": {
+ "title": "Save Image"
+ }
+ }
+ }
+ }
+}