8000 GitHub - imkratos/midjourney-proxy at v1.1.5
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

imkratos/midjourney-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  8000
 

Repository files navigation

midjourney-proxy

<<<<<<< HEAD GitHub release License

主要功能

  • 支持 Imagine 指令和相关动作
  • Imagine 时支持添加图片base64,作为垫图
  • 支持 Blend(图片混合)、Describe(图生文) 指令
  • 支持任务实时进度
  • 支持中文prompt翻译,需配置百度翻译或gpt
  • prompt 敏感词预检测,支持覆盖调整
  • user-token 连接 wss,可以获取错误信息和完整功能
  • 支持 discord域名(server、cdn、wss)反代,配置 mj.ng-discord
  • 支持多账号配置,每个账号可设置对应的任务队列

以下为在原版基础增加的功能

  • 支持U之后的所有相关动作:Zoom(图片变焦)、Pan(焦点移动) 等
  • 支持U之后的所有相关动作:Vary(Strong)、Vary(Subtle) 等
  • 支持帐户info功能
  • 支持settings所有属性
  • 支持Upscale(2x)、Upscale(4x)

使用前提

  1. 注册并订阅 MidJourney,创建自己的频道,参考 https://docs.midjourney.com/docs/quick-start
  2. 获取用户Token、服务器ID、频道ID:获取方式 ======= English | 中文

Proxy the Discord channel for MidJourney to enable API-based calls for AI drawing

GitHub release License

Main Functions

  • Supports Imagine instructions and related actions
  • Supports adding image base64 as a placeholder when using the Imagine command
  • Supports Blend (image blending) and Describe (image to text) commands
  • Supports real-time progress tracking of tasks
  • Supports translation of Chinese prompts, requires configuration of Baidu Translate or GPT
  • Prompt sensitive word pre-detection, supports override adjustment
  • User-token connects to WSS (WebSocket Secure), allowing access to error messages and full functionality
  • Supports multi-account configuration, with each account able to set up corresponding task queues

upstream/main

🚀 For more features, please refer to midjourney-proxy-plus

  • Supports all the features of the open-source version
  • Supports Shorten (prompt analysis) command
  • Supports focus shifting: Pan ⬅️ ➡️ ⬆️ ⬇️
  • Supports image zooming: Zoom 🔍
  • Supports local redrawing: Vary (Region) 🖌
  • Supports nearly all associated button actions and the 🎛️ Remix mode
  • Supports retrieving the seed value of images
  • Account pool persistence, dynamic maintenance
  • Supports retrieving account /info and /settings information
  • Account settings configuration
  • Supports Niji bot robot
  • Supports InsightFace face replacement robot
  • Embedded management dashboard page

Prerequisites for use

<<<<<<< HEAD

配置项

  • mj.accounts: 参考 账号池配置
  • mj.task-store.type: 任务存储方式,默认in_memory(内存\重启后丢失),可选redis
  • mj.task-store.timeout: 任务存储过期时间,过期后删除,默认30天
  • mj.api-secret: 接口密钥,为空不启用鉴权;调用接口时需要加请求头 mj-api-secret
  • mj.translate-way: 中文prompt翻译成英文的方式,可选null(默认)、baidu、gpt、deepl
  • 更多配置查看 配置项

相关文档

  1. API接口说明
  2. 版本更新记录

注意事项

  1. 作图频繁等行为,可能会触发midjourney账号警告,请谨慎使用
  2. 常见问题及解决办法见 Wiki / FAQ
  3. Issues 中提出其他问题或建议 =======
  4. Register and subscribe to MidJourney, create your own server and channel, refer to https://docs.midjourney.com/docs/quick-start
  5. Obtain user Token, server ID, channel ID: Method of acquisition

Quick Start

  1. Railway: Based on the Railway platform, no need for your own server: Deployment method ; If Railway is not available, you can start using Zeabur instead.
  2. Zeabur: Based on the Zeabur platform, no need for your own server: Deployment method
  3. Docker: Start using Docker on a server or locally: Deployment method

Local development

  • Depends on Java 17 and Maven
  • Change configuration items: Edit src/main/resources/application.yml
  • Project execution: Start the main function of ProxyApplication
  • After changing the code, build the image: Uncomment VOLUME in the Dockerfile, then execute docker build . -t midjourney-proxy

Configuration items

  • mj.accounts: Refer to Account pool configuration
  • mj.task-store.type: Task storage method, default is in_memory (in memory, lost after restart), Redis is an alternative option.
  • mj.task-store.timeout: Task storage expiration time, tasks are deleted after expiration, default is 30 days.
  • mj.api-secret: API key, if left empty, authentication is not enabled; when calling the API, you need to add the request header 'mj-api-secret'.
  • mj.translate-way: The method for translating Chinese prompts into English, options include null (default), Baidu, or GPT.
  • For more configuration options, see Configuration items

Related documentation

  1. API Interface Description
  2. Version Update Log

Precautions

  1. Frequent image generation and similar behaviors may trigger warnings on your Midjourney account. Please use with caution.
  2. For common issues and solutions, see Wiki / FAQ
  3. Interested friends are also welcome to join the discussion group. If the group is full from scanning the code, you can add the administrator’s WeChat to be invited into the group. Please remark: mj join group.

upstream/main

<<<<<<< HEAD

应用项目

依赖此项目且开源的,欢迎联系作者,加到此处展示

其它

如果觉得这个项目对你有所帮助,请帮忙点个star;也可以请作者喝杯茶~

微信二维码

======= ## Application Project

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 display.

  • wechat-midjourney : A proxy WeChat client that connects to MidJourney, intended only as an example application scenario, will no longer be updated.
  • chatgpt-web-midjourney-proxy : chatgpt web, midjourney, gpts,tts, whisper A complete UI solution
  • chatnio : The next-generation AI one-stop solution for B/C end, an aggregated model platform with exquisite UI and powerful functions
  • new-api : An API interface management and distribution system compatible with the Midjourney Proxy
  • stable-diffusion-mobileui : SDUI, based on this interface and SD (System Design), can be packaged with one click to generate H5 and mini-programs.
  • MidJourney-Web : 🍎 Supercharged Experience For MidJourney On Web UI

Open API

Provides unofficial MJ/SD open API, add administrator WeChat for inquiries, please remark: api

Others

If you find this project helpful, please consider giving it a star.

upstream/main

Star History Chart

About

代理 MidJourney 的discord频道,实现api形式调用AI绘图

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 97.9%
  • Dockerfile 1.3%
  • Shell 0.8%
0