@pr4j3sh/imaige

1.0.1 • Public • Published

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 help for more usage options

Library

  • 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 images 1216x832, 1152x896, 1024x1024, 896x1152, 832x1216)
  • image generator(either standard, hd, or genius)
  • genius generator preferences(either classic, anime, photography, graphic, or cinematic)

Reference

Package Sidebar

Install

npm i @pr4j3sh/imaige

Weekly Downloads

10

Version

1.0.1

License

MIT

Unpacked Size

544 kB

Total Files

5

Last publish

Collaborators

  • pr4j3sh