返回 Skill 列表
extension
分类: 数据与分析需要 API Key

Faceswap

AI 换脸 - 使用 verging.ai API 进行视频换脸。支持本地视频、YouTube/Bilibili 链接、本地/远程人脸图片。自动下载、裁剪...

person作者: revisual-aihubclawhub

faceswap - AI Face Swap

Swap faces in videos using AI, right from the command line. Supports local files, YouTube/Bilibili URLs, and remote images.

Demo

Face Swap Demo

▶️ Click to watch demo video

Install

npx skills add verging-ai/agent-skills --skill faceswap

Setup

  1. Visit verging.ai
  2. Login → Click avatar (top right) → API Keys
  3. Create a key, then set it:
export VERGING_API_KEY="vrg_sk_your_key_here"

Requirements

  • yt-dlp (for downloading YouTube/Bilibili videos)
  • ffmpeg / ffprobe (for trimming)
  • curl

Usage

# Local video + local face image
/faceswap -v ./video.mp4 -f ./face.jpg

# YouTube URL + remote face image
/faceswap -v "https://youtube.com/watch?v=xxx" -f "https://example.com/face.jpg"

# Trim to 10-25 seconds, HD mode, auto-download result
/faceswap -v ./video.mp4 -f ./face.jpg --start 10 --end 25 --hd --download

Options

| Option | Short | Description | Default | |--------|-------|-------------|---------| | --video | -v | Video file or URL | Required | | --face | -f | Face image file or URL | Required | | --start | -s | Start time (seconds) | 0 | | --end | -e | End time (seconds) | Video end | | --hd | | HD quality | false | | --download | -d | Auto-download result | false | | --output | -o | Output path | Current dir |

Credits

| Mode | Cost | |------|------| | Normal | 1 credit/second | | HD | 3 credits/second |

Max video duration: 30 seconds (longer videos are auto-trimmed).

Links

  • Website: https://verging.ai
  • API Docs: https://verging.ai/docs/api