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.2 to 1.0.3

2

package.json
{
"name": "text-to-image-stable-diffusion",
"version": "1.0.2",
"version": "1.0.3",
"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
<pre>
<p>
This package can be used to generate images by providing prompts using stable diffusion api.
</p>
<p>
This package outputs the image url generated by the prompts in an array.
</p>
<p>
You can use the url to either fetch the image from the url or download the image by fetching from the url.
</p>
<p>
You need a stable diffusion api key before using the package.
</p>
<p>
You need to set your api key before using the package:

@@ -15,10 +20,13 @@ You can use the setAPIKey(key) function for this purpose

function
</p>
<p>
After that
You can use generateImages() function for generating the images
<p>
<p>
You can set the height and width of the image generated using
setHeight(h),setWidth(w) or setDimensions(w,h)
By default is 512,512.
</p>
<p>
You can use setPrompt(prompt)

@@ -30,5 +38,7 @@ for setting the prompt

You can go to stable diffusion docs for getting more info about the api parameters
Example
</p>
<h4>
Example:
</h4>
<code>
import stableDiffusion from 'text-to-image-stable-diffusion';

@@ -46,3 +56,3 @@ import https from 'https';

console.log(images);
</code>
</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