2 - make a GET to this endpoint:
https://api.viewcomfy.com/api/v1/workflow/infer/?prompt_ids=${PROMPT_ID}
3 - The query parameters of this endpoint accept multiple prompt_ids. To send more than one, you need to encode them as a URI
4 - When an inference has finished, it will have the property
completed = True
and the status
can be success
or error
5 - If the status is
success
you can grab the files from the outputs property, more information about the model can be found here TypeScript, Python
snippet.ts