These are the files used in my tutorial/guide:
https://medium.com/@yushantripleseven/comfyui-using-the-api-261293aa055a
basic_workflow_api.py
: The main script.
workflow_api.json
: API formatted version of the config file.
workflow.json
: regular config file, can be drag/dropped into the ComfyUI.