You can find some examples on how to work with the Dezgo API in Node.js here: https://github.com/orgs/dezgo-com/repositories
These repos showcase the text2image / image2image and inpainting endpoints.