Deepfake Creator

Deepfake Creator · Acciones GPT

Deepfake Face Swap Service

A service that generates face-swapped images using deepfake technology.

  • GET /deepfakeGet the URL of the face-swapped image using deepfake technology
Esquema original API
{
  "openapi": "3.0.1",
  "info": {
    "title": "Deepfake Face Swap Service",
    "description": "A service that generates face-swapped images using deepfake technology.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://nguyenthanh.asia"
    }
  ],
  "paths": {
    "/deepfake": {
      "get": {
        "operationId": "getFaceSwappedImageUrl",
        "summary": "Get the URL of the face-swapped image using deepfake technology",
        "parameters": [
          {
            "name": "source",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Source image URL containing the face to be swapped"
          },
          {
            "name": "target",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Target image URL to which the face will be swapped"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getFaceSwappedImageUrlResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "example": "Source and Target are required"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "example": "Unauthorized"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "getFaceSwappedImageUrlResponse": {
        "type": "object",
        "properties": {
          "imageUrl": {
            "type": "string",
            "description": "The URL to access the face-swapped image stored on the server"
          },
          "elapsedTime": {
            "type": "number",
            "format": "float",
            "description": "Time taken by the face-swapping process in seconds"
          },
          "status": {
            "type": "string",
            "description": "Indicates the success or failure of the process"
          }
        }
      }
    }
  }
}