Giter Site home page Giter Site logo

monsterwith / stable-diffusion-api-nodejs-ai-imagegenerator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from net2devcrypto/stable-diffusion-api-nodejs-ai-imagegenerator

0.0 0.0 0.0 1.04 MB

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

JavaScript 100.00%

stable-diffusion-api-nodejs-ai-imagegenerator's Introduction

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!!

stable-diffusion-api-nodejs-ai-imagegenerator's People

Contributors

net2devcrypto avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.