Skip to main content

Prodia API Python Wrapper

Project description

prodiapy

This module makes generation of image by Prodia API easier

Installation

pip install prodiapy==3.4

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

import prodia

key = "your-prodia-key"

client = prodia.Client(api_key=key)

image = client.txt2img(prompt="kittens on cloud", model="dreamlike-diffusion-2.0.safetensors [fdcf65e7]")
print(image.url)

image variable will be a class with 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

HuggingFace Demo

https://huggingface.co/spaces/zenafey/prodia

image

Prodia Desktop Studio

git clone https://github.com/zenafey/prodiapy
cd prodiapy
python tk_gui.py

image

Full Documentation

Feel free to join out Discord server and ask question!

7eacddcb-3a45-4114-b731-3cd7af9522e1

Project details


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.4.tar.gz (12.0 kB view hashes)

Uploaded Source

Built Distribution

prodiapy-3.4-py3-none-any.whl (14.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page