Open jeffcrouse opened 1 year ago
@jeffcrouse post your client code when you call Imagine. This portion here const client = new Midjourney({ ServerId: <string>process.env.SERVER_ID, ChannelId: <string>process.env.CHANNEL_ID, SalaiToken: <string>process.env.SALAI_TOKEN, HuggingFaceToken: <string>process.env.HUGGINGFACE_TOKEN, SessionId: <string>process.env.SALAI_TOKEN, Debug: true, Ws: true, });
Thanks, @alexhawkins -- but what does this accomplish? How does it make you immune to the MidJourney terms of service? I assume you need to sign up for the HUGGINGFACE_TOKEN at https://huggingface.co ?
what is client code?
https://github.com/erictik/midjourney-api/pull/233
Fixes this by using a better method than huggingface.
until then use npm midjourney-jk
and specify ReplicateToken(https://replicate.com/) instead of HuggingfaceToken
I still wish someone could explain how this gets around the fact that “accessing Midjourney via third-party tools or scripting is strictly forbidden and is grounds for a permanent ban.” Is it somehow not using the official Midjourney or…
@jeffcrouse basically it is a discord bot disguised as user, so it can use bot commands as if it were an actual human.
Mj has recently released a captcha to test if users were actually human, but all it does is "hey, what is in this picture? Dog, duck, dragon or a man?" The way to get around it is simply using visual ai(in my case blip2) to find the correct answer.
This is all against the tos of discord and mj, but where is the fun in sticking to the rules? :D
@JKamsker thanks for the explanation. I am aware that this particular module uses uses the Discord API to interact with MJ -- I just wasn't sure if these HuggingFace and Replicate methods were a workaround for the TOS. I'm hardly a stickler for the rules, but I'm trying to determine if it's viable to use this in a commercial project. In other words: is there a way around the existing MJ TOS. It seems that the answer is "no".
Just a warning that using this to access Midjourney could result in being blocked or permanently banned. I found this out the hard way.