Prodia API Python Wrapper
Project description
prodiapy
This module makes generation of image by Prodia API easier
Installation
pip install prodiapy==3.5
For using this script you need to get your Prodia api key, you can make it on https://app.prodia.com/api
Example of txt2img usage
from prodia import Client, Model
key = "your-prodia-key"
client = Client(api_key=key)
image = client.txt2img(prompt="kittens on cloud", model="Realistic_Vision_V4.0.safetensors [29a7afaa]")
print(image.url)
image
class attributes:
- url - url of generated image
- payload - used payload
- response - retrieved response
- seed() - function that return seed of generated image
- pnginfo() - function that return a dict with pnginfo of image
- load()/ aload() - function to get image as BytesIO and its async version
HuggingFace Demo
https://huggingface.co/spaces/zenafey/prodia
Prodia Desktop Studio
git clone https://github.com/zenafey/prodiapy
cd prodiapy
python tk_gui.py
Feel free to join out Discord server and ask question!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
prodiapy-3.5.tar.gz
(11.4 kB
view hashes)
Built Distribution
prodiapy-3.5-py3-none-any.whl
(13.1 kB
view hashes)