Browse Source

Update how to get the prompt in api format in the example.

pull/941/head
comfyanonymous 1 year ago
parent
commit
d5c0765f4e
  1. 8
      script_examples/basic_api_example.py

8
script_examples/basic_api_example.py

@ -2,8 +2,12 @@ import json
from urllib import request, parse from urllib import request, parse
import random import random
#this is the ComfyUI api prompt format. If you want it for a specific workflow you can copy it from the prompt section #This is the ComfyUI api prompt format.
#of the image metadata of images generated with ComfyUI
#If you want it for a specific workflow you can "enable dev mode options"
#in the settings of the UI (gear beside the "Queue Size: ") this will enable
#a button on the UI to save workflows in api format.
#keep in mind ComfyUI is pre alpha software so this format will change a bit. #keep in mind ComfyUI is pre alpha software so this format will change a bit.
#this is the one for the default workflow #this is the one for the default workflow

Loading…
Cancel
Save