简介:Midjourney Proxy API文档
支持的接口如下:
- /mj/submit/imagine
- /mj/submit/change
- /mj/submit/blend
- /mj/submit/describe
- /mj/image/{id} (通过此接口获取图片,请必须在系统设置中填写服务器地址!!)
- /mj/task/{id}/fetch (此接口返回的图片地址为经过One API转发的地址)
- /task/list-by-condition
- /mj/submit/action (仅midjourney-proxy-plus支持,下同)
- /mj/submit/modal
- /mj/submit/shorten
- /mj/task/{id}/image-seed
- /mj/insight-face/swap (InsightFace)
- mj_imagine (绘图)
- mj_variation (变换)
- mj_reroll (重绘)
- mj_blend (混合)
- mj_upscale (放大)
- mj_describe (图生文)
- mj_zoom (比例变焦)
- mj_shorten (提示词缩短)
- mj_modal (窗口提交,局部重绘和自定义比例变焦必须和mj_modal一同添加)
- mj_inpaint (局部重绘提交,必须和mj_modal一同添加)
- mj_custom_zoom (自定义比例变焦,必须和mj_modal一同添加)
- mj_high_variation (强变换)
- mj_low_variation (弱变换)
- mj_pan (平移)
- swap_face (换脸)
{
"mj_imagine": 0.1,
"mj_variation": 0.1,
"mj_reroll": 0.1,
"mj_blend": 0.1,
"mj_modal": 0.1,
"mj_zoom": 0.1,
"mj_shorten": 0.1,
"mj_high_variation": 0.1,
"mj_low_variation": 0.1,
"mj_pan": 0.1,
"mj_inpaint": 0,
"mj_custom_zoom": 0,
"mj_describe": 0.05,
"mj_upscale": 0.05,
"swap_face": 0.05
}
其中mj_inpaint和mj_custom_zoom的价格设置为0,是因为这两个模型需要搭配mj_modal使用,所以价格由mj_modal决定。
部署Midjourney-Proxy,并配置好midjourney账号等(强烈建议设置密钥),项目地址
- 在渠道管理中添加渠道,渠道类型选择Midjourney Proxy,如果是plus版本选择Midjourney Proxy Plus ,模型请参考上方模型列表
- 代理填写midjourney-proxy部署的地址,例如:http://localhost:8080
- 密钥填写midjourney-proxy的密钥,如果没有设置密钥,可以随便填
- 在渠道管理中添加渠道,渠道类型选择Midjourney Proxy Plus,模型请参考上方模型列表
- 代理填写上游new api的地址,例如:http://localhost:3000
- 密钥填写上游new api的密钥