提交swap_face任务
接口:POST /mj/insight-face/swap 归属:绘图模型/Mid journey/换脸任务提交 调用地址:Base URL https://api.allyang.cn(OpenAI 兼容前缀 https://api.allyang.cn/v1)+ 上述路径 鉴权:请求头 Authorization: Bearer <你的令牌>;令牌在控制台「令牌管理」创建 说明:下方为本接口契约。路径、字段名与枚举取值与线上接口一致;叙述文字已按本平台口径重写。价格、并发与限流等数值以控制台及实际返回为准,未确认处标注「待补」。
OpenAPI Specification
yaml
openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/mj/insight-face/swap:
post:
summary: 提交swap_face任务
description: ''
tags:
- 绘图模型/Mid journey/换脸任务提交
- InsightFace任务提交
parameters:
- name: Authorization
in: header
description: ''
required: false
example: Bearer {{YOUR_API_KEY}}
schema:
type: string
default: Bearer {{YOUR_API_KEY}}
requestBody:
content:
application/json:
schema:
type: object
properties:
sourceBase64:
type: string
description: "人脸源图片 base64。"
examples:
- data:image/png;base64,xxx1
targetBase64:
type: string
description: "目标图片 base64。"
examples:
- data:image/png;base64,xxx2
accountFilter: *ref_0
notifyHook:
type: string
description: "回调地址,留空则走全局 notifyHook。"
state:
type: string
description: "自定义参数。"
required:
- sourceBase64
- targetBase64
examples: {}
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/Message%C2%ABstring%C2%BB'
headers: {}
'201':
description: ''
content:
application/json:
schema:
type: object
properties: {}
headers: {}
'401':
description: ''
content:
application/json:
schema:
type: object
properties: {}
headers: {}
'403':
description: ''
content:
application/json:
schema:
type: object
properties: {}
headers: {}
'404':
description: ''
content:
application/json:
schema:
type: object
properties: {}
headers: {}
security: []
components:
schemas:
SwapFace提交参数:
type: object
required:
- sourceBase64
- targetBase64
properties:
sourceBase64:
type: string
description: "人脸源图片 base64。"
examples:
- data:image/png;base64,xxx1
targetBase64:
type: string
description: "目标图片 base64。"
examples:
- data:image/png;base64,xxx2
accountFilter: *ref_0
notifyHook:
type: string
description: "回调地址,留空则走全局 notifyHook。"
state:
type: string
description: "自定义参数。"
title: SwapFace提交参数
Filter:
type: object
properties:
instanceId:
type: string
description: "账号实例 ID。"
title: Filter
Message«string»:
type: object
properties:
code:
type: integer
format: int32
description:
type: string
result:
type: string
title: Message«string»
securitySchemes: {}
servers: []
security: []