# Face Swap

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v1/nova/faceswap:
    post:
      summary: Face Swap
      deprecated: false
      description: >-
        You can perform a face swap from one image to another. Both images must
        contain **one face**, otherwise it will only take the left most face as
        input.


        **Please make sure the image is not huge, file size less than 5MB is
        recommended.**


        For faceswap in group photo or video, you can check the specific
        [ChangeFace](https://changeface.io) service.
      tags:
        - API Documentation
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                ref:
                  type: string
                  description: >-
                    The reference metadata which will return as part of the
                    webhook.
                webhookOverride:
                  type: string
                  description: >-
                    The webhook URL which the response will send to, the payload
                    of this webhook is same as our Message endpoint.
                source:
                  type: string
                  description: >-
                    This is the URL for the face that you would like to use on
                    the target. You cannot use URLS served by Midjourney (ie.
                    cdn.midjourney) image.
                target:
                  type: string
                  description: >-
                    This is the URL for the image that you would like to swap
                    the face on. You cannot use URLS served by Midjourney (ie.
                    cdn.midjourney) image.
              x-apifox-orders:
                - source
                - target
                - ref
                - webhookOverride
              required:
                - source
                - target
            example:
              source: https://pix2.tvzhe.com/thumb/star/0/121/260x346.jpg
              target: https://pix2.tvzhe.com/thumb/star/0/202/260x346.jpg
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: The status of the request.
                  messageId:
                    type: string
                    description: >-
                      The messageId of the request, which will be used for
                      querying the progress, sending subsequential actions
                      later, etc.
                  createdAt:
                    type: string
                    description: The timestamp of the job creation.
                  error:
                    type: string
                    description: The error message, if any
                x-apifox-orders:
                  - success
                  - messageId
                  - createdAt
                  - error
                required:
                  - success
                  - messageId
                  - createdAt
              example:
                success: true
                messageId: d15c1541-229a-442b-9873-d3494dede12a
                createdAt: '2023-08-01T14:03:01.817Z'
          headers: {}
          x-apifox-name: Success
      security:
        - bearer: []
      x-apifox-folder: API Documentation
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5160896/apis/api-215989116-run
components:
  schemas: {}
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://api.imaginepro.ai
    description: Prod Env
security: []

```
