A Java vending machine for reselling AI APIs
Bundles ChatGPT, Midjourney, and Stable Diffusion into a monetized web platform built for the Chinese market.

What it does
This is a JDK 8 web application that wraps multiple third-party AI services—ChatGPT, iFlytek Spark, Midjourney, Stable Diffusion, and DALL-E 3—into a single user-facing portal. It layers on user quotas, prepaid card redemption, payment hooks (WeChat Pay and 易支付), and WeChat Official Account integration so you can sell generations rather than just consume them. Think of it as a vending machine where the snacks are other people’s APIs.
The interesting bit
The project is aggressively pragmatic about operating in China. It bakes in Baidu content moderation and auto-translation for prompt filtering, provides proxy tutorials for reaching OpenAI and Discord behind the firewall, and monetizes through local payment rails. The Midjourney integration is particularly notable: it reverse-engineers Discord bot interactions via guild and channel tokens to expose features like ZoomOut, blend, and shorten that aren’t available through any official API.
Key highlights
- Supports GPT-4 vision, DALL-E 3, iFlytek Spark, and Stable Diffusion (with Lora and high-res fix) from one admin panel
- Midjourney support uses raw Discord tokens and includes advanced controls: U/V variations,
strong/subtleremixes,ZoomOut,blend, and prompt shortening - Built-in commercial loop: prepaid card secrets, WeChat Pay, and Easy Payment (易支付) integration for user quotas
- Baidu translation and content moderation APIs wired in for prompt safety and localization
- SSE/WebSocket streaming for chat responses; image storage switchable between local disk and Aliyun OSS
Caveats
- Heavily China-centric: payment flows, moderation, and proxy setup assume a PRC deployment context
- The public demo is shut down; the README funnels users into a paid VIP group for updates and support
- Midjourney integration relies on Discord scraping rather than a stable API, so it may break when Discord changes
Verdict
Worth a look if you need to launch a monetized, multi-model AI platform in China yesterday. Skip it if you’re building a generic Western SaaS or want a clean, API-first backend without the e-commerce and social-account baggage.
Frequently asked
- What is a616567126/GPT-WEB-JAVA?
- Bundles ChatGPT, Midjourney, and Stable Diffusion into a monetized web platform built for the Chinese market.
- Is GPT-WEB-JAVA open source?
- Yes — a616567126/GPT-WEB-JAVA is open source, released under the Apache-2.0 license.
- What language is GPT-WEB-JAVA written in?
- a616567126/GPT-WEB-JAVA is primarily written in Java.
- How popular is GPT-WEB-JAVA?
- a616567126/GPT-WEB-JAVA has 778 stars on GitHub.
- Where can I find GPT-WEB-JAVA?
- a616567126/GPT-WEB-JAVA is on GitHub at https://github.com/a616567126/GPT-WEB-JAVA.