1.0.1 • Published 8 months ago
@pr4j3sh/imaige v1.0.1
imaige
This is a javascript npm package for generating images using AI.
It provides both package scenarios:
- library
- binary
Usage
CLI Tool
- Install using
npm
npm i -g @pr4j3sh/imaige- Run using
imaige "a samurai cat in a burning village"use
imaige helpfor more usage options
Library
- Install using
npm
npm i @pr4j3sh/imaige- Provides a single function
imaigewith 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) geniusgenerator preferences(eitherclassic,anime,photography,graphic, orcinematic)