Skip to content

alexyen1000/midjourney-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Midjourney Client

Forked from oelin/midjourney-client

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

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

Installation

npm i midjourney-client

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.

About

A minimal client for Midjourney's hosted inference API on Replicate.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%