> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wrldwide.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 图像编辑

> 使用 Flux Kontext 进行图像修复和编辑

# Image Editing

Edit images with AI-powered inpainting using Flux Kontext. Select areas to modify and describe the changes.

**Models:** Flux Kontext Pro (2 credits) | Flux Kontext Max (4 credits)\
**Speed:** 30-60 seconds

***

## 使用方法

<Steps>
  <Step title="Go to Image Editor">
    Navigate to [app.wrldwide.ai/inpainting](https://app.wrldwide.ai/inpainting)
  </Step>

  <Step title="Upload Image">
    Upload the image you want to edit
  </Step>

  <Step title="Select Area">
    Use the brush tool to select areas to edit:

    * Paint over the region to modify
    * Adjust brush size as needed
    * Zoom in for precision
  </Step>

  <Step title="Write Prompt">
    Describe what should appear in the selected area:

    Example: `Red leather texture` or `Add a blue sky background`
  </Step>

  <Step title="Select Model">
    * **Pro** — 2 credits, standard quality
    * **Max** — 4 credits, enhanced quality
  </Step>

  <Step title="Generate">
    Click **Generate** to apply edits
  </Step>
</Steps>

***

## 使用场景

### Object Replacement

* Change product colors
* Replace backgrounds
* Modify objects in scenes

### Photo Restoration

* Remove unwanted elements
* Fix imperfections
* Enhance specific areas

### Creative Editing

* Add elements to images
* Change styles of objects
* Composite images

***

## 最佳实践

* **Clear Selection:** Be precise with brush selection
* **Specific Prompts:** Describe exactly what you want
* **Start Small:** Test with small edits first
* **Use Max for Complex:** Use Max (4 credits) for complex edits

***

## 故障排除

* **Blending issues:** Ensure selection edges are clean
* **Unwanted changes:** Be more specific in prompts
* **Artifacts:** Try Max model or refine selection

***

## 下一步

<CardGroup cols={2}>
  <Card title="Background Removal" icon="scissors" href="/cn/features/background-removal">
    Remove backgrounds completely
  </Card>

  <Card title="Image Generation" icon="image" href="/cn/features/image-generation">
    Generate new images
  </Card>
</CardGroup>
