Skip to main content

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.

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imagepig-1.0.7-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: imagepig-1.0.7.tar.gz
  • Upload date:
  • Size: 4.4 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.7.tar.gz
Algorithm Hash digest
SHA256 423951fdec27b8751f38d3774717e37b2ccced88d057a3155b8fac0d829bc300
MD5 9369fb4bde64b46d29bccb9d67240641
BLAKE2b-256 afd2a779604742341a61ab27446458e6b40b19df3f0b8a742f3cb21a26f90124

See more details on using hashes here.

File details

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

File metadata

  • Download URL: imagepig-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a18babb5b232f0550d4926b737b0b5712686358c8162f222e670966b922ac1cb
MD5 3329bf3fc69e6bc1773816acb6850900
BLAKE2b-256 8609977fd7741434d2224c0972f08fc97798d1f642308e40b41053e3c613fb62

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.7 This release

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page