This is a javascript npm package for generating images using AI.
It provides both package scenarios:
- library
- binary
- Install using
npm
npm i -g @pr4j3sh/imaige
- Run using
imaige "a samurai cat in a burning village"
use
imaige help
for more usage options
- Install using
npm
npm i @pr4j3sh/imaige
- Provides a single function
imaige
with 5 arguments, returns an url string
const { imaige } = require("@pr4j3sh/imaige");
imaige("a samurai cat in a burning village")
.then((res) => console.log(res))
.catch((err) => console.error(err));
argument | type | description | default |
---|---|---|---|
prompt | required | prompt for image generation | - |
width | optional | image width | 1216 |
height | optional | image height | 832 |
generator | optional | image generator | hd |
preference | optional | genius generator preferences | classic |
Recommended Values:
- all arguments are of type string
- image width and height(for standard images
1024x576
,1024x720
,512x512
,768x1024
,576x1024
, for hd images1216x832
,1152x896
,1024x1024
,896x1152
,832x1216
) - image generator(either
standard
,hd
, orgenius
) -
genius
generator preferences(eitherclassic
,anime
,photography
,graphic
, orcinematic
)