Skip to main content

Install from NPM

npm install @legnext/midjourney-sdk

Requirements

  • Node.js: Version 12 or higher
  • Package Manager: npm or yarn

Supported Environments

The SDK works in:
  • Node.js applications
  • Webpack-bundled projects
  • Browserify projects
  • TypeScript projects (type definitions included)

Module Systems

Supports both:
  • CommonJS - require('@legnext/midjourney-sdk')
  • ES6 Modules - import { ... } from '@legnext/midjourney-sdk'

TypeScript Support

The SDK includes full TypeScript definitions. Type declarations are automatically resolved via package.json.

Verify Installation

npm list @legnext/midjourney-sdk