图片系列Midjourney
Midjourney 换脸任务
POST
提交 InsightFace 换脸任务。请求体传入源人脸图片和目标图片的 Base64 Data URL,成功后返回 Midjourney 任务 ID。
bearerAuthheader
AuthorizationBearer <API key>使用 Authorization Bearer API Key 进行鉴权。
application/json- body
sourceBase64*string源人脸图片 Base64 Data URL。
targetBase64*string目标图片 Base64 Data URL。
Midjourney 换脸任务提交响应。
application/json- response
Midjourney 任务提交响应。
code?integer提交结果码。1 通常表示提交成功,其他值表示排队、重复、敏感词或错误。
description?string提交结果描述。
result?stringMidjourney 任务 ID。
properties?上游返回的扩展属性,例如队列信息、已存在任务状态或翻译后的提示词。
[key: string]?anycurl -X POST 'https://goldflow.cc/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"}'Example Response
{ "code": 0, "description": "string", "result": "string", "properties": {}}