Linked Profile Pro
Linked Profile Pro · Acciones GPT
FaceSwap API
API for swapping faces between two images.
POST /faceswapSwaps faces between two images.This endpoint swaps faces between a target image and a source image.
Esquema original API
{
"openapi": "3.0.0",
"info": {
"title": "FaceSwap API",
"description": "API for swapping faces between two images.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://faceswap-image-transformation-api.p.rapidapi.com",
"description": "Main API server"
}
],
"paths": {
"/faceswap": {
"post": {
"operationId": "swapFaces",
"summary": "Swaps faces between two images.",
"description": "This endpoint swaps faces between a target image and a source image.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FaceSwapRequest"
}
}
}
},
"responses": {
"200": {
"description": "Face swap successful",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FaceSwapResponse"
}
}
}
}
},
"security": [
{
"RapidAPIKeyHeader": []
}
]
}
}
},
"components": {
"schemas": {
"FaceSwapRequest": {
"type": "object",
"properties": {
"TargetImageUrl": {
"type": "string",
"format": "uri",
"description": "The URL of the target image."
},
"SourceImageUrl": {
"type": "string",
"format": "uri",
"description": "The URL of the source image."
}
}
},
"FaceSwapResponse": {
"type": "object",
"properties": {
"swappedImageUrl": {
"type": "string",
"format": "uri",
"description": "URL of the image with faces swapped."
}
}
}
},
"securitySchemes": {
"RapidAPIKeyHeader": {
"type": "apiKey",
"in": "header",
"name": "X-Rapidapi-Key"
}
}
}
}