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 ```const client = new Midjourney({ ServerId: process.env.SERVER_ID, ChannelId: process.env.CHANNEL_ID, SalaiToken: process.env.SALAI_TOKEN, HuggingFaceToken: process.env.HUGGINGFACE_TOKEN, Debug: true, Ws: true,...
How about getting the seed parameter
### the code that reproduces this issue or a replay of the bug const client = await new Midjourney({ ServerId: config.ServerId, ChannelId: config.ChannelId, SalaiToken: config.SalaiToken, Debug: true, Ws: true, });...
### the code that reproduces this issue or a replay of the bug 当代理不稳定时,会导致socket重连,从而导致监听message消息时,会丢失开始的部分数据,如第一个MESSAGE_CREATE的消息就丢失了,从而没有执行updateMjEventIdByNonce这个方法,无法更新waitMjEvents中的WaitMjEvent的id,就会导致之后收到的MESSAGE_UPDATE和画图完成后的MESSAGE_CREATE的消息通过getEventById获取不到event,因为无法找到waitMjEvents中的实际数据,从而导致不能正确的等待到Imagine的数据 我的一个策略是,在onceImage函数中的this.waitMjEvents.set时,就把原始prompt给加进去,之后如果通过getEventById找不到时,就通过getEventByContent找,然后再更新id ### Describe the bug **Describe the bug** A clear and concise description of what the...
### the code that reproduces this issue or a replay of the bug const imgUrl=`https://cdn.discordapp.com/attachments/1008571049039896576/1119473369813884958/manuelcorazzari_dirty_hands_holding_dirt_from_the_ground_sun_li_98bfb5e5-8c4f-4cb3-879a-bc229108e505.png` const msg = await client.Describe(imgUrl); console.log({ msg }); ### Describe the bug  No result...
### the code that reproduces this issue or a replay of the bug TypeError: Cannot read properties of undefined (reading 'name') ### Describe the bug  ### error log 👆
which api should i use? These codes: ` const msg = await client.Imagine( "https://media.discordapp.net/attachments/1094892992281718894/1106660210380132503/Soga_A_Greek_man_with_mustache_in_national_costume_riding_a_don_3255e7c1-38ee-4892-b7c7-9f0dc3f2786d.png?width=1040&height=1040 https://cdn.discordapp.com/attachments/1094892992281718894/1106798152188702720/Soga__489d80b2-db74-4a93-a998-881a9542abbe.png", (uri: string, progress: string) => { console.log("loading", uri, "progress", progress); } );` how do I...
Thanks for your work. When in remix mode, variations may encounter errors. Can you add an API that allows for the direct enablement or disablement of remix mode?
  ### 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...
The returned image address cannot be accessed in certain countries. How to proxy the returned image address?