Wildric-Auric / MidJourney-Wrapper

MidJourney wrapper in Discord.
Creative Commons Zero v1.0 Universal
698 stars 149 forks source link

Is there an API? #71

Open xucian opened 1 year ago

xucian commented 1 year ago

Hello! Nice tool! I need to generate images from python. Does this tool support this without manual interaction? I see it's mostly focused on clicking stuff and interacting with a bot (it needs a message id and hash, which I understand that can only come from a bot, but maybe there's a way to automate that?)

Thanks

charlesknapp commented 1 year ago

Create an API for your bot. Being a primary MERN stack developer, I went with MongoDB for my API database.

xucian commented 1 year ago

Create an API for your bot. Being a primary MERN stack developer, I went with MongoDB for my API database.

Ah, those are pretty foreign to me. I am looking to either integrate this python code directly in my other python project, or have an API wrapper over it (as I think you've done, only that I'd probably do it in python, probably django/flask).

Since these 2 projects would sit under the same machine, I think they just need some local communication set up, not necessarily a REST API

charlesknapp commented 1 year ago

If you want to communicate between them, it's best to create a shared database where you store various information for both to utilize :)