midjourney-proxy  by novicezk

API proxy for Midjourney's Discord channel, enabling programmatic AI art generation

created 2 years ago
5,105 stars

Top 10.0% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides an API proxy for MidJourney, enabling programmatic access to AI image generation. It targets developers and power users who want to integrate MidJourney's capabilities into their applications or workflows, offering a more flexible and automated way to generate images compared to direct Discord interaction.

How It Works

The proxy acts as an intermediary between user requests and MidJourney's Discord bot. It intercepts commands, translates them into Discord interactions, and streams results back to the user via an API. Key features include support for various MidJourney commands (Imagine, Blend, Describe, Pan, Zoom, Vary Region), image uploads, prompt translation, and real-time task progress. It also manages multiple MidJourney accounts and their task queues, with options for persistent task storage using Redis.

Quick Start & Requirements

  • Deployment: Railway, Zeabur, or Docker.
  • Prerequisites: Java 17, Maven (for local development). A MidJourney subscription, a Discord account, a dedicated Discord server, and a channel are required to obtain user tokens, server IDs, and channel IDs.
  • Configuration: Requires application.yml to be modified with MidJourney account details, task storage preferences, and optional API secrets.
  • Documentation: API接口说明, 配置项

Highlighted Details

  • Supports MidJourney V7 Alpha.
  • Includes an embedded management backend with dynamic configuration.
  • Handles token disconnections and automatic verification challenges.
  • Offers advanced features like prompt analysis (Shorten) and Remix mode.

Maintenance & Community

The project is actively maintained, with the latest release tagged as v2.6.3. Community discussion is encouraged via WeChat groups (contact administrator for invites). Several related open-source projects integrate with this proxy.

Licensing & Compatibility

Licensed under Apache 2.0. This license permits commercial use and integration with closed-source applications.

Limitations & Caveats

Aggressive usage may trigger MidJourney account warnings. The project relies on reverse-engineering Discord interactions, which could be subject to change by MidJourney. Some advanced features are available in a separate midjourney-proxy-plus fork.

Health Check
Last commit

12 hours ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
79 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.