erictik / midjourney-api

MidJourney client. Unofficial Node.js client
Apache License 2.0
1.67k stars 278 forks source link

Error generating the image: ImagineApi failed with status 400 #123

Open willymmerlet12 opened 1 year ago

willymmerlet12 commented 1 year ago

I have been using this api for over 2 weeks and never had any issues. Today I have been getting this error surprisingly. its says error config { all my configs here } . What could generate this error? Do I have to create a new discord bot? and change the configs? ANy help would be greatly appreciated!

HiroForYou commented 1 year ago

same error here, a few minutes ago

jakowenko commented 1 year ago

I made an issue here to track the fix: https://github.com/erictik/midjourney-api/issues/124

It's related to the prompt version ID changing.

iamkunal9 commented 1 year ago

Opened the new pull req with the fix till then you can update using my repo using this command > npm i github:iamkunal9/midjourney-api

bradleyberger commented 1 year ago

Thanks for adding that pull request @iamkunal9 , it worked for me. Where did you get those numbers from?

jakowenko commented 1 year ago

Thanks for adding that pull request @iamkunal9 , it worked for me. Where did you get those numbers from?

You can get them by making the commands on discord and looking at the network request.

zcpua commented 1 year ago

https://github.com/erictik/midjourney-api/commit/a15e8c70c78d7116af28092c49ad6bec99f000fd#diff-eb2670564ae072c1d316a239d83b7e1ff892808d117e9e232d9d98db4be6fdd4