📖
MidJourney Node Client Doc
GithubSponsor
  • 👋MidJourney Node Client
  • 📓Getting started
    • Quickstart
    • Install
    • Config
    • API Reference
      • imagine
      • variation
      • upscale
      • reroll
      • blend
      • describe
      • info
      • fast
      • relax
      • setting
      • reset
    • Example
      • Imagine
  • FAQ
    • vercel
    • node.js <18
    • proxy
    • How to get your Discord Token
    • Invite Midjourney Bot to Your Server
  • Join the Beta
  • Use Cases
    • 🎨Web UI
    • 🤖Discord Bot
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Getting started

Quickstart

PreviousMidJourney Node ClientNextInstall

Last updated 1 year ago

Was this helpful?

Step1: Get your Discord Token

Step2: Join Discord Server

Step3: Install midjourney

Step3: Use the imagine api

import { Midjourney } from "midjourney";

const client = new Midjourney({
  ServerId: "1082500871478329374",
  ChannelId: "1094892992281718894",
  SalaiToken: "your discord token",
  Debug: true,
});

const msg = await client.Imagine(
  "A little white elephant",
  (uri: string, progress: string) => {
    console.log("loading:", uri, "progress:", progress);
  }
);
console.log({ msg });
const { Midjourney } = require("midjourney");

  const client = new Midjourney({
    ServerId: "1082500871478329374",
    ChannelId: "1094892992281718894",
    SalaiToken: "your discord token",
    Debug: true,
    Ws:true,
  });
  const msg = await client.Imagine("A little pink elephant", (uri, progress) => {
    console.log("loading:", uri, "progress:", progress);
  });
  console.log({ msg });

📓
Join the Beta
Install