wenwen
  1. Midjourney 接口格式
wenwen
  • (必读)使用说明
  • Base URL地址
  • 列出模型
    • Models(列出模型)
      GET
  • OpenAI 接口格式
    • chat
      • 聊天
      • 流式返回
      • 结构化输出
      • 工具调用(function call)
      • MCP调用(stdio)
      • 分析图片
      • 修改图片
      • 生成图片
      • 语音回复
      • 生成视频
    • responses
      • Responses API与Chat API对比
      • 创建对话
      • 流式返回
    • images
      • 生成图片
      • 编辑图片
    • 向量处理
      • 文本向量化
    • 语音识别
      • 语音识别
  • Anthropic 接口格式
    • messages
      • 聊天
      • 流式返回
      • 聊天(prompt cache)
      • 聊天(深度思考)
      • 工具调用(function call)
      • 工具调用(MCP)-待支持
      • 分析图片
  • Gemini 接口格式
    • generateContent
      • 聊天
      • 生成图片
      • 编辑图片
  • Midjourney 接口格式
    • 文生图(Imagine)
      POST
    • 图片融合(Blend)
      POST
    • 任务查询接口
      GET
    • 任务批量查询接口
      POST
    • 获取种子(Seed)
      GET
    • 按钮点击(Action)-选择图片
      POST
  1. Midjourney 接口格式

图片融合(Blend)

POST
/mj/submit/blend
执行Blend操作,提交融图任务。
BASE_URL: https://api.wenwen-ai.com

请求参数

Header 参数

Body 参数application/json

示例
{
  "mode": "RELAX",
  "base64Array": [
    "data:image/png;base64,xxx1",
    "data:image/png;base64,xxx2"
  ],
  "dimensions": "SQUARE",
  "accountFilter": {
    "channelId": "",
    "instanceId": "",
    "modes": [],
    "remark": "",
    "remix": true,
    "remixAutoConsidered": true
  },
  "notifyHook": "",
  "state": ""
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.wenwen-ai.com/mj/submit/blend' \
--header 'Authorization: Bearer {YOUR_API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "mode": "RELAX",
  "base64Array": [
    "data:image/png;base64,xxx1",
    "data:image/png;base64,xxx2"
  ],
  "dimensions": "SQUARE",
  "accountFilter": {
    "channelId": "",
    "instanceId": "",
    "modes": [],
    "remark": "",
    "remix": true,
    "remixAutoConsidered": true
  },
  "notifyHook": "",
  "state": ""
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "code": 1,
    "description": "提交成功",
    "properties": {},
    "result": 1320098173412546
}
修改于 2025-08-05 08:15:34
上一页
文生图(Imagine)
下一页
任务查询接口
Built with