Inpaint
Inpaint 会根据你的 prompt 与周围上下文,为图像的遮罩区域填充 AI 生成内容。
概览
| 属性 | 值 |
|---|---|
| 提供商 | Various |
| 成本 | 100 credits |
| 模态 | Image Tool |
| 输入 | Image + Mask + Prompt |
| 输出 | Image |
最适合做什么
- 替换物体 — 替换指定元素
- 添加内容 — 给图像加新元素
- 修复 — 修补受损区域
- 创意编辑 — 局部变换
- 背景变化 — 替换背景的一部分
输入
Image(必填)
要编辑的基础图片。
连接颜色:🟢 Green
Mask(必填)
标记需要填充的区域(white = fill)。
连接颜色:🟢 Green
Prompt(必填)
描述遮罩区域中应该出现的内容。
连接颜色:🟡 Yellow
配置
Strength
Type: Slider
Range: 0 - 1
Default: 0.8
控制遮罩区域改变程度。
Seed
Type: Number
输出
Type:Image
连接颜色:🟢 Green
用例
替换物体
Replace the car in the masked area with a bicycle,
matching the street scene style,
realistic lighting.
添加元素
Add a cat sitting in the masked area,
orange tabby cat,
natural pose, matching lighting.
更换背景
Replace the sky in the masked area with sunset,
dramatic orange and pink clouds,
golden hour lighting.
修复
Restore the damaged area of this old photo,
match the surrounding texture and style,
seamless repair.
创意编辑
Transform the masked area into a fantasy portal,
glowing blue energy,
magical sparkles.
提升效果的小建议
- mask 要精确 — 清晰定义区域
- 描述要充分 — 写清楚你想要什么
- 匹配上下文 — 考虑光线与风格一致
- 调整 strength — 想更“轻微”就调低
- 包含周边上下文 — mask 可略超出目标边缘
Strength Guide
| Strength | 效果 |
|---|---|
| 0.3 - 0.5 | 变化较轻,保留更多原图 |
| 0.6 - 0.8 | 平衡替换 |
| 0.9 - 1.0 | 更彻底替换 |
Workflow Integration
Basic Inpaint
Image + Mask + Prompt → Inpaint → Output
Multi-step Edit
Image → Inpaint (area 1) → Inpaint (area 2) → Output
Enhanced Pipeline
Image + Mask → Inpaint → Upscaler → Output
与 Object Remover 的对比
| 特性 | Inpaint | Object Remover |
|---|---|---|
| Prompt | ✅ Required | ❌ Not used |
| 控制力 | High(你指定内容) | Automatic |
| 用例 | 替换为指定内容 | 直接移除 |
| 成本 | 100 credits | 50 credits |
相关模型
- Object Remover — 移除但不指定替换内容
- Outpaint — 扩展边界
- Rembg — 背景移除