{"id":13651098,"url":"https://github.com/ConnectAI-E/Go-Midjourney","last_synced_at":"2025-04-22T22:30:27.360Z","repository":{"id":176055248,"uuid":"654902184","full_name":"ConnectAI-E/Go-Midjourney","owner":"ConnectAI-E","description":"🍎 以API形式调用Midjourney绘图能力 golang语言实现","archived":false,"fork":false,"pushed_at":"2023-06-26T03:54:28.000Z","size":45,"stargazers_count":58,"open_issues_count":2,"forks_count":9,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-20T01:33:06.500Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ConnectAI-E.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-17T09:28:56.000Z","updated_at":"2025-03-20T18:09:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"b65404cd-27a1-4777-b38b-6603b6757a08","html_url":"https://github.com/ConnectAI-E/Go-Midjourney","commit_stats":null,"previous_names":["connectai-e/go-midjourney"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnectAI-E%2FGo-Midjourney","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnectAI-E%2FGo-Midjourney/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnectAI-E%2FGo-Midjourney/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnectAI-E%2FGo-Midjourney/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ConnectAI-E","download_url":"https://codeload.github.com/ConnectAI-E/Go-Midjourney/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250333846,"owners_count":21413467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T02:00:45.095Z","updated_at":"2025-04-22T22:30:27.338Z","avatar_url":"https://github.com/ConnectAI-E.png","language":"Go","funding_links":[],"categories":["企联AI"],"sub_categories":[],"readme":"# go-midjourney\n\ngolang语言实现, 代理 MidJourney 的discord频道，实现api形式调用AI绘图\n\n\n## 支持功能\n- [x] 支持 Imagine 指令和相关U、V操作\n- [x] Imagine 时支持添加图片base64，作为垫图\n- [x] 支持 Describe 指令，根据图片生成 prompt\n- [x] 支持 Blend 指令，多个图片混合\n- [ ] 支持 Imagine、V、Blend 图片生成进度\n- [ ] 支持 ZoomOut 扩图\n- [ ] 支持 Shorten 指令\n- [ ] 支持中文 prompt 翻译，需配置百度翻译或 gpt\n- [ ] prompt 敏感词判断，支持覆盖调整\n- [ ] 任务队列，默认队列10，并发3。可参考 [MidJourney订阅级别](https://docs.midjourney.com/docs/plans) 调整DISCORD_QUEUE_SIZE\n- [ ] user-token 连接 wss，可以获取错误信息和完整功能\n- [ ] 支持 discord域名(server、cdn、wss)反代，配置 mj.ng-discord\n- [ ] 暴露 swagger API文档\n- [ ] 支持多个频道，配置 DISCORD_CHANNEL_IDS\n- [ ] 同事支持回调模式和进度查询模式\n\n## 使用前提\n1. 注册 MidJourney，创建自己的频道，参考 https://docs.midjourney.com/docs/quick-start\n2. 获取用户Token、服务器ID、频道ID：[获取方式](https://github.com/ConnectAI-E/go-midjourney/wiki/discord-%E9%85%8D%E7%BD%AE%E8%AF%A6%E7%BB%86%E6%8C%87%E5%AF%BC)\n\n## 风险须知\n1. 建议使用bot模式，避免账号封禁\n\n\n## 配置项\n```nashorn yaml\n# discord 配置\nDISCORD_USER_TOKEN: 你的用户token\nDISCORD_BOT_TOKEN: 你的机器人token\nDISCORD_SERVER_ID: 你的discord服务器id\nDISCORD_CHANNEL_ID: 你的discord频道id\nCB_URL: 获取到discord中的图片资源传输给你的业务服务接口\nMJ_PORT: 16007\n```\n\n## 沟通部署问题\n\n\u003cimg width=\"220\" alt=\"image\" src=\"https://github.com/ConnectAI-E/MidJourney-Web/assets/50035229/f19d3d79-55c4-451a-9691-d90769c43cb4\"\u003e\n\n\n\n\n\n## ConnectAI More\n\n| \u003cdiv style=\"width:200px\"\u003eAI\u003c/div\u003e |             \u003cimg width=120\u003e SDK \u003cimg width=120\u003e              |                         Application                          |\n| :-------------------------------: | :----------------------------------------------------------: | :----------------------------------------------------------: |\n|              🎒OpenAI              |    [Go-OpenAI](https://github.com/ConnectAI-E/Go-OpenAI)     | [🏅Feishu-OpenAI](https://github.com/ConnectAI-E/Feishu-OpenAI), [🎖Lark-OpenAI](https://github.com/ConnectAI-E/Lark-OpenAI), [Feishu-EX-ChatGPT](https://github.com/ConnectAI-E/Feishu-EX-ChatGPT), [🎖Feishu-OpenAI-Stream-Chatbot](https://github.com/ConnectAI-E/Feishu-OpenAI-Stream-Chatbot), [Feishu-TLDR](https://github.com/ConnectAI-E/Feishu-TLDR),[Feishu-OpenAI-Amazing](https://github.com/ConnectAI-E/Feishu-OpenAI-Amazing), [Feishu-Oral-Friend](https://github.com/ConnectAI-E/Feishu-Oral-Friend), [Feishu-OpenAI-Base-Helper](https://github.com/ConnectAI-E/Feishu-OpenAI-Base-Helper), [Feishu-Vector-Knowledge-Management](https://github.com/ConnectAI-E/Feishu-Vector-Knowledge-Management), [Feishu-OpenAI-PDF-Helper](https://github.com/ConnectAI-E/Feishu-OpenAI-PDF-Helper), [🏅Dingtalk-OpenAI](https://github.com/ConnectAI-E/Dingtalk-OpenAI), [Wework-OpenAI](https://github.com/ConnectAI-E/Wework-OpenAI), [WeWork-OpenAI-Node](https://github.com/ConnectAI-E/WeWork-OpenAI-Node), [llmplugin](https://github.com/ConnectAI-E/llmplugin) |\n|             🤖 AutoGPT             |                            ------                            | [🏅AutoGPT-Next-Web](https://github.com/ConnectAI-E/AutoGPT-Next-Web) |\n|         🎭 Stablediffusion         |                            ------                            | [🎖Feishu-Stablediffusion](https://github.com/ConnectAI-E/Feishu-Stablediffusion) |\n|           🍎 Midjourney            | [Go-Midjourney](https://github.com/ConnectAI-E/Go-Midjourney) | [🏅Feishu-Midjourney](https://github.com/ConnectAI-E/Feishu-Midjourney), [🔥MidJourney-Web](https://github.com/ConnectAI-E/MidJourney-Web), [Dingtalk-Midjourney](https://github.com/ConnectAI-E/Dingtalk-Midjourney) |\n|            🍍 文心一言             |    [Go-Wenxin](https://github.com/ConnectAI-E/Go-Wenxin)     | [Feishu-Wenxin](https://github.com/ConnectAI-E/Feishu-Wenxin), [Dingtalk-Wenxin](https://github.com/ConnectAI-E/Dingtalk-Wenxin), [Wework-Wenxin](https://github.com/ConnectAI-E/Wework-Wenxin) |\n|             💸 Minimax             |   [Go-Minimax](https://github.com/ConnectAI-E/Go-Minimax)    | [Feishu-Minimax](https://github.com/ConnectAI-E/Feishu-Minimax), [Dingtalk-Minimax](https://github.com/ConnectAI-E/Dingtalk-Minimax), [Wework-Minimax](https://github.com/ConnectAI-E/Wework-Minimax) |\n|             ⛳️ CLAUDE              |    [Go-Claude](https://github.com/ConnectAI-E/Go-Claude)     | [Feishu-Claude](https://github.com/ConnectAI-E/Feishu-Claude), [DingTalk-Claude](https://github.com/ConnectAI-E/DingTalk-Claude), [Wework-Claude](https://github.com/ConnectAI-E/Wework-Claude) |\n|              🥁 PaLM               |      [Go-PaLM](https://github.com/ConnectAI-E/go-PaLM)       | [Feishu-PaLM](https://github.com/ConnectAI-E/Feishu-PaLM),[DingTalk-PaLM](https://github.com/ConnectAI-E/DingTalk-PaLM),[Wework-PaLM](https://github.com/ConnectAI-E/Wework-PaLM) |\n|             🎡 Prompt              |                            ------                            | [📖 Prompt-Engineering-Tutior](https://github.com/ConnectAI-E/Prompt-Engineering-Tutior) |\n|             🍋 ChatGLM             |                            ------                            | [Feishu-ChatGLM](https://github.com/ConnectAI-E/Feishu-ChatGLM) |\n|            ⛓ LangChain            |                            ------                            | [📖 LangChain-Tutior](https://github.com/ConnectAI-E/LangChain-Tutior) |\n|            🪄 One-click            |                            ------                            | [🎖Awesome-One-Click-Deployment](https://github.com/ConnectAI-E/Awesome-One-Click-Deployment) |\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FConnectAI-E%2FGo-Midjourney","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FConnectAI-E%2FGo-Midjourney","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FConnectAI-E%2FGo-Midjourney/lists"}