Face Swap with Enhancement (8GB Memory)
Pricing
$2.50/month + usage
Face Swap with Enhancement (8GB Memory)
Under maintenanceProfessional 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
| Parameter | Type | Description | Default |
|---|---|---|---|
sourceImageUrl | String | URL of the source image containing the face to be swapped | Required |
targetImageUrl | String | URL of the target image where the face will be swapped | Required |
outputFormat | String | Format of the output image (jpg, png) | jpg |
enhanceOutput | Boolean | Apply AI enhancement to the swapped image | true |
enhanceQuality | Number | Quality factor for enhancement (0.0-1.0) | 0.7 |
enhanceUpscale | Integer | Upscaling factor (1-4) | 2 |
enhanceFaceUpsample | Boolean | Enable face upsampling | false |
enhanceBackgroundEnhance | Boolean | Enable background enhancement | false |
enhanceFaceRestore | Boolean | Enable face restoration | true |
Output Dataset
| Field | Type | Description |
|---|---|---|
status | String | Processing status (succeeded/failed) |
sourceUrl | String | Source image URL |
targetUrl | String | Target image URL |
outputUrl | String | Resulting image URL |
outputFormat | String | Output format |
enhanced | Boolean | Whether enhancement was applied |
processedAt | String | Processing timestamp |
processingTimeMs | Number | Processing time in milliseconds |
fileSizeBytes | Number | Output file size |
enhanceQuality | Number | Enhancement quality used |
enhanceUpscale | Number | Upscale factor used |
enhanceFaceUpsample | Boolean | Face upsampling enabled |
enhanceBackgroundEnhance | Boolean | Background enhancement enabled |
enhanceFaceRestore | Boolean | Face restoration enabled |
errorMessage | String | Error message if failed |
errorType | String | Error 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
