midjourney-api
midjourney-api copied to clipboard
MidJourney client. Unofficial Node.js client
### the code that reproduces this issue or a replay of the bug  ### Describe the bug  ### error log why?Often appear
### the code that reproduces this issue or a replay of the bug ``` client.Imagine("cutting-edge, confident, elegant, mysterious", (uri, p) => { console.log("\n\n\nloading", uri, p, "\n\n\n"); }).then(msg=>{console.log("\n\n\nDone:", msg)}).catch(err=>{console.log("ERR:", err)}); ```...
node_modules/midjourney/src/ws.message.ts:24 this.ws = new this.config.WebSocket(this.config.WsBaseUrl); ^ TypeError: this.config.WebSocket is not a constructor node_modules/midjourney/src/ws.message.ts:24:15)
here's the code ```const { Client, GatewayIntentBits, Attachment } = require('discord.js'); const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent] }); const axios = require('axios') const { Midjourney } =...
### the code that reproduces this issue or a replay of the bug const { Midjourney } = require("midjourney") const axios = require('axios') const express = require('express') const router =...
```js async Imagine(prompt: string, loading?: LoadingHandler,customSeed:number) { prompt = prompt.trim(); if (!this.wsClient) { const seed = CustomSeed ?? random(1000000000, 9999999999); prompt = `[${seed}] ${prompt}`; } const nonce = nextNonce(); this.log(`Imagine`,...
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...
### the code that reproduces this issue or a replay of the bug  ### Describe the bug **Describe the bug** The variation response only prompt but no seed, this...
We're running into time-out issues with our provider when a Midjourney base image takes too long to resolve. I'm wondering if there's any way to retrieve the base image without...
### the code that reproduces this issue or a replay of the bug npx tsx example/imagine-ws.ts npx tsx example/imagine-ws.ts ### Describe the bug run this example 2 times, the second...