erictik / midjourney-api

MidJourney client. Unofficial Node.js client
Apache License 2.0
1.69k stars 283 forks source link

WARNING: Accessing Midjourney via third-party tools or scripting is strictly forbidden and is grounds for a permanent ban. #222

Open jeffcrouse opened 1 year ago

jeffcrouse commented 1 year ago

Just a warning that using this to access Midjourney could result in being blocked or permanently banned. I found this out the hard way. blocked_01 blocked_02_edit

alexhawkins commented 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, });

jeffcrouse commented 1 year ago

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 ?

mahdikiani commented 1 year ago

what is client code?

JKamsker commented 1 year ago

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

jeffcrouse commented 1 year ago

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…

JKamsker commented 1 year ago

@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

jeffcrouse commented 1 year ago

@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".