An API NodeJS script to automate image generation using MidJourneyV4 model in Stable Diffusion.
** THE FILES ATTACHED TO THIS REPO ARE FOR EDUCATIONAL PURPOSES ONLY ** ** USE IT AT YOUR OWN RISK** **I'M NOT RESPONSIBLE FOR ANY USE, ISSUES ETC.. **
Download midjourneyapi folder from this repo.
Extract and navigate to project folder then install dependencies: npm i
cd midjourneyapi
npm i
Create your Account in Stablediffusion: https://stablediffusionapi.com/
Create API key then copy it. Update midjourneyapi.js and add your api key:
const apiKey = 'REPLACE-WITH-YOUR-API-KEY';
Add your prompt description of what you want to generate.
const prompt = 'a dog walking on the beach with sunglasses, portrait, ultra realistic, futuristic background , concept art, intricate details, highly detailed';
Add how many pics you want to generate:
const numberOfPics = '3'
- Save and execute in your terminal:
node midjourneyapi.js
Pictures will be inside the "pics" folder once generated.
Follow me in Youtube @Net2Dev!!