← all repositories
trueai-org/midjourney-proxy

Turning Midjourney’s Discord Bot Into a Stable API

It wraps Midjourney’s Discord and Youchuan interfaces into a C# API with account pooling, face swaps, and a built-in management UI.

midjourney-proxy
Not currently ranked — collecting fresh signals.
star history

What it does

midjourney-proxy is a C# reverse proxy that sits between your application and Midjourney’s official Discord bot (or the Chinese “Youchuan” variant). It exposes a REST API for generating images, upscaling, panning, and remixing, while handling the messy parts: WebSocket connections, zlib-stream compression, Cloudflare verification, and multi-account rotation. The project also bundles a web-based admin UI and supports face swapping for both images and videos.

The interesting bit

The sheer scope of operational paranoia is the real feature. Beyond simple proxying, it implements a “slack mode” to make accounts look human by pausing during off-hours, auto-translates Chinese prompts, persists account pools through multiple database backends, and can even migrate tasks from competing proxy services. It is essentially a full operations platform built on top of someone else’s chat bot.

Key highlights

  • Multi-account load balancing with queues, weights, and speed-mode filtering (Fast, Relax, Turbo).
  • Built-in face swap for images and videos, plus support for Midjourney’s full command surface (Vary, Pan, Zoom, Describe, Shorten).
  • Account safety features: IP rate limiting, sensitive-word filtering, Cloudflare verification handling, and configurable “work hours” to avoid triggering Discord’s abuse systems.
  • Embedded web UI for account management, task monitoring, and a testing playground.
  • Supports multiple storage backends (local, Aliyun OSS, Tencent Cloud, S3, Cloudflare R2) and databases (SQLite, MySQL, PostgreSQL, SQL Server, MongoDB).

Caveats

  • The auto-login and auto-verification server is currently suspended due to malicious attacks, so self-hosters must handle Discord 2FA and Cloudflare challenges manually or deploy their own verifier (Windows-only).
  • Auto-joining and auto-switching Discord channels are listed as not yet supported.
  • The README is heavily interleaved with ads for the author’s paid enterprise API and hosted services, which can make the open-source boundaries feel blurry.

Verdict

Worth a look if you need to productionize Midjourney access across multiple Discord accounts and don’t want to maintain your own Discord gateway client. Skip it if you’re just looking for a simple, clean API wrapper without the operational baggage.

Frequently asked

What is trueai-org/midjourney-proxy?
It wraps Midjourney’s Discord and Youchuan interfaces into a C# API with account pooling, face swaps, and a built-in management UI.
Is midjourney-proxy open source?
Yes — trueai-org/midjourney-proxy is open source, released under the GPL-3.0 license.
What language is midjourney-proxy written in?
trueai-org/midjourney-proxy is primarily written in C#.
How popular is midjourney-proxy?
trueai-org/midjourney-proxy has 799 stars on GitHub.
Where can I find midjourney-proxy?
trueai-org/midjourney-proxy is on GitHub at https://github.com/trueai-org/midjourney-proxy.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.