Skip to main content

Qubico - Face Swapper

Swap faces between images using Qubico's AI model.

Endpoint

Request Body

The request must include the following parameters:

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be FACE_SWAPPER
modelstringYesAI model identifier. Must be Qubico/image-toolkit
promptObjectobjectYesFeature-specific parameters

Prompt Object Parameters

ParameterTypeRequiredDescription
targetImageUrlstringYesPath to target image
swapImageUrlstringYesPath to face image
output_formatstringYesOutput format. Must be png

Example Request

fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'FACE_SWAPPER',
model: 'Qubico/image-toolkit',
promptObject: {
targetImageUrl: 'development/images/2025_02_18_11_09_03_936_human.jpg',
swapImageUrl: 'development/images/2025_02_18_11_10_30_356_human3.jpeg',
output_format: 'png'
}
})
})

Responses

Success Response (200)

Successful response contains the generated image with swapped faces.

{}