Blend Images
Midjourney image blend (BLEND) endpoint
Blends 2-5 images (BLEND) into a single new image. The submission is async: on success it returns a task ID (result), and you fetch the blend result via Query Task Result.
Billing model
This endpoint is billed under the mj_blend model. Configure a group price for it on the channel, and your token must be allowed to use that model's group.
Aspect ratio & speed
To choose the output ratio, include --ar 2:3 (portrait) or --ar 3:2 (landscape) in prompt; the default is square. Speed suffixes (--fast / --relax / --turbo) also go into prompt.
Authorization
BearerAuth
使用你在 OmwAI 中创建的 API 令牌认证。
格式: Authorization: Bearer sk-xxxxxx
令牌需开通对应 Midjourney 模型的调用权限。
In: header
Request Body
application/json
待融合图片的 Data URL 列表,数量需在 2-5 之间
2 <= items <= 5可选。可含 --ar 2:3 / --ar 3:2 控制比例与速度后缀
自定义状态字段,查询结果时原样返回
任务完成后的回调通知地址(若系统启用回调通知)
Response Body
application/json
curl -X POST "https://www.omwai.xyz/mj/submit/blend" \ -H "Content-Type: application/json" \ -d '{ "base64Array": [ "data:image/png;base64,iVBORw0KGgo...", "data:image/png;base64,iVBORw0KGgo..." ] }'{
"code": 1,
"description": "success",
"result": "48d21b0c-8e44-4f72-9a01-7b5c9d0e1f2a",
"properties": {}
}Note
A successful submission (code of 1) does not mean the result is ready. Poll the Query Task Result endpoint with the returned result (jobId) until status becomes SUCCESS. Result images are retained for 2 hours only — download them in time.
How is this guide?
Last updated on