midjourney-ui
midjourney-ui copied to clipboard
vercel ws doesn't work.
netlify ws work. vercel ws doesn't work. u can disable ws or try netlify.
how to disable ws, I use the following with Ws set to false, but it still reports 502
const client = new Midjourney({
ServerId: <string>process.env.SERVER_ID,
ChannelId: <string>process.env.CHANNEL_ID,
SalaiToken: <string>process.env.SALAI_TOKEN,
Debug: true,
Ws: false,
});
https://github.com/erictik/midjourney-api/blob/main/example/imagine.ts