Socket
Socket
Sign inDemoInstall

text-to-image-stable-diffusion

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

4

package.json
{
"name": "text-to-image-stable-diffusion",
"version": "1.0.0",
"version": "1.0.1",
"description": "Text to image generation package. This gives the url of the generated image using stable diffusion.You need a stable diffusion account and an api key from www.stablediffusionapi.com for using this package.The api key is free for first 20 calls.",

@@ -9,3 +9,3 @@ "main": "index.js",

},
"keywords": [],
"keywords": ["text-to-image","ai","ai-art","stable diffusion","image generation"],
"author": "r_o_h_a_n",

@@ -12,0 +12,0 @@ "license": "MIT",

@@ -29,2 +29,17 @@ ��# text-to-image-stable-diffusion

Example
import stableDiffusion from 'text-to-image-stable-diffusion';
import https from 'https';
import fs from 'fs'
const API = 'Jv4cyOoigdLsIshHZ6gJ8JDp6Vv8ekpcZC6tmsBQfjK4KFWNMP7EnDANFJDQ';
const prompt = 'Cartoons'
const negativeprompt = 'High Quality image'
const width = 400;
const height = 400;
stableDiffusion.setParameters(API,prompt,negativeprompt,width,height)
const images = await stableDiffusion.generateImages();
console.log(images);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc