Skip to content

Blend - 图片融合接口 ​

通过此接口提交多张图片进行 Midjourney Blend 图片融合任务。

一、接口信息 ​

项目内容
请求方式POST
请求路径/mj/submit/blend
完整地址https://api.hllapi.vip/mj/submit/blend
Content-Typeapplication/json
鉴权方式Bearer Token

二、请求头 ​

Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

三、请求参数 ​

参数类型必填说明
base64ArrayArray是图片地址数组

已验证:传入两张可访问的图片公网 URL,可以成功提交 Blend 任务。

四、JSON 请求示例 ​

{
  "base64Array": [
    "https://example.com/image-1.png",
    "https://example.com/image-2.png"
  ]
}

五、PowerShell 请求示例 ​

$body = @{
    base64Array = @(
        "https://example.com/image-1.png",
        "https://example.com/image-2.png"
    )
} | ConvertTo-Json -Depth 5

Invoke-RestMethod `
    -Uri "https://api.hllapi.vip/mj/submit/blend" `
    -Method POST `
    -Headers $headers `
    -ContentType "application/json" `
    -Body $body

其中 $headers 应预先设置 Authorization: Bearer YOUR_API_KEY。

六、成功响应 ​

已验证的响应结构:

{
  "code": 1,
  "description": "提交成功",
  "result": "YOUR_TASK_ID",
  "properties": {
    "discordInstanceId": "示例实例ID",
    "discordChannelId": "示例频道ID"
  }
}

result 为后续 Fetch 查询使用的任务 ID。

七、查询融合结果 ​

调用:

GET /mj/task/{id}/fetch

已实际验证的成功任务返回:

{
  "id": "YOUR_TASK_ID",
  "action": "BLEND",
  "status": "SUCCESS",
  "progress": "100%",
  "imageUrl": "https://api.hllapi.vip/mj/image/YOUR_TASK_ID",
  "failReason": ""
}

请以实际接口返回为准。

八、注意事项 ​

  1. 图片 URL 必须能够被上游服务访问。
  2. 提交成功只表示任务已创建。
  3. 请通过 Fetch 查询最终生成状态。
  4. dimensions 等其他可选参数尚未验证,本版不承诺支持。
  5. 图片数量限制及图片尺寸限制尚待进一步核实。

火灵灵 API · 开发者服务中心