fofr/face-swap-with-ideogram 📝✓🖼️ → 🖼️

▶️ 25.9K runs 📅 Aug 2025 ⚙️ Cog 0.14.0
face-swap image-editing image-manipulation portrait-photography

About

Use ideogram-character to face-swap someone into a target image

Example Output

Output

Example output

Performance Metrics

36.09s Prediction Time
37.04s Total Time
All Input Parameters
{
  "target_image": "https://replicate.delivery/pbxt/NV0Nn3hi2eLGDlj3Y0oP71nX3tLJbyvW9xwdlGb1Iy7ptjlV/blonde_mj.png",
  "character_image": "https://replicate.delivery/pbxt/NV0JLz4NfRmXPOkVrzjiASCfJvsea419i9agH2EuPJlHjG9h/0_1.webp"
}
Input Parameters
prompt Type: string
Optional custom prompt for the face swap. If not provided, Claude will analyze the target image to generate one
cleanup Type: booleanDefault: false
Optionally pass the final output to Nano Banana to add any missing elements
target_image (required) Type: string
Target image where the character's face will be placed
character_image (required) Type: string
Reference image of the character whose face to swap
Output Schema

Output

Type: stringFormat: uri

Example Execution Logs
🔍 Starting faceswap...
📝 Step 1: Analyzing target image with Claude to generate contextual prompt...
✅ Generated prompt: **AI Image Generation Prompt:**

Professional headshot portrait of a woman with soft, natural lighti...
🎭 Step 2: Extracting face mask using SA2VA segmentation...
✅ Face segmentation complete
🔄 Step 3: Inverting mask for Ideogram compatibility...
✅ Mask inverted and saved
🎨 Step 4: Performing face swap with Ideogram Character model...
✅ Face swap complete!
Version Details
Version ID
01775a8abbf145a9720e29b0060f72b99776d7bdb419d5d3367ee89ebfab0fa6
Version Created
September 8, 2025
Run on Replicate →