Install from NPM
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 viapackage.json.