1.0.10 • Published 10 months ago

imagepig v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

imagepig

A npm library for Image Pig, the API for AI images.

Installation

npm i imagepig

Example of usage

const ImagePig = require('imagepig');

void async function() {
    // create instance of API (put here your actual API key)
    const imagepig = ImagePig('your-api-key');

    // call the API with a prompt to generate an image
    const result = await imagepig.xl('cute piglet running on a green garden')

    // save image to a file
    await result.save('cute-piglet.jpeg');

    // or access image data (Buffer)
    await result.data;
}();

Contact us

Something does not work as expected? Feel free to send us a message, we are here for you.

1.0.9

10 months ago

1.0.10

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago