faceswap
AIで動画の顔を交換する
動画内の顔を手動で入れ替えるのは時間がかかり、専門的なソフトウェアが必要です。このスキルはverging.ai APIを使用してワークフロー全体を自動化し、ローカルファイルやYouTube/BilibiliのURLを入力として受け取り、結果を直接出力します。
スキルZIPをダウンロード
Claudeでアップロード
設定 → 機能 → スキル → スキルをアップロードへ移動
オンにして利用開始
テストする
「faceswap」を使用しています。 Run /faceswap with video ./video.mp4 and face ./face.jpg
期待される結果:
- Checking video duration: 22 seconds
- Credits needed: 22 (normal mode)
- Uploading video to cloud storage...
- Job created: job_id=295
- Progress: 25%... 50%... 75%... 100%
- Result: https://img.panpan8.com/face-swap/2026-05-31/result.mp4
「faceswap」を使用しています。 Swap the face in a YouTube clip from 10-25 seconds in HD mode
期待される結果:
- Downloading video from YouTube...
- Trimming to 10-25 seconds...
- Uploading trimmed video (15 seconds, HD = 45 credits)...
- Job created: job_id=296
- Status: COMPLETED after 45 seconds
- Result downloaded to: ./result_hd.mp4
セキュリティ監査
中リスクThe skill is a documentation/instruction file (no executable code) that guides an AI assistant to run shell commands (yt-dlp, ffmpeg, curl) and make API calls to verging.ai. All 82 static findings are false positives in context: backtick patterns are markdown code examples, URLs are legitimate API endpoints, API key references are standard authentication documentation, and temp directory access is standard media processing. The combination of network + credentials + external commands is expected for this use case. No malicious intent detected. Risk level is medium due to the breadth of system access required.
中リスクの問題 (1)
低リスクの問題 (4)
リスク要因
⚙️ 外部コマンド (5)
🌐 ネットワークアクセス (5)
🔑 環境変数 (3)
📁 ファイルシステムへのアクセス (3)
品質スコア
作れるもの
コンテンツクリエイターのクイック編集
動画エディタを開かずに、ソーシャルメディア用の短いクリップの顔を交換します。
YouTube動画の顔入れ替え
YouTube URLと顔画像を指定すると、交換結果が自動的にダウンロードされます。
バッチ顔入れ替えの自動化
CLIコマンドを異なる入力で繰り返し使用し、複数の動画を順次処理します。
これらのプロンプトを試す
Run /faceswap with video ./video.mp4 and face image ./face.jpg to swap the face.
Run /faceswap with video https://youtube.com/watch?v=xxx, face https://example.com/face.jpg, trimming from 10 to 25 seconds in HD mode and auto-downloading the result.
Run /faceswap with video ./input.mp4, a remote face image URL, and save the output to /tmp/result.mp4.
First check my verging.ai credit balance, then run /faceswap with the provided video and face URL, trim to 15 seconds, use HD mode, and download the result.
ベストプラクティス
- スキル実行前にVERGING_API_KEY環境変数を設定し、コマンドでキーを渡さないようにします
- クレジット消費を最小限に抑えるため、動画を必要な最小限の長さにトリミングします
- クレジット節約のため、プレビューには通常モードを使用し、最終出力にのみHDモードを使用します
- 処理後に/tmp/verging-faceswap/をクリーンアップし、メディアファイルがディスクに残らないようにします
回避
- シェル履歴やプロセスリストに表示される可能性があるため、APIキーをコマンドラインで直接渡さないでください
- upload-videoエンドポイントにJSON body(-d)を使用しないでください。multipart form data(-F)が必要です
- 顔画像を/upload-videoで個別にアップロードしないでください。create-jobエンドポイントがswap_image=@pathとして直接受け取ります