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

Uploaded Source

Built Distribution

imagepig-1.0.5-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: imagepig-1.0.5.tar.gz
  • Upload date:
  • Size: 4.1 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.5.tar.gz
Algorithm Hash digest
SHA256 e77eb8b9b4431a8b93f6179cf4f6212626896e5eea8f488c03df13c6bfcee11f
MD5 898ad313eda4f4fa949b28ad4adcdbb7
BLAKE2b-256 7aaa9c5bf908dfae8d436cff987c75299db8bd16ad544cbf538c215d61abc834

See more details on using hashes here.

File details

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

File metadata

  • Download URL: imagepig-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d077b729a754fdd82d179e6b5e53653f34f02e70f8ec6033dae39744fe22ea50
MD5 6e7ee095ba1b10169831cdd7e4e5b363
BLAKE2b-256 12e7a1190ceda2a82c4c0ba82835646ba93d92e1d4d0f42cc7f54edbba53f5ca

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