Skip to content

Minimal examples on how to use Dezgo's text2image / image2image / inpainting endpoints with NodeJS

Notifications You must be signed in to change notification settings

dezgo-com/example-nodejs-simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dezgo Node.js example

This minimal example demonstrates how to use the Dezgo API with NodeJS.

You can take inspiration from the Dockerfile to install the proper dependencies.

The following scripts demonstrate how to call various endpoints:

  • txt2img.js
  • img2img.js
  • inpaint.js
  • inpaint_text.js

Finally, if you have Docker, you can invoke the run_test.sh script, which will build a Docker image and invoke a test script all in one:

sh run_test.sh txt2img.js
sh run_test.sh img2img.js
sh run_test.sh inpaint.js
sh run_test.sh inpaint_text.js

Authentication

Be sure to set the X-Dezgo-Key header to your own API key before calling the API.

More info on how to get started here: https://dev.dezgo.com/getting-started/

About

Minimal examples on how to use Dezgo's text2image / image2image / inpainting endpoints with NodeJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published