wenwen
  1. 绘图模型-Midjourney(/mj)
wenwen
  • 聊天对话-OpenAI格式(/chat/completions)
    • 聊天
      POST
    • 流式返回
      POST
    • 结构化输出
      POST
    • 工具调用(function call)
      POST
    • 分析图片
      POST
    • 修改图片
      POST
    • 生成图片
      POST
  • 聊天对话-Anthropic格式(/messages)
    • 聊天
      POST
    • 流式返回
      POST
    • 分析图片
      POST
  • 绘图模型-OpenAI格式(/images)
    • 文生图(基础)
      POST
    • 文生图(高质量)
      POST
    • 文生图(base64)
      POST
    • 图像编辑(dall-e-2)
      POST
    • 图像编辑(gpt-image-1)
      POST
  • 绘图模型-Midjourney(/mj)
    • 文生图(Imagine)
      POST
    • 图片融合(Blend)
      POST
    • 任务查询接口
      GET
    • 任务批量查询接口
      POST
    • 获取种子(Seed)
      GET
    • 按钮点击(Action)-选择图片
      POST
  • 向量化(/embeddings)
    • 文本向量化
      POST
  1. 绘图模型-Midjourney(/mj)

图片融合(Blend)

POST
/mj/submit/blend
执行Blend操作,提交融图任务。

请求参数

Header 参数
Authorization
string 
必需
示例值:
Bearer {YOUR_API_KEY}
Content-Type
string 
必需
示例值:
application/json
Body 参数application/json
mode
string 
调用模式
可选
RELAX:慢速模式,FAST: 快速模式,默认RELAX
base64Array
array[string]
图片base64数组
必需
base64的数据
dimensions
string 
比例
可选
比例:PORTRAIT(2:3);SQUARE(1:1);LANDSCAPE(3:2),可用值:PORTRAIT,SQUARE,LANDSCAPE
accountFilter
object 
可选
channelId
string 
必需
instanceId
string 
必需
modes
array[string]
必需
remark
string 
必需
remix
boolean 
必需
remixAutoConsidered
boolean 
必需
notifyHook
string 
回调地址
可选
state
string 
自定义参数
可选
示例
{
  "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": ""
}

示例代码

HTTP
Shell
JavaScript
Java
Swift
Go
PHP
Python
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
HTTP
Shell
JavaScript
Java
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
integer 
必需
description
string 
必需
properties
object 
必需
result
integer 
必需
示例
{
    "code": 1,
    "description": "提交成功",
    "properties": {},
    "result": 1320098173412546
}
修改于 2025-06-14 12:41:44
上一页
文生图(Imagine)
下一页
任务查询接口
Built with