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.1 to 1.0.2

2

package.json
{
"name": "text-to-image-stable-diffusion",
"version": "1.0.1",
"version": "1.0.2",
"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.",

@@ -5,0 +5,0 @@ "main": "index.js",

��# text-to-image-stable-diffusion
This package can be used to generate images by providing prompts using stable diffusion api
<pre>
This package can be used to generate images by providing prompts using stable diffusion api.

@@ -33,7 +34,7 @@ This package outputs the image url generated by the prompts in an array.

import https from 'https';
import fs from 'fs'
import fs from 'fs';
const API = 'Jv4cyOoigdLsIshHZ6gJ8JDp6Vv8ekpcZC6tmsBQfjK4KFWNMP7EnDANFJDQ';
const prompt = 'Cartoons'
const negativeprompt = 'High Quality image'
const prompt = 'Cartoons';
const negativeprompt = 'High Quality image';
const width = 400;

@@ -45,2 +46,2 @@ const height = 400;

</pre>
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