-
/v1/trigger
Get related task results 获取相关任务结果 -
/v1/imagine
Trigger the drawing task 触发绘画任务 - upscale
- variation
- reset
- upload
- Generate Prompt by uploading image name
- Send image message, return image link, for image generation function
- Multiple Midjourney accounts
正在开发中,当前不可用
curl -X 'POST' \
'https://midjourney-api.sku.moe/v1/imagine' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'user_token: <你的 User Token>' \
-d '{
"prompt": "a beautiful girl"
}'
Environment Variable | Description |
---|---|
SECRET |
A secret key |
USER_TOKEN |
Discord User Token which account that subscribes to Midjourney |
BOT_TOKEN |
Bot token |
GUILD_ID |
Guild ID |
CHANNEL_ID |
Channel ID |
DATABASE_URL |
Optional |
环境变量 | 说明 |
---|---|
SECRET |
私人密钥 |
USER_TOKEN |
订阅了Midjourney的Discord用户令牌 |
BOT_TOKEN |
机器人 Token |
GUILD_ID |
公会ID |
CHANNEL_ID |
频道ID |
DATABASE_URL |
可选 |
Pull 拉取
docker pull aprilnea/midjourney-api:latest
Run 运行
docker run -it \
-e SECRET="" \
-e USER_TOKEN="" \
-e BOT_TOKEN="" \
-e GUILD_ID="" \
-e CHANNEL_ID="" \
-e DATABASE_URL="" \ aprilnea/midjourney-api:latest
curl -X 'POST' \
'https://127.0.0.1:8080/v1/imagine' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authentication: Bearer {SECRET}' \
-d '{
"prompt": "a beautiful girl"
}'
更多请查看文档
For more please check documentation
Midjourney-Web © AprilNEA, Released under the MIT License.
Help me if you want: GitHub Sponsor | 爱发电
Telegram Channel @AprilsBlog · Twitter @AprilNEA