How to use the API
The ViewComfy Serverless API can be called with a JSON POST request or streaming responses via Server-Sent Events. This second option allows for real-time tracking of the ComfyUI logs. In this guide, we will go over how to call the API with the streaming response. All the code you need to run the API can be found in this GitHub folder (this guide uses the Python example code, you can access the TypeScript example code here. It works in the same way.)If you want a full guide on how to deploy your own workflow, you can find it here.
After downloading all the files, you can install the dependencies:
1. Getting your API keys
In order to use your API endpoint, you will first need to create your API keys.
