1.0.1 • Published 8 months ago

@pr4j3sh/imaige v1.0.1

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

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));
argumenttypedescriptiondefault
promptrequiredprompt for image generation-
widthoptionalimage width1216
heightoptionalimage height832
generatoroptionalimage generatorhd
preferenceoptionalgenius generator preferencesclassic

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

1.0.1

8 months ago

1.0.0

9 months ago