Modellss Docs
  1. InsightFace task submission
  • Send Request
  • Model List and Price
  • Model APIs
    • Chat API
      • Chat
      • GPTs
      • gemini-pro
      • gpt-4-all(Image)
      • gpt-4-vision-preview
    • Chat Completions API
      • Chat Completions API
    • Image API
      • Midjourney
        • InsightFace task submission
          • Submit swap_face task
            POST
        • Task Submission
          • Perform Action
          • Submit Blend Task
          • Submit a Describe task
          • Submit a Imagine task
          • Submit Modal
          • Submit Shorten Task
        • Task Inquiry
          • Inquire about all tasks
          • Inquire about tasks based on a list of IDs
          • Paged query for tasks
          • Inquire about the task queue
          • Cancel task
          • Retrieve task with specified ID
          • Get the seed for the task image
      • DALL·E 3
        POST
      • Stable Diffusion
        POST
      • MJ Chat
        POST
      • gpt-4-all(generate images)
        POST
    • Embedding Vector Generation Interface (Embeddings)
      • Create Embeddings
    • Audio
      • Create transcription
      • Create translation
      • Text to speech
  • Help Center
    • FAQ
  • Schemas
    • Schemas
      • Blend提交参数
      • CheckActivationDTO
      • Describe提交参数
      • Discord账号
      • Filter
      • Imagine提交参数
      • Map«string,object»
      • Message«Discord账号»
      • Message«Map«string,object»»
      • Message«Void»
      • Message«string»
      • Modal提交参数
      • Option
      • Pageable
      • Page«Map«string,object»»
      • Page«任务»
      • Shorten提交参数
      • Sort
      • SwapFace提交参数
      • TaskQueryDTO
      • 任务
      • 任务查询参数
      • 变化任务提交参数
      • 变化任务提交参数-simple
      • 可执行按钮
      • 可执行按钮_1
      • 执行动作参数
      • 提交结果
      • 激活服务参数
      • 账号修改参数
      • 账号创建参数
      • 账号查询参数
      • 账号筛选条件
  1. InsightFace task submission

Submit swap_face task

POST
/mj/insight-face/swap
The Submit Swap Face task at /mj/insight-face/swap allows for the swapping of faces between two images, utilizing advanced facial recognition and manipulation technologies. This API endpoint is ideal for creating seamless, realistic results in image editing, entertainment, or digital identity verification processes.

Request

Body Params application/json

Example
{
    "sourceBase64": "data:image/png;base64,xxx1",
    "targetBase64": "data:image/png;base64,xxx2",
    "accountFilter": {
        "instanceId": "string"
    },
    "notifyHook": "string",
    "state": "string"
}

Request Code 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.modelless.co/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": "string"
    },
    "notifyHook": "string",
    "state": "string"
}'

Responses

🟢200OK
application/json
Body

Example
{
    "code": 0,
    "description": "string",
    "result": "string"
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
Modified at 2024-02-29 13:08:30
Previous
Chat Completions API
Next
Perform Action
Built with