EZLINK AI API
  1. InsightFace任务提交
EZLINK AI API
  • LLMs
    • 介绍
    • 项目说明
    • 导言
    • 身份验证
    • 发出请求
    • 参数详情
    • 音频(Audio)
      • 创建语音
      • 创建转录
      • 创建翻译
    • 聊天(Chat)
      • 聊天完成对象
      • 聊天完成块对象
      • 创建聊天补全
    • 自动补全(Completions)
      • 完成对象
      • 创建完成
    • 嵌入(Embeddings)
      • 嵌入对象
      • 创建嵌入
    • 图像(Images)
      • README
      • 图像对象
      • 创建图像
      • 创建图片编辑
      • 创建图像变体
    • 模型(Models)
      • 模型对象
      • 列出模型
      • 检索模型
    • 审查(Moderations)
      • 调节对象
      • 创建内容审核
  • Stability
    • Image-to-Video
      • Start generation
      • Fetch generation result
    • Upscale
      • Conservative
      • Start Creative Upscale
      • Fetch Creative Upscale result
    • Edit
      • Erase
      • Inpaint
      • Outpaint
      • Search and Replace
      • Remove Background
    • Generate
      • Stable Image Ultra
      • Stable Image Core
      • Stable Diffusion 3
    • Control
      • Sketch
      • Structure
      • Style
  • Midjourney
    • InsightFace任务提交
      • 提交swap_face任务
        POST
    • 任务提交
      • 执行动作
      • 提交Blend任务
      • 提交Describe任务
      • 提交Imagine任务
      • 提交Modal
      • 提交Shorten任务
    • 任务查询
      • 指定ID获取任务
      • 获取任务图片的seed(需设置mj或niji的私信ID)
  • File
  • Flux
    • 创建图像 Copy
      POST
  • video
    • 视频生成
      POST
    • 生成查询
      GET
  1. InsightFace任务提交

提交swap_face任务

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

Request

Body Params application/json
sourceBase64
string 
required
人脸源图片base64
Example:
data:image/png;base64,xxx1
targetBase64
string 
required
目标图片base64
Example:
data:image/png;base64,xxx2
accountFilter
object (Filter) 
optional
instanceId
string 
optional
账号实例ID
notifyHook
string 
optional
回调地址, 为空时使用全局notifyHook
state
string 
optional
自定义参数
Example
{
    "sourceBase64": "data:image/png;base64,xxx1",
    "targetBase64": "data:image/png;base64,xxx2",
    "accountFilter": {
        "instanceId": "61"
    },
    "notifyHook": "laboris",
    "state": "fugiat"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.ezlinkai.com/mj/insight-face/swap' \
--header 'Content-Type: application/json' \
--data-raw '{
    "sourceBase64": "data:image/png;base64,xxx1",
    "targetBase64": "data:image/png;base64,xxx2",
    "accountFilter": {
        "instanceId": "61"
    },
    "notifyHook": "laboris",
    "state": "fugiat"
}'

Responses

🟢200OK
application/json
Body
code
integer <int32>
optional
description
string 
optional
result
string 
optional
Example
{
    "code": 0,
    "description": "string",
    "result": "string"
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
Modified at 2024-08-18 02:37:38
Previous
Style
Next
执行动作
Built with