You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,14 @@ Install missing packages via `requirements.txt`
4
4
5
5
`pip install -r requirements.txt`
6
6
7
-
start `main.py` for image generation call make sure you have ComfyUI running under 127.0.0.1:8188 if not adjust the host in `websocket_api.py`.
7
+
## Using the API
8
8
9
-
You need to have an output folder with /output and an folder /output/temp. You can change the output path to a different folder in the `prompt_to_image.py`.
9
+
You need to a comfyUI server running and be able to access the "/ws" path for this server. If you have the server running localy it usually runs under "127.0.0.1:8188".
10
+
If this is not the case for you, change the `server_address` in the `basic_api.py`.
11
+
12
+
In the workflow folder are two basic Workflows:
13
+
- base_workflow.json
14
+
- baisc_image_to_image
15
+
16
+
For simple prompt to image generation load the `base_workflow.json` and call `prompt_to_image` method with your desired parameters.
17
+
For image to image generation load the `basic_image_to_image.json` and put your input image in the input folder. Call `prompt_image_to_image` with your desired parameters.
0 commit comments