Discussions

Ask a Question
Back to All

Using Javascript with Monster.....

I'm doing text-to-image generation using JS. Currently, it seems like I have to:

  1. do a fetch to request the text-to-image generation
  2. do multiple fetches -- polling the process-id until the status comes back as COMPLETED

Is there a way to just do a single async call that you can wait on until the image is sent?

If not, what is your recommended method of polling?

J