Metadata-Version: 2.1
Name: imagepig
Version: 1.0.6
Summary: Package to use Image Pig, the API for AI images
Author-email: Pavel Mises <pavel@double.plus>
Project-URL: Homepage, https://imagepig.com/
Project-URL: Repository, https://github.com/double-plus/imagepig-python
Project-URL: Issues, https://github.com/double-plus/imagepig-python/issues
Project-URL: Documentation, https://imagepig.com/docs/
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests

# imagepig
[Python package](https://pypi.org/project/imagepig/) for [Image Pig](https://imagepig.com/), the API for AI images.

## Installation

```
pip install imagepig
```

## Example of usage

```python
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](https://imagepig.com/contact/), we are here for you.
