|
1 |
| -# midjourney-proxy |
| 1 | +<div align="center"> |
2 | 2 |
|
3 |
| -代理 MidJourney 的discord频道,实现api形式调用AI绘图 |
| 3 | +<h1 align="center">midjourney-proxy</h1> |
4 | 4 |
|
| 5 | +<<<<<<< HEAD |
5 | 6 | [](https://www.github.com/novicezk/midjourney-proxy)
|
6 | 7 | [](https://www.apache.org/licenses/LICENSE-2.0.html)
|
7 | 8 |
|
|
26 | 27 | ## 使用前提
|
27 | 28 | 1. 注册并订阅 MidJourney,创建自己的频道,参考 https://docs.midjourney.com/docs/quick-start
|
28 | 29 | 2. 获取用户Token、服务器ID、频道ID:[获取方式](./docs/discord-params.md)
|
| 30 | +======= |
| 31 | +English | [中文](./README_CN.md) |
29 | 32 |
|
30 |
| -## 快速启动 |
31 |
| -1. `Railway`: 基于Railway平台,不需要自己的服务器: [部署方式](./docs/railway-start.md);若Railway不能使用,可使用Zeabur启动 |
32 |
| -2. `Zeabur`: 基于Zeabur平台,不需要自己的服务器: [部署方式](./docs/zeabur-start.md) |
33 |
| -3. `Docker`: 在服务器或本地使用Docker启动: [部署方式](./docs/docker-start.md) |
| 33 | +Proxy the Discord channel for MidJourney to enable API-based calls for AI drawing |
34 | 34 |
|
35 |
| -## 本地开发 |
36 |
| -- 依赖java17和maven |
37 |
| -- 更改配置项: 修改src/main/application.yml |
38 |
| -- 项目运行: 启动ProxyApplication的main函数 |
39 |
| -- 更改代码后,构建镜像: Dockerfile取消VOLUME的注释,执行 `docker build . -t midjourney-proxy` |
| 35 | +[](https://www.github.com/novicezk/midjourney-proxy) |
| 36 | +[](https://www.apache.org/licenses/LICENSE-2.0.html) |
| 37 | + |
| 38 | +</div> |
| 39 | + |
| 40 | +## Main Functions |
| 41 | + |
| 42 | +- [x] Supports Imagine instructions and related actions |
| 43 | +- [x] Supports adding image base64 as a placeholder when using the Imagine command |
| 44 | +- [x] Supports Blend (image blending) and Describe (image to text) commands |
| 45 | +- [x] Supports real-time progress tracking of tasks |
| 46 | +- [x] Supports translation of Chinese prompts, requires configuration of Baidu Translate or GPT |
| 47 | +- [x] Prompt sensitive word pre-detection, supports override adjustment |
| 48 | +- [x] User-token connects to WSS (WebSocket Secure), allowing access to error messages and full functionality |
| 49 | +- [x] Supports multi-account configuration, with each account able to set up corresponding task queues |
| 50 | +>>>>>>> upstream/main |
| 51 | +
|
| 52 | +**🚀 For more features, please refer to [midjourney-proxy-plus](https://github.com/litter-coder/midjourney-proxy-plus)** |
| 53 | +> - [x] Supports all the features of the open-source version |
| 54 | +> - [x] Supports Shorten (prompt analysis) command |
| 55 | +> - [x] Supports focus shifting: Pan ⬅️ ➡️ ⬆️ ⬇️ |
| 56 | +> - [x] Supports image zooming: Zoom 🔍 |
| 57 | +> - [x] Supports local redrawing: Vary (Region) 🖌 |
| 58 | +> - [x] Supports nearly all associated button actions and the 🎛️ Remix mode |
| 59 | +> - [x] Supports retrieving the seed value of images |
| 60 | +> - [x] Account pool persistence, dynamic maintenance |
| 61 | +> - [x] Supports retrieving account /info and /settings information |
| 62 | +> - [x] Account settings configuration |
| 63 | +> - [x] Supports Niji bot robot |
| 64 | +> - [x] Supports InsightFace face replacement robot |
| 65 | +> - [x] Embedded management dashboard page |
| 66 | +
|
| 67 | +## Prerequisites for use |
40 | 68 |
|
| 69 | +<<<<<<< HEAD |
41 | 70 | ## 配置项
|
42 | 71 | - mj.accounts: 参考 [账号池配置](./docs/config.md#%E8%B4%A6%E5%8F%B7%E6%B1%A0%E9%85%8D%E7%BD%AE%E5%8F%82%E8%80%83)
|
43 | 72 | - mj.task-store.type: 任务存储方式,默认in_memory(内存\重启后丢失),可选redis
|
|
54 | 83 | 1. 作图频繁等行为,可能会触发midjourney账号警告,请谨慎使用
|
55 | 84 | 2. 常见问题及解决办法见 [Wiki / FAQ](https://github.com/imkratos/midjourney-proxy/wiki/FAQ)
|
56 | 85 | 3. 在 [Issues](https://github.com/imkratos/midjourney-proxy/issues) 中提出其他问题或建议
|
| 86 | +======= |
| 87 | +1. Register and subscribe to MidJourney, create `your own server and channel`, refer |
| 88 | + to https://docs.midjourney.com/docs/quick-start |
| 89 | +2. Obtain user Token, server ID, channel ID: [Method of acquisition](./docs/discord-params.md) |
| 90 | + |
| 91 | +## Quick Start |
| 92 | + |
| 93 | +1. `Railway`: Based on the Railway platform, no need for your own server: [Deployment method](./docs/railway-start.md) ; |
| 94 | + If Railway is not available, you can start using Zeabur instead. |
| 95 | +2. `Zeabur`: Based on the Zeabur platform, no need for your own server: [Deployment method](./docs/zeabur-start.md) |
| 96 | +3. `Docker`: Start using Docker on a server or locally: [Deployment method](./docs/docker-start.md) |
| 97 | + |
| 98 | +## Local development |
| 99 | + |
| 100 | +- Depends on Java 17 and Maven |
| 101 | +- Change configuration items: Edit src/main/resources/application.yml |
| 102 | +- Project execution: Start the main function of ProxyApplication |
| 103 | +- After changing the code, build the image: Uncomment VOLUME in the Dockerfile, then |
| 104 | + execute `docker build . -t midjourney-proxy` |
| 105 | + |
| 106 | +## Configuration items |
| 107 | + |
| 108 | +- mj.accounts: Refer |
| 109 | + to [Account pool configuration](./docs/config.md#%E8%B4%A6%E5%8F%B7%E6%B1%A0%E9%85%8D%E7%BD%AE%E5%8F%82%E8%80%83) |
| 110 | +- mj.task-store.type: Task storage method, default is in_memory (in memory, lost after restart), Redis is an alternative |
| 111 | + option. |
| 112 | +- mj.task-store.timeout: Task storage expiration time, tasks are deleted after expiration, default is 30 days. |
| 113 | +- mj.api-secret: API key, if left empty, authentication is not enabled; when calling the API, you need to add the |
| 114 | + request header 'mj-api-secret'. |
| 115 | +- mj.translate-way: The method for translating Chinese prompts into English, options include null (default), Baidu, or |
| 116 | + GPT. |
| 117 | +- For more configuration options, see [Configuration items](./docs/config.md) |
57 | 118 |
|
| 119 | +## Related documentation |
58 | 120 |
|
| 121 | +1. [API Interface Description](./docs/api.md) |
| 122 | +2. [Version Update Log](https://github.com/novicezk/midjourney-proxy/wiki/%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95) |
| 123 | + |
| 124 | +## Precautions |
| 125 | + |
| 126 | +1. Frequent image generation and similar behaviors may trigger warnings on your Midjourney account. Please use with |
| 127 | + caution. |
| 128 | +2. For common issues and solutions, see [Wiki / FAQ](https://github.com/novicezk/midjourney-proxy/wiki/FAQ) |
| 129 | +3. Interested friends are also welcome to join the discussion group. If the group is full from scanning the code, you |
| 130 | + can add the administrator’s WeChat to be invited into the group. Please remark: mj join group. |
| 131 | +>>>>>>> upstream/main |
| 132 | +
|
| 133 | + |
| 134 | +<<<<<<< HEAD |
59 | 135 | ## 应用项目
|
60 | 136 | 依赖此项目且开源的,欢迎联系作者,加到此处展示
|
61 | 137 | - [wechat-midjourney](https://github.com/novicezk/wechat-midjourney) : 代理微信客户端,接入MidJourney,仅示例应用场景,不再更新
|
|
67 | 143 | 如果觉得这个项目对你有所帮助,请帮忙点个star;也可以请作者喝杯茶~
|
68 | 144 |
|
69 | 145 | <img src="https://raw.githubusercontent.com/imkratos/midjourney-proxy/main/docs/wxcode.png" width="220" alt="微信二维码"/>
|
| 146 | +======= |
| 147 | +## Application Project |
| 148 | + |
| 149 | +If you have a project that depends on this one and is open source, feel free to contact the author to be added here for |
| 150 | +display. |
| 151 | + |
| 152 | +- [wechat-midjourney](https://github.com/novicezk/wechat-midjourney) : A proxy WeChat client that connects to |
| 153 | + MidJourney, intended only as an example application scenario, will no longer be updated. |
| 154 | +- [chatgpt-web-midjourney-proxy](https://github.com/Dooy/chatgpt-web-midjourney-proxy) : chatgpt web, midjourney, |
| 155 | + gpts,tts, whisper A complete UI solution |
| 156 | +- [chatnio](https://github.com/Deeptrain-Community/chatnio) : The next-generation AI one-stop solution for B/C end, an aggregated model platform with exquisite UI and powerful functions |
| 157 | +- [new-api](https://github.com/Calcium-Ion/new-api) : An API interface management and distribution system compatible with the Midjourney Proxy |
| 158 | +- [stable-diffusion-mobileui](https://github.com/yuanyuekeji/stable-diffusion-mobileui) : SDUI, based on this interface |
| 159 | + and SD (System Design), can be packaged with one click to generate H5 and mini-programs. |
| 160 | +- [MidJourney-Web](https://github.com/ConnectAI-E/MidJourney-Web) : 🍎 Supercharged Experience For MidJourney On Web UI |
| 161 | + |
| 162 | +## Open API |
| 163 | + |
| 164 | +Provides unofficial MJ/SD open API, add administrator WeChat for inquiries, please remark: api |
| 165 | + |
| 166 | +## Others |
| 167 | + |
| 168 | +If you find this project helpful, please consider giving it a star. |
| 169 | +>>>>>>> upstream/main |
70 | 170 |
|
71 | 171 | [](https://star-history.com/#novicezk/midjourney-proxy&Date)
|
0 commit comments