We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4136502 commit 2156ce9Copy full SHA for 2156ce9
script_examples/basic_api_example.py
@@ -101,6 +101,14 @@
101
102
def queue_prompt(prompt):
103
p = {"prompt": prompt}
104
+
105
+ # If the workflow contains API nodes, you can add a Comfy API key to the `extra_data`` field of the payload.
106
+ # p["extra_data"] = {
107
+ # "api_key_comfy_org": "comfyui-87d01e28d*******************************************************" # replace with real key
108
+ # }
109
+ # See: https://docs.comfy.org/tutorials/api-nodes/overview
110
+ # Generate a key here: https://platform.comfy.org/login
111
112
data = json.dumps(p).encode('utf-8')
113
req = request.Request("http://127.0.0.1:8188/prompt", data=data)
114
request.urlopen(req)
0 commit comments