- 文件服务
- 链接分析(url analysis)
- 图片生成
- flux
- ideogram
- midjourney
- gpt4oimage
- 音乐生成
- 视频生成
- vidu(官方格式)
- runway
- luma
- 可灵(官方格式)
- pika
- pixverse(变身毒液效果等)
- sora
- GPTs 相关
- 数字人
- 智谱清言(glm)
- openai
Blend
POST
/mj/submit/blend
请求参数
Body 参数application/json
botType
string
bot类型
base64Array
array[string]
图片base64数组
dimensions
string
比例
notifyHook
string
回调地址
state
string
自定义参数
示例
{
"botType": "MID_JOURNEY",
"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.tu-zi.com/mj/submit/blend' \
--header 'Content-Type: application/json' \
--data-raw '{
"botType": "MID_JOURNEY",
"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
任务ID
示例
{
"code": 1,
"description": "提交成功",
"properties": {},
"result": 1320098173412546
}
🟢201成功
🟠401没有权限
🟠403禁止访问
🟠404记录不存在