erictik / midjourney-api

MidJourney client. Unofficial Node.js client
Apache License 2.0
1.65k stars 271 forks source link

Any chance to wait until Imagine or Upscale finishes until go further in the loop? #177

Open recallyourname opened 1 year ago

recallyourname commented 1 year ago

I'm trying to loop through the array of prompts. How could I wait until progress is 100%, collect the result and then go further?

zcpua commented 1 year ago

await imagine() await upscale()

recallyourname commented 1 year ago

it awaits for the request to be sent and moves to another array element then eventually crashes with 429 (too many requests)

edit: either with ws parameter set to true or false