Skip to main content

Package to use Image Pig, the API for AI images

Project description

imagepig

Python package for Image Pig, the API for AI images.

Installation

pip install imagepig

Example of usage

from imagepig import ImagePig

# create instance of API (put here your actual API key)
imagepig = ImagePig("your-api-key")

# call the API with a prompt to generate an image
result = imagepig.xl("cute piglet running on a green garden")

# save image to a file
result.save("cute-piglet.jpeg")

# or access image data (bytes)
result.data

# or access image as an object (needs to have the Pillow package installed)
result.image

Contact us

Something does not work as expected? Feel free to send us a message, we are here for you.

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

imagepig-1.0.2.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

imagepig-1.0.2-py3-none-any.whl (4.1 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