Loading...
Loading...
Compare original and translation side by side
runcomfyruncomfyundefinedundefined
CLI deep dive: [`runcomfy-cli`](https://www.skills.sh/agentspace-so/runcomfy-agent-skills/runcomfy-cli) skill.
CLI深度解析:[`runcomfy-cli`](https://www.skills.sh/agentspace-so/runcomfy-agent-skills/runcomfy-cli)技能。npx skills add agentspace-so/runcomfy-agent-skills --skill face-swap -gnpx skills add agentspace-so/runcomfy-agent-skills --skill face-swap -gcommunity/wan-2-2-animate/apiFeatured RunComfy endpoint under. Audio-driven full-body character animation: one reference image of the new identity + audio → video where the character drives. Pick for: replacing a character in a scene with a new identity, dubbed clips, stylized + photoreal both work. Avoid for: preserving the motion of a specific source video — use Kling Motion Control./feature/character-swap
kling/kling-2-6/motion-control-proTakes a reference performance video + target character image, produces the target performing the reference motion. Face-swap is the byproduct. Pick for: preserving exact source motion / blocking onto a new character; stylized characters handled cleanly. Avoid for: simple "swap face in an existing video" without motion preservation — use Wan 2-2 Animate.
community/wan-2-2-animate/apiRunComfy的特色端点,位于下。音频驱动的全身角色动画:只需提供一张新身份的参考图片+音频,即可生成角色做出对应动作的视频。 适用场景:将场景中的角色替换为新身份、配音片段,写实和风格化内容均适用。 不适用场景:需要保留特定源视频动作的情况——请使用Kling Motion Control。/feature/character-swap
kling/kling-2-6/motion-control-pro输入参考动作视频+目标角色图片,生成目标角色做出参考动作的视频。人脸替换是其附带效果。 适用场景:需要将源视频的精确动作/镜头调度迁移到新角色;能很好地处理风格化角色。 不适用场景:无需保留动作的简单“在现有视频中替换人脸”——请使用Wan 2-2 Animate。
google/nano-banana-2/editIdentity-preserving by default, 1–20 input images per call, spatial-language honored. Pick for: same identity across multiple frames consistently (SKU shots, A/B variants, narrative panels). Identity reference as, scenes after. Avoid for: precise multi-ref compositional ("face from img 1 onto body in img 2") — use GPT Image 2 Edit.image_urls[0]
openai/gpt-image-2/editUp to 10 reference images, multilingual in-image text rewrite, layout-precise compositional instructions. Pick for: hero still where exact face from a portrait must land in a scene, with explicit role assignment ("image 1", "image 2"); preserve pose + lighting + background while swapping only face. Avoid for: 1-20 batch — use Nano Banana 2 Edit.
blackforestlabs/flux-1-kontext/pro/editSingle source image, single declarative instruction, maximum fidelity preservation of everything except the targeted edit. Pick for: "keep pose / clothing / hair / lighting / background, change only the face to [prose description]" — works without a reference image of the new identity. Avoid for: batch, multi-ref, or when you have a target face image to swap in — use Nano Banana 2 Edit or GPT Image 2 Edit.
Audio-driven talking-head identity swap (face + voice in one pass)? → use theskill — OmniHuman handles face + audio together.ai-avatar-video
google/nano-banana-2/edit默认保留身份,每次调用可处理1–20张输入图片,支持空间语言指令。 适用场景:需要在多帧中一致替换同一身份的情况(如SKU展示图、A/B变体图、叙事面板)。将身份参考图设为,其余为待替换场景图。 不适用场景:需要精准多参考构图的情况(如“将图1的人脸放到图2的身体上”)——请使用GPT Image 2 Edit。image_urls[0]
openai/gpt-image-2/edit最多支持10张参考图片,支持多语言图片内文本改写,遵循精准的构图指令。 适用场景:需要将肖像中的精确人脸放到场景中的主图,且有明确角色分配(如“图1”、“图2”);保留姿势、光线、背景,仅替换人脸。 不适用场景:批量处理1-20张图片——请使用Nano Banana 2 Edit。
blackforestlabs/flux-1-kontext/pro/edit单源图片,单条声明式指令,最大程度保留除目标编辑内容外的所有细节。 适用场景:“保留姿势、服装、发型、光线、背景,仅将人脸改为[文字描述]”——无需提供新身份的参考图片即可生效。 不适用场景:批量处理、多参考或已有目标人脸图片的替换——请使用Nano Banana 2 Edit或GPT Image 2 Edit。
音频驱动的说话人身份替换(同时替换人脸和声音)? → 使用技能——OmniHuman可同时处理人脸和音频。ai-avatar-video
runcomfy run community/wan-2-2-animate/api \
--input '{
"image_url": "https://your-cdn.example/new-character.png",
"audio_url": "https://your-cdn.example/voiceover.mp3"
}' \
--output-dir ./outruncomfy run community/wan-2-2-animate/api \
--input '{
"image_url": "https://your-cdn.example/new-character.png",
"audio_url": "https://your-cdn.example/voiceover.mp3"
}' \
--output-dir ./outruncomfy run kling/kling-2-6/motion-control-pro \
--input '{
"reference_video_url": "https://your-cdn.example/source-performance.mp4",
"character_image_url": "https://your-cdn.example/target-character.png"
}' \
--output-dir ./outruncomfy run kling/kling-2-6/motion-control-pro \
--input '{
"reference_video_url": "https://your-cdn.example/source-performance.mp4",
"character_image_url": "https://your-cdn.example/target-character.png"
}' \
--output-dir ./outopenai/gpt-image-2/editopenai/gpt-image-2/edit| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| string | yes | — | Compositional instruction; quote roles explicitly |
| string[] | yes | — | Up to 10 HTTPS reference URLs. Image 1 is primary |
| enum | no | | |
| 字段 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| string | 是 | — | 构图指令;明确引用角色 |
| string[] | 是 | — | 最多10个HTTPS参考URL。图1为主要参考 |
| enum | 否 | | |
runcomfy run openai/gpt-image-2/edit \
--input '{
"prompt": "Replace the face of the person in image 1 with the face from image 2. Preserve image 1 pose, clothing, lighting, and background exactly. Match skin tone and lighting to image 1.",
"images": [
"https://your-cdn.example/target-scene.jpg",
"https://your-cdn.example/identity-face.jpg"
],
"size": "auto"
}' \
--output-dir ./outruncomfy run openai/gpt-image-2/edit \
--input '{
"prompt": "Replace the face of the person in image 1 with the face from image 2. Preserve image 1 pose, clothing, lighting, and background exactly. Match skin tone and lighting to image 1.",
"images": [
"https://your-cdn.example/target-scene.jpg",
"https://your-cdn.example/identity-face.jpg"
],
"size": "auto"
}' \
--output-dir ./out"image 1""image 2""Preserve pose, clothing, lighting, and background exactly. Replace only the face.""match skin tone and lighting to image 1""image 1""image 2""Preserve pose, clothing, lighting, and background exactly. Replace only the face.""match skin tone and lighting to image 1"google/nano-banana-2/editgoogle/nano-banana-2/editruncomfy run google/nano-banana-2/edit \
--input '{
"prompt": "Replace the face in each image with the face shown in the first image. Keep all other elements — pose, clothing, lighting, background — unchanged.",
"image_urls": [
"https://your-cdn.example/identity-ref.jpg",
"https://your-cdn.example/scene-1.jpg",
"https://your-cdn.example/scene-2.jpg",
"https://your-cdn.example/scene-3.jpg"
],
"aspect_ratio": "auto",
"resolution": "1K"
}' \
--output-dir ./outruncomfy run google/nano-banana-2/edit \
--input '{
"prompt": "Replace the face in each image with the face shown in the first image. Keep all other elements — pose, clothing, lighting, background — unchanged.",
"image_urls": [
"https://your-cdn.example/identity-ref.jpg",
"https://your-cdn.example/scene-1.jpg",
"https://your-cdn.example/scene-2.jpg",
"https://your-cdn.example/scene-3.jpg"
],
"aspect_ratio": "auto",
"resolution": "1K"
}' \
--output-dir ./outaspect_ratioresolutionimage-editaspect_ratioresolutionimage-editblackforestlabs/flux-1-kontext/pro/editblackforestlabs/flux-1-kontext/pro/editruncomfy run blackforestlabs/flux-1-kontext/pro/edit \
--input '{
"prompt": "Keep pose, clothing, hair, lighting, and background exactly. Change only the face to that of a 35-year-old woman with high cheekbones, hazel eyes, and a small scar above the right eyebrow.",
"image": "https://your-cdn.example/scene.jpg"
}' \
--output-dir ./outruncomfy run blackforestlabs/flux-1-kontext/pro/edit \
--input '{
"prompt": "Keep pose, clothing, hair, lighting, and background exactly. Change only the face to that of a 35-year-old woman with high cheekbones, hazel eyes, and a small scar above the right eyebrow.",
"image": "https://your-cdn.example/scene.jpg"
}' \
--output-dir ./outimage_urls[0]aspect_ratioresolutionimage_urls[0]aspect_ratioresolutionimages: [scene, face]images: [scene, face]ai-avatar-videoai-avatar-video/models/feature/character-swap/models/feature/lip-syncbest-image-editing-modelskling/models/feature/character-swap/models/feature/lip-syncbest-image-editing-modelskling| code | meaning |
|---|---|
| 0 | success |
| 64 | bad CLI args |
| 65 | bad input JSON / schema mismatch |
| 69 | upstream 5xx |
| 75 | retryable: timeout / 429 |
| 77 | not signed in or token rejected |
| 代码 | 含义 |
|---|---|
| 0 | 成功 |
| 64 | CLI参数错误 |
| 65 | 输入JSON错误/schema不匹配 |
| 69 | 上游服务器5xx错误 |
| 75 | 可重试:超时/429错误 |
| 77 | 未登录或令牌被拒绝 |
runcomfy run <model_id>.runcomfy.net.runcomfy.com--output-dirruncomfy run <model_id>.runcomfy.net.runcomfy.com--output-dirnpm i -g @runcomfy/clinpx -y @runcomfy/cliruncomfy login~/.config/runcomfy/token.jsonRUNCOMFY_TOKEN--inputmodel-api.runcomfy.net*.runcomfy.net*.runcomfy.comallowed-tools: Bash(runcomfy *)runcomfy <subcommand>npm i -g @runcomfy/clinpx -y @runcomfy/cliruncomfy login~/.config/runcomfy/token.jsonRUNCOMFY_TOKEN--inputmodel-api.runcomfy.net*.runcomfy.net*.runcomfy.comallowed-tools: Bash(runcomfy *)runcomfy <subcommand>runcomfy-cliai-avatar-videoai-video-generationvideo-editimage-editlipsyncruncomfy-cliai-avatar-videoai-video-generationvideo-editimage-editlipsync