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

Uploaded Source

Built Distribution

imagepig-1.0.4-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: imagepig-1.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 199e05536283504aed90f7b4664041a244f37aa5560296d7cd66e11aef1fe62c
MD5 a2b076907e31714cd97f4c69b8e5a025
BLAKE2b-256 391847c573ff21056433c8bcf0eb89d403e8d5251cd004812b5a1015075833b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: imagepig-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 47ae09c876fe641463cb7a3dd6decaa2ef023797f9b1b4cc3508d6b3df211bd7
MD5 a4a06ae277edacfea6076bb3f0674bc6
BLAKE2b-256 1326355ca948a13d018e1622c9fc6f9d53416aa26a69b3988a50650689f736dd

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