https://github.com/yjg30737/pyqt-dreamstudio
Using DreamStudio API in Python desktop application
https://github.com/yjg30737/pyqt-dreamstudio
ai ai-painting dreamstudio pyqt pyqt-examples pyqt-gui python qtpy stability stability-ai stable-diffusion stable-diffusion-desktop
Last synced: about 1 year ago
JSON representation
Using DreamStudio API in Python desktop application
- Host: GitHub
- URL: https://github.com/yjg30737/pyqt-dreamstudio
- Owner: yjg30737
- License: mit
- Created: 2023-05-21T09:33:57.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-08T03:05:36.000Z (almost 3 years ago)
- Last Synced: 2025-04-05T14:16:39.719Z (about 1 year ago)
- Topics: ai, ai-painting, dreamstudio, pyqt, pyqt-examples, pyqt-gui, python, qtpy, stability, stability-ai, stable-diffusion, stable-diffusion-desktop
- Language: Python
- Homepage:
- Size: 282 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyqt-dreamstudio
Using DreamStudio API in Python desktop application
You can make a bunch of image without installing heavy resources like CUDA, torch, etc. But it's not free.
This is separated from pyqt-openai package to people who only wants to use stable diffusion api
and who wants to fork this to make their app.
If you want to use this freely, use pyqt-stable-diffusion-gui, made by exact same guy who made this. Even though it is much tougher to install you will surprise that how fluent this thing is.
## Prerequisite
You have to get the DreamStudio api key from here.
Using DreamStudio or the API requires credits. Take a look at pricing about this.
Make your image in here before doing with this app.
## How to Install
### By Cloninig
1. git clone ~
2. cd pyqt-dreamstudio
3. pip install -r requirements.txt
4. python setup.py install
5. cd pyqt_dreamstudio
6. python main.py
### By pip
1. pip install pyqt_dreamstudio
2.
```python
from PyQt5.QtWidgets import QApplication
# can use PySide6 as well
from pyqt_dreamstudio.main import ImageGeneratingToolWidget
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
window = ImageGeneratingToolWidget()
window.show()
sys.exit(app.exec_())
```
## How to Use
There is the options tab at the right side of the window.
Input your API key, choose parameters you want to set, write propmt, submit it, and you can see the result at the left side (which looks like file explorer) soon enough.
See the whole explanation about every options to make better image.
After images got generated, you can copy or download any images when you put the mouse cursor over them.
## Result

## Note
As far as i know, Using Stable Diffusion with API doesn't support disable safety filter. Shame!!
So if you type any words which is considered as NSFW, toast containing error message will show up
## License
MIT