bapti-imagine-ai

1.0.4 • Public • Published

Bapti Imagine

A minimal client for Bapti Imagine hosted inference API on Replicate. This package allows you to easily access Midjourney/Openjourney from NodeJS.

Bapti Imagine is an open source Stable Diffusion fine tuned model on Bapti Imagine images, by PromptHero. Predictions run on Nvidia A100 GPU hardware.

Installation

const package = require('bapti-imagine')
npm i bapti-imagine

API

The API is super simple; just enter your prompt and await for one or more image URLs. One image is returned by default.

await midjourney('a painting of a ginger cat.')

Pass in additional parameters as a second argument.

await midjourney('a painting of a ginger cat.', { width: 1024 })

A complete list of supported parameters can be found here.

Examples

portrait of female elf, intricate, elegant, highly detailed, digital painting, artstation, concept art, smooth, sharp focus, illustration, art by artgerm and greg rutkowski and alphonse mucha, 8k.

whimsical fantasy elegant rose floral botany maximalism with a wave of flowers garden flowing flowers floating in misty soft pink, aqua, soft apricot, smoke fractal, moody and big scale realistic flowers, octane render, by josephine wall art, isabelle menin, Jean, amy brown.

Future

  • Improve API interfaces (i.e. return richer objects than just arrays of URLs).
  • Merge/become part of Replicated/ReplicateJS.

Package Sidebar

Install

npm i bapti-imagine-ai

Weekly Downloads

2

Version

1.0.4

License

ISC

Unpacked Size

5.81 kB

Total Files

5

Last publish

Collaborators

  • baptioff