An open API service indexing awesome lists of open source software.

https://github.com/gptgenius/replicate-fetch

Nodejs api for Midjourney/Openjourney on Replicate
https://github.com/gptgenius/replicate-fetch

midjourney midjourney-api openjourney replicate stable-diffusion

Last synced: 12 months ago
JSON representation

Nodejs api for Midjourney/Openjourney on Replicate

Awesome Lists containing this project

README

          

# replicate-fetch

[![npm version](https://img.shields.io/npm/v/replicate-fetch.svg)](https://www.npmjs.com/package/replicate-fetch) ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/GPTGenius/replicate-fetch/ci.yml?branch=main) ![node-current (scoped)](https://img.shields.io/node/v/replicate-fetch) ![GitHub](https://img.shields.io/github/license/lvqq/cap)

Fetch api for Midjourney/Openjourney on Replicate

## Usage
### createOpenjourney
```typescript
import { createOpenjourney } from 'replicate-fetch'

createOpenjourney({ prompt: "a cat" })
```

### Example

> mdjrny-v4 style a highly detailed matte painting of a man on a hill watching a rocket launch in the distance by studio ghibli, makoto shinkai, by artgerm, by wlop, by greg rutkowski, volumetric lighting, octane render, 4 k resolution, trending on artstation, masterpiece

![](./assets/example-0.png)

### createStableDiffusion
```typescript
import { createStableDiffusion } from 'replicate-fetch'

createStableDiffusion({ prompt: "a cat" })
```

### Example
> an astronaut riding a horse on mars, hd, dramatic lighting

![](./assets/example-1.png)

### Other api

```typescript
import { createMidjourney } from 'replicate-fetch'

createMidjourney({ prompt: "a cat" })
```