Skip to content

net2devcrypto/Stable-Diffusion-API-NodeJS-AI-ImageGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Stable-Diffusion-API-NodeJS-AI-ImageGenerator

An API NodeJS script to automate image generation using Stable Diffusion AI Image Generator

Subscribe to my Youtube! Net2Dev

** 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.. **

Step 1

Download stablediffusionapi folder from this repo.

Step 2

Extract and navigate to project folder then install dependencies: npm i

cd stablediffusionapi
npm i

Step 3

Create your Account in Stablediffusion: https://stablediffusionapi.com/

Step 4

Create API key then copy it. Update stablegenerate.js and add your api key:

const apiKey = 'REPLACE-WITH-YOUR-API-KEY';

Step 5

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';

Step 6

Add how many pics you want to generate:

const numberOfPics = '3'

Step 7

  • Save and execute in your terminal:
node stablegenerate.js

Pictures will be inside the "pics" folder once generated.

Follow me in Youtube @Net2Dev!!

About

An API NodeJS script to automate image generation using Stable Diffusion AI Image Generator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published