text-to-image-stable-diffusion
v1.0.6
Published
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.
Downloads
9
Maintainers
Readme
��#� �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�
�
�
�
�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�.�
�
�
�
�G�o� �t�o� �'�h�t�t�p�s�:�/�/�s�t�a�b�l�e�d�i�f�f�u�s�i�o�n�a�p�i�.�c�o�m�/�'�
�
�
�
�C�r�e�a�t�e� �a�n� �a�c�c�o�u�n�t� �a�n�d� �l�o�g�i�n� �i�f� �n�o�t� �l�o�g�g�e�d� �i�n�.�
�
�
�
�C�l�i�c�k� �o�n� �t�h�e� �P�l�a�y�g�r�o�u�n�d� �t�a�b�.�
�
�
�
�S�e�l�e�c�t� �A�P�I� �e�n�d�p�o�i�n�t� �a�s� �'�t�e�x�t� �t�o� �i�m�a�g�e�'�.�
�
�
�
�N�o�w�,� �C�l�i�c�k� �o�n� �A�P�I� �s�e�t�t�i�n�g�s� �a�n�d� �g�e�t� �a�n�d� �c�l�i�c�k� �o�n� �v�i�e�w� �t�h�e� �a�p�i� �k�e�y� �a�n�d� �t�h�e�n� �c�o�p�y� �i�t� �i�n� �n�o�t�e�p�a�d� �f�i�l�e�.�
�
�U�s�e� �t�h�i�s� �a�p�i� �k�e�y� �i�n� �t�h�e� �c�o�d�e� �t�o� �g�e�n�e�r�a�t�e� �i�m�a�g�e�s�.�
�
� �
�
�
�
�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�.�
�
�
�
�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�.�
�
�
�
�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�.�
�
�
�
�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�,�n�u�m�b�e�r�_�o�f�_�i�m�a�g�e�s�)�
�
�f�u�n�c�t�i�o�n�.�
�
�
�
�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�.�
�
�
�
�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�.�
�
�
�
�Y�o�u� �c�a�n� �u�s�e� �s�e�t�N�u�m�b�e�r�O�f�I�m�a�g�e�s�(�n�u�m�b�e�r�)� �f�o�r� �s�e�t�t�i�n�g� �t�h�e� �n�u�m�b�e�r� �o�f� �i�m�a�g�e�s� �i�n� �t�h�e� �o�u�t�p�u�t�.�
�
�n�u�m�b�e�r� �m�u�s�t� �b�e� �b�e�t�w�e�e�n� �1� �a�n�d� �4�.�
�
�
�
�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�.�
�
�
�
�E�x�a�m�p�l�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� �=� �'�Y�O�U�R� �A�P�I� �K�E�Y�'�;�
�
�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�)�;�
�
�s�t�a�b�l�e�D�i�f�f�u�s�i�o�n�.�s�e�t�N�u�m�b�e�r�O�f�I�m�a�g�e�s�(�2�)�;�
�
�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�)�;�
�
�
��
�
�
�