Face Swap with Enhancement (8GB Memory) avatar
Face Swap with Enhancement (8GB Memory)
Under maintenance

Pricing

$2.50/month + usage

Go to Apify Store
Face Swap with Enhancement (8GB Memory)

Face Swap with Enhancement (8GB Memory)

Under maintenance

Developed by

Akash Kumar Naik

Akash Kumar Naik

Maintained by Community

Professional face swap with built-in AI face enhancement. Create photorealistic face swaps with upscaling, detail restoration, and natural results.

0.0 (0)

Pricing

$2.50/month + usage

0

2

1

Last modified

4 days ago

Face Swap and Image Enhancer

Advanced AI-powered face swapping with optional image enhancement using CodeFormer restoration and upscaling. Perfect for creative projects, entertainment, and media production.

What It Does

This actor performs face swapping between two images and can optionally enhance the result with AI-powered restoration and upscaling. It supports various image formats and cloud storage URLs from Google Drive, Dropbox, and OneDrive.

Input Parameters

ParameterTypeDescriptionDefault
sourceImageUrlStringURL of the source image containing the face to be swappedRequired
targetImageUrlStringURL of the target image where the face will be swappedRequired
outputFormatStringFormat of the output image (jpg, png)jpg
enhanceOutputBooleanApply AI enhancement to the swapped imagetrue
enhanceQualityNumberQuality factor for enhancement (0.0-1.0)0.7
enhanceUpscaleIntegerUpscaling factor (1-4)2
enhanceFaceUpsampleBooleanEnable face upsamplingfalse
enhanceBackgroundEnhanceBooleanEnable background enhancementfalse
enhanceFaceRestoreBooleanEnable face restorationtrue

Output Dataset

FieldTypeDescription
statusStringProcessing status (succeeded/failed)
sourceUrlStringSource image URL
targetUrlStringTarget image URL
outputUrlStringResulting image URL
outputFormatStringOutput format
enhancedBooleanWhether enhancement was applied
processedAtStringProcessing timestamp
processingTimeMsNumberProcessing time in milliseconds
fileSizeBytesNumberOutput file size
enhanceQualityNumberEnhancement quality used
enhanceUpscaleNumberUpscale factor used
enhanceFaceUpsampleBooleanFace upsampling enabled
enhanceBackgroundEnhanceBooleanBackground enhancement enabled
enhanceFaceRestoreBooleanFace restoration enabled
errorMessageStringError message if failed
errorTypeStringError type if failed

Usage Examples

Basic Face Swap

{
"sourceImageUrl": "https://example.com/source.jpg",
"targetImageUrl": "https://example.com/target.jpg"
}

Enhanced Face Swap with Upscaling

{
"sourceImageUrl": "https://example.com/source.jpg",
"targetImageUrl": "https://example.com/target.jpg",
"enhanceOutput": true,
"enhanceUpscale": 4,
"enhanceQuality": 0.8
}

API Usage

Run the actor programmatically:

$apify call face-swap-enhancer -f input.json -o

Or via REST API:

curl -X POST "https://api.apify.com/v2/acts/face-swap-enhancer/runs" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d @input.json

Cost and Limits

  • Memory: 2048-8192 MB recommended
  • Processing Time: 30-300 seconds depending on enhancement settings
  • File Size: Up to 50MB per image
  • Rate Limits: Subject to Apify platform limits

Supported Formats

  • Input: JPEG, PNG, WEBP
  • Output: JPEG, PNG
  • Cloud Storage: Google Drive, Dropbox, OneDrive direct links

Error Handling

The actor provides detailed error messages in the dataset output. Common issues include:

  • Invalid or inaccessible image URLs
  • Unsupported image formats
  • Memory constraints during enhancement
  • Face detection failures