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.6.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

imagepig-1.0.6-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file imagepig-1.0.6.tar.gz.

File metadata

  • Download URL: imagepig-1.0.6.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for imagepig-1.0.6.tar.gz
Algorithm Hash digest
SHA256 2e093d7cb3155c417d0c5dbac697f6cef8c142cbcd7128390a032b1969755342
MD5 b83366a097d4239e136079893b5bccdc
BLAKE2b-256 530b9cc7e56546e6dcf12f59e057b209ac4a891c3d455613acd8d2a5e19f5456

See more details on using hashes here.

File details

Details for the file imagepig-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: imagepig-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for imagepig-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1bfc11b288a9d34762aa8708f01a4803d42aa67b75a9456ec7537effcffc1b54
MD5 76445d5814c52c772c3c24a8e6b2ab9f
BLAKE2b-256 f291d2423546139cc19fa1e019733329be5f356664a1cbc2785768a70ce5660c

See more details on using hashes here.

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