Socket
Socket
Sign inDemoInstall

text-to-image-stable-diffusion

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

text-to-image-stable-diffusion

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.


Version published
Maintainers
1
Created
Source

��#� �t�e�x�t�-�t�o�-�i�m�a�g�e�-�s�t�a�b�l�e�-�d�i�f�f�u�s�i�o�n� � �<�p�r�e�>� � �<�p�>� � �T�h�i�s� �p�a�c�k�a�g�e� �c�a�n� �b�e� �u�s�e�d� �t�o� �g�e�n�e�r�a�t�e� �i�m�a�g�e�s� �b�y� �p�r�o�v�i�d�i�n�g� �p�r�o�m�p�t�s� �u�s�i�n�g� �s�t�a�b�l�e� �d�i�f�f�u�s�i�o�n� �a�p�i�.� � �<�/�p�>� � �<�p�>� � �T�h�i�s� �p�a�c�k�a�g�e� �o�u�t�p�u�t�s� �t�h�e� �i�m�a�g�e� �u�r�l� �g�e�n�e�r�a�t�e�d� �b�y� �t�h�e� �p�r�o�m�p�t�s� �i�n� �a�n� �a�r�r�a�y�.� � �<�/�p�>� � �<�p�>� � �Y�o�u� �c�a�n� �u�s�e� �t�h�e� �u�r�l� �t�o� �e�i�t�h�e�r� �f�e�t�c�h� �t�h�e� �i�m�a�g�e� �f�r�o�m� �t�h�e� �u�r�l� �o�r� �d�o�w�n�l�o�a�d� �t�h�e� �i�m�a�g�e� �b�y� �f�e�t�c�h�i�n�g� �f�r�o�m� �t�h�e� �u�r�l�.� � �<�/�p�>� � �<�p�>� � �Y�o�u� �n�e�e�d� �a� �s�t�a�b�l�e� �d�i�f�f�u�s�i�o�n� �a�p�i� �k�e�y� �b�e�f�o�r�e� �u�s�i�n�g� �t�h�e� �p�a�c�k�a�g�e�.� � �<�/�p�>� � �<�p�>� � �Y�o�u� �n�e�e�d� �t�o� �s�e�t� �y�o�u�r� �a�p�i� �k�e�y� �b�e�f�o�r�e� �u�s�i�n�g� �t�h�e� �p�a�c�k�a�g�e�:� � �Y�o�u� �c�a�n� �u�s�e� �t�h�e� �s�e�t�A�P�I�K�e�y�(�k�e�y�)� �f�u�n�c�t�i�o�n� �f�o�r� �t�h�i�s� �p�u�r�p�o�s�e� � �o�r� �t�h�e� �s�e�t�P�a�r�a�m�e�t�e�r�s�(�a�p�i�k�e�y�,�p�r�o�m�p�t�,�n�e�g�a�t�i�v�e� �p�r�o�m�p�t�,�w�i�d�t�h�,�h�e�i�g�h�t�)� � �f�u�n�c�t�i�o�n� � �<�/�p�>� � �<�p�>� � �A�f�t�e�r� �t�h�a�t� � �Y�o�u� �c�a�n� �u�s�e� �g�e�n�e�r�a�t�e�I�m�a�g�e�s�(�)� �f�u�n�c�t�i�o�n� �f�o�r� �g�e�n�e�r�a�t�i�n�g� �t�h�e� �i�m�a�g�e�s� � �<�p�>� � �<�p�>� � �Y�o�u� �c�a�n� �s�e�t� �t�h�e� �h�e�i�g�h�t� �a�n�d� �w�i�d�t�h� �o�f� �t�h�e� �i�m�a�g�e� �g�e�n�e�r�a�t�e�d� �u�s�i�n�g� � � �s�e�t�H�e�i�g�h�t�(�h�)�,�s�e�t�W�i�d�t�h�(�w�)� �o�r� �s�e�t�D�i�m�e�n�s�i�o�n�s�(�w�,�h�)� � �B�y� �d�e�f�a�u�l�t� �i�s� �5�1�2�,�5�1�2�.� � �<�/�p�>� � �<�p�>� � �Y�o�u� �c�a�n� �u�s�e� �s�e�t�P�r�o�m�p�t�(�p�r�o�m�p�t�)� � �f�o�r� �s�e�t�t�i�n�g� �t�h�e� � �p�r�o�m�p�t� � � �s�u�c�h� �a�s� �'�A� �d�o�g� �i�n� �r�a�i�n�'� � �a�n�d� �t�h�e� �s�e�t�N�e�g�a�t�i�v�e�P�r�o�m�p�t�(�n�e�g�)� � �f�o�r� �s�e�t�t�i�n�g� �t�h�e� �i�m�a�g�e� �q�u�a�l�i�t�y�,�p�r�e�c�i�s�i�o�n� �a�n�d� �d�e�s�c�r�i�p�t�i�o�n� � �Y�o�u� �c�a�n� �g�o� �t�o� �s�t�a�b�l�e� �d�i�f�f�u�s�i�o�n� �d�o�c�s� �f�o�r� �g�e�t�t�i�n�g� �m�o�r�e� �i�n�f�o� �a�b�o�u�t� �t�h�e� �a�p�i� �p�a�r�a�m�e�t�e�r�s� � �<�/�p�>� � �<�h�4�>� � �E�x�a�m�p�l�e�:� � �<�/�h�4�>� � �<�c�o�d�e�>� � �i�m�p�o�r�t� �s�t�a�b�l�e�D�i�f�f�u�s�i�o�n� �f�r�o�m� �'�t�e�x�t�-�t�o�-�i�m�a�g�e�-�s�t�a�b�l�e�-�d�i�f�f�u�s�i�o�n�'�;� � �i�m�p�o�r�t� �h�t�t�p�s� �f�r�o�m� �'�h�t�t�p�s�'�;� � �i�m�p�o�r�t� �f�s� �f�r�o�m� �'�f�s�'�;� � � � �c�o�n�s�t� �A�P�I� �=� �'�J�v�4�c�y�O�o�i�g�d�L�s�I�s�h�H�Z�6�g�J�8�J�D�p�6�V�v�8�e�k�p�c�Z�C�6�t�m�s�B�Q�f�j�K�4�K�F�W�N�M�P�7�E�n�D�A�N�F�J�D�Q�'�;� � �c�o�n�s�t� �p�r�o�m�p�t� �=� �'�C�a�r�t�o�o�n�s�'�;� � �c�o�n�s�t� �n�e�g�a�t�i�v�e�p�r�o�m�p�t� �=� �'�H�i�g�h� �Q�u�a�l�i�t�y� �i�m�a�g�e�'�;� � �c�o�n�s�t� �w�i�d�t�h� �=� �4�0�0�;� � �c�o�n�s�t� �h�e�i�g�h�t� �=� �4�0�0�;� � �s�t�a�b�l�e�D�i�f�f�u�s�i�o�n�.�s�e�t�P�a�r�a�m�e�t�e�r�s�(�A�P�I�,�p�r�o�m�p�t�,�n�e�g�a�t�i�v�e�p�r�o�m�p�t�,�w�i�d�t�h�,�h�e�i�g�h�t�)� � �c�o�n�s�t� �i�m�a�g�e�s� �=� �a�w�a�i�t� �s�t�a�b�l�e�D�i�f�f�u�s�i�o�n�.�g�e�n�e�r�a�t�e�I�m�a�g�e�s�(�)�;� � �c�o�n�s�o�l�e�.�l�o�g�(�i�m�a�g�e�s�)�;� � �<�/�c�o�d�e�>� � �<�/�p�r�e�>�

Keywords

FAQs

Package last updated on 21 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc