VOOZH about

URL: https://apify.com/akash9078/ai-face-swap

โ‡ฑ AI Face Swap - Professional Face Swapping with Deep Learning ยท Apify


Pricing

from $0.00005 / actor start

Go to Apify Store

Swap faces between images using advanced AI deep learning for natural, high-resolution results. Ideal for dev teams, automated workflows, creators, influencers, and marketers.

Pricing

from $0.00005 / actor start

Rating

5.0

(2)

Developer

๐Ÿ‘ Akash Kumar Naik

Akash Kumar Naik

Maintained by Community

Actor stats

2

Bookmarked

81

Total users

5

Monthly active users

a month ago

Last modified

Share

AI Face Swap Actor

Deep learning-powered face swapping tool for professional image transformation. Swap faces between two images using state-of-the-art InsightFace models.

Overview

The AI Face Swap Actor enables you to automatically replace faces in images using advanced deep learning technology. Provide a source image (containing the face you want to use) and a target image (where you want the face applied), and receive a high-quality face-swapped result.

This tool is optimized for the Apify platform with efficient memory management, fast processing times, and reliable cloud execution.

Features

  • Deep Learning Face Swap - Advanced AI models for natural, realistic face swapping
  • Cloud Storage Support - Works with Google Drive, Dropbox, OneDrive, iCloud, and Box links
  • High Quality Output - PNG lossless or JPEG optimized output formats
  • Memory Optimized - Efficient resource management for stable performance
  • Fast Processing - Pre-downloaded models for quick execution
  • Graceful Shutdown - Automatic state preservation for interrupted runs

Use Cases

  • Portrait Photography - Swap faces for creative photography projects
  • Image Editing - Professional face replacement for compositing
  • Content Creation - Generate unique images for marketing and social media
  • Film & Video Production - Face replacement for visual effects workflows
  • Gaming & Virtual Avatars - Create custom character faces

Pricing

This Actor uses pay-per-event pricing model:

EventDescriptionPrice
Face Swap ResultSuccessful face swap with delivered output$0.025
Face Swap ErrorFailed operation after processing began$0.005

Users set a maximum spending limit per run in Apify Console.

Input

FieldTypeDescription
sourceUrlstringURL of image containing the face to use for swapping
targetUrlstringURL of image where the face will be applied
outputFormatstringOutput format: PNG (lossless) or JPEG (smaller)

Supported URL Formats

  • Direct image URLs (HTTP/HTTPS)
  • Google Drive sharing links
  • Dropbox sharing links
  • OneDrive sharing links
  • iCloud sharing links
  • Box sharing links
  • MediaFire sharing links

Output

The Actor returns a dataset item containing:

{
"success":true,
"sourceUrl":"https://example.com/source.jpg",
"targetUrl":"https://example.com/target.jpg",
"processingTime":12.5,
"fileSize":1048576,
"outputFormat":"PNG",
"resultUrl":"https://api.apify.com/v2/key-value-stores/...",
"timestamp":1700000000
}

How It Works

  1. Download Images - Both source and target images are fetched from provided URLs
  2. Face Detection - AI analyzes both images to locate and extract faces
  3. Face Swapping - The source face is mapped onto the target face using deep learning
  4. Result Delivery - Output image is stored and URL is returned in dataset

The Actor uses the InsightFace Buffalo-L model for face analysis and the Inswapper 128 model for face swapping, ensuring high-quality results with natural-looking transformations.

Performance Notes

  • Processing time typically ranges from 10-30 seconds depending on image size
  • Memory usage is optimized for runs up to 4GB RAM
  • Images are automatically resized if larger than 2048px to optimize processing

Error Handling

The Actor handles various error conditions:

  • Invalid URL formats
  • Image download failures
  • Private IP address detection (blocked for security)
  • No faces detected in images
  • Processing failures

Failed operations return error dataset items with descriptive messages.

FAQ

Q: What image formats are supported? A: Input supports JPG, JPEG, PNG, and WebP. Output can be PNG (lossless) or JPEG (optimized).

Q: Can I use faces from cloud storage? A: Yes, the Actor automatically converts Google Drive, Dropbox, OneDrive, iCloud, Box, and MediaFire sharing links to direct download URLs.

Q: What happens if no face is detected? A: The Actor returns an error item with "No faces detected" message. No charge is applied for this case.

Q: Is there a size limit for images? A: Images over 15MB or larger than 2048px dimension are rejected with appropriate error messages.

Q: How accurate is the face swap? A: The AI produces natural-looking results with proper lighting and blending. Complex lighting or unusual angles may affect quality.

Related Tools

  • AI Image Processing - Other image transformation Actors
  • Face Detection - Extract faces from images
  • Background Removal - Remove backgrounds from images

Technical Details

SpecificationValue
RuntimePython 3.11
Memory1GB - 4GB
ModelsInsightFace Buffalo-L, Inswapper 128 ONNX
CPUOptimized for 2 threads
Timeout120 seconds default

Support

For issues, feature requests, or custom implementations, open a GitHub issue or contact the developer.

License

MIT License - See repository for details.

You might also like

Instagram Post Video & Reels Video - Audio Downloader Multiple

alpha-scraper/instagram-post-video-reels-video---audio-downloader-multiple

Extract audio URLs from Instagram Reels and Post Videos instantly. Supports multiple URLs, delivers high-quality downloadable audio links with rich metadata including likes, comments, duration, and thumbnails. Fast, reliable, and perfect for automation, scraping, and bulk media extraction.

7

Instagram Reels Audio Downloader

alpha-scraper/instagram-reels-audio-downloader

Extract high-quality audio URLs from Instagram Reels instantly. Supports multiple links, returns structured metadata including audio formats, duration, likes, comments, and upload date. Fast, reliable, and perfect for automation and data collection.

7

Instagram Audio Downloader

alpha-scraper/instagram-audio-downloader

Instagram Audio Downloader ๐ŸŽต Extract playable audio URLs from Instagram videos and reels. Supports multiple links, returns clean metadata, and delivers direct audio accessโ€”ideal for automation, research, and content workflows.

34

Instagram Reels Audio Downloader

codenest/instagram-reels-audio-downloader

Extracts high-fidelity audio from Instagram Reels. Outputs a direct URL for download, comprehensive technical metadata (codec, bitrate, sample rate), and source information, delivering a pure audio stream for professional use.๐ŸŽต Instagram Reels Audio Downloader.

Instagram Reels Audio Scraper

kinaesthetic_millionaire/instagram-reels-audio-scraper

Instagram Reel Audio Scraper is a powerful and easy-to-use tool that allows you to extract detailed data from Instagram Reels that use a given audio track.

148

5.0

Instagram Audio Scraper - Reels by Audio, Song & Sound

khadinakbar/instagram-audio-scraper

Scrape public Instagram audio usage from audio IDs, audio URLs, Reel URLs, profile Reels, and Reel search queries. Returns audio metadata, Reel URLs, engagement metrics, media links, author metadata, and provider diagnostics. No cookies required.

Instagram Audio โ€“ Reel & Post Audio Downloader

transcriptdl/instagram-audio---reel-post-audio-downloader

Verified 99.4% Success. BULK process and extract audio from Instagram reels and posts using a URL. Returns a downloadable file when available or indicates when the post has no audio.

๐Ÿ‘ User avatar

Transcript Downloader

24

Best Instagram Email Scraper

scraper-mind/best-instagram-email-scraper

[๐—•๐Ÿฎ๐—• ๐—˜๐— ๐—”๐—œ๐—Ÿ ๐—”๐—ฉ๐—”๐—œ๐—Ÿ๐—”๐—•๐—Ÿ๐—˜] Boost your outreach with the Instagram Email Scraper. ๐Ÿ” Extract targeted B2B/B2C Instagram emails, build niche Instagram leads, and generate verified contacts from Profiles, Posts, and Reels. Perfect for marketers, agencies, and growth teams.

252

WhatsApp Number Validator

devscrapper/whatsapp-number-validator

Instantly verify if a phone number is active on WhatsApp. Fast, secure, and reliable validation service.

๐Ÿ‘ User avatar

Oussama Production

467

5.0

Whatsapp Number Validator (Pay Per Result)

vtrdev/whatsapp-number-validator

Quickly verify WhatsApp presence for phone numbers. Enjoy accurate, bulk validation with pay-per-result pricing. Validate up to 19.200 numbers/min. Perfect for marketing, support, and data enrichment. Efficient, scalable, and reliable.