Midjourney API 中文版(佩奇聚合API)
  1. InsightFace任务提交
Midjourney API 中文版(佩奇聚合API)
  • 简介
  • InsightFace任务提交
    • 提交swap_face任务
      POST
  • 任务提交
    • 执行动作
      POST
    • 提交Blend任务
      POST
    • 提交Describe任务
      POST
    • 提交Imagine任务
      POST
    • 提交Modal
      POST
    • 提交Shorten任务
      POST
    • 上传文件到discord
      POST
  • 任务查询
    • 查询所有任务
      GET
    • 根据ID列表查询任务
      POST
    • 根据ID列表查询任务-字段displays
      POST
    • 分页查询任务
      POST
    • 查询任务队列
      GET
    • 取消任务
      POST
    • 指定ID获取任务
      GET
    • 获取任务图片的seed(需设置mj或niji的私信ID)
      GET
  1. InsightFace任务提交

提交swap_face任务

POST
https://api.aigc369.com/mj/insight-face/swap
InsightFace任务提交

请求参数

Header 参数
Authorization
string 
必需
默认值:
Bearer {{YOUR_API_KEY}}
Content-Type
string 
必需
默认值:
application/json
Accept
string 
必需
默认值:
application/json
Body 参数application/json
sourceBase64
string 
必需
人脸源图片base64
示例值:
data:image/png;base64,xxx1
targetBase64
string 
必需
目标图片base64
示例值:
data:image/png;base64,xxx2
accountFilter
object (Filter) 
可选
instanceId
string 
账号实例ID
可选
notifyHook
string 
可选
回调地址, 为空时使用全局notifyHook
state
string 
自定义参数
可选
示例
{
  "sourceBase64": "data:image/png;base64,xxx1",
  "targetBase64": "data:image/png;base64,xxx2",
  "accountFilter": {
    "instanceId": ""
  },
  "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.aigc369.com/mj/insight-face/swap' \
--header 'Authorization;' \
--header 'Accept;' \
--header 'Content-Type: application/json' \
--data-raw '{
  "sourceBase64": "data:image/png;base64,xxx1",
  "targetBase64": "data:image/png;base64,xxx2",
  "accountFilter": {
    "instanceId": ""
  },
  "notifyHook": "",
  "state": ""
}'

返回响应

🟢200OK
application/json
Body
code
integer <int32>
可选
description
string 
可选
result
string 
可选
示例
{
    "code": 0,
    "description": "string",
    "result": "string"
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
上一页
简介
下一页
执行动作
Built with