ImagesMidjourney
Midjourney 换脸任务
提交 InsightFace 换脸任务。请求体传入源人脸图片和目标图片的 Base64 Data URL,成功后返回 Midjourney 任务 ID。
Authorization
bearerAuth AuthorizationBearer <token>
使用 Authorization Bearer API Key 进行鉴权。
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/mj/insight-face/swap" \ -H "Content-Type: application/json" \ -d '{ "sourceBase64": "data:image/jpeg;base64,BASE64_SOURCE_IMAGE", "targetBase64": "data:image/jpeg;base64,BASE64_TARGET_IMAGE" }'{
"code": 1,
"description": "提交成功",
"result": "1751700106922083",
"properties": {}
}{
"error": {
"code": "string",
"message": "string",
"request_id": "string"
}
}