> ## 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.

# Image Editing

> Inpaint and edit images with Flux Kontext Pro and Max — mask and repaint any area with AI

# Image Editing

Use AI-powered inpainting to edit any part of an image. Upload an image, paint over the area you want to change, write a prompt describing what should replace it, and generate.

**Models:** Flux Kontext Pro (2 credits) | Flux Kontext Max (4 credits)\
**Access:** [app.wrldwide.ai/edit](https://app.wrldwide.ai/edit)

***

## Models

### Flux Kontext Pro

**Balanced performance — fast and accurate**

* **Credit Cost:** 2 credits
* **Best for:** Most editing tasks, iterative workflows, batch editing
* **Speed:** Faster than Max

***

### Flux Kontext Max

**Maximum quality — best for hero images**

* **Credit Cost:** 4 credits
* **Best for:** Final high-quality edits, complex changes, professional outputs
* **Speed:** Slower but higher fidelity

***

## How to Use

<Steps>
  <Step title="Open Image Editing">
    Navigate to [app.wrldwide.ai/edit](https://app.wrldwide.ai/edit)
  </Step>

  <Step title="Upload Image">
    Drag and drop or click to upload your image. Supported formats: PNG, JPEG, WEBP (max 10MB).
  </Step>

  <Step title="Select Editing Tool">
    Use the toolbar to choose your mask tool:

    * **Brush** — Paint over areas to mark for editing
    * **Eraser** — Remove areas from the mask

    Adjust brush size with the size slider.
  </Step>

  <Step title="Paint the Mask">
    Paint over the area of the image you want to change. The masked area will be replaced by the AI based on your prompt.

    **Tips:**

    * Paint precisely around edges for cleaner results
    * Use a larger brush for broad areas, smaller for details
    * Mask slightly outside the target area for better blending
  </Step>

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

    ```
    glossy red background with soft gradient
    ```

    ```
    marble surface texture, clean white stone
    ```

    ```
    person wearing a blue jacket
    ```

    The unmasked parts of the image are preserved exactly.
  </Step>

  <Step title="Select Model and Aspect Ratio">
    * **Model:** Flux Kontext Pro (2 credits) or Max (4 credits)
    * **Aspect Ratio:** Match your image's proportions
    * **Output Format:** JPEG or PNG
  </Step>

  <Step title="Generate">
    Click **Generate**. Results typically appear in 15–30 seconds.
  </Step>

  <Step title="Download or Iterate">
    Review the result. Download if satisfied, or adjust the mask and prompt to iterate.
  </Step>
</Steps>

***

## Canvas Controls

### Editing Tools

* **Brush tool** — Paint mask (keyboard: `B`)
* **Eraser tool** — Remove mask paint (keyboard: `E`)
* **Brush size** — Adjust for precision vs. speed

### View Controls

* **Zoom** — Zoom in for precise mask painting on detailed areas
* **Pan** — Navigate around large images while zoomed
* **Undo/Redo** — Full history for mask edits

***

## Aspect Ratios

Full range of aspect ratios supported:

| Ratio | Use Case                    |
| ----- | --------------------------- |
| 21:9  | Cinematic, ultra-wide       |
| 16:9  | Landscape, YouTube, desktop |
| 4:3   | Standard photo              |
| 1:1   | Square, social media        |
| 3:4   | Portrait, Pinterest         |
| 9:16  | Stories, TikTok, mobile     |

**Tip:** Match the aspect ratio to your source image to avoid distortion.

***

## Use Cases

### Background Replacement

Mask the entire background behind a product, prompt a new setting:

```
minimalist white studio with soft shadow, professional product photography
```

### Product Color Change

Mask the product itself and change its color:

```
matte black finish with metallic accents
```

### Text/Logo Removal

Mask over unwanted text, watermarks, or logos:

```
clean smooth surface matching surrounding texture
```

### Scene Extension

Mask the edges of an image and extend the scene:

```
same natural wooden table surface continuing
```

### Clothing Changes

For lifestyle imagery, change garment color or style:

```
white linen shirt with rolled sleeves
```

***

## Key Features

<AccordionGroup>
  <Accordion title="Flux Kontext Architecture">
    Flux Kontext is specifically designed for inpainting — it has a deep understanding of context around the masked area. This means edits blend naturally with the unmasked portions of the image, rather than looking like a patch.
  </Accordion>

  <Accordion title="Precise Mask Painting">
    The canvas editor lets you zoom in for pixel-precise masking. This matters for complex edits like isolating a product from its shadow or masking around curved surfaces.
  </Accordion>

  <Accordion title="Full Undo History">
    All mask strokes are tracked with full undo/redo support. Experiment freely — you can always step back through your mask editing history.
  </Accordion>

  <Accordion title="Gallery Integration">
    Images generated elsewhere on the platform can be edited directly — no need to download and re-upload. Access your generation history via the image picker.
  </Accordion>
</AccordionGroup>

***

## Pro Tips

### Prompt the Context, Not Just the Replacement

Don't just describe the new element — describe it in the context of the image:

❌ `blue color`\
✅ `product in matte navy blue finish, same studio lighting, sharp edges`

### Use Safety Tolerance

For complex edits, the safety tolerance can be adjusted (0-2) to allow more creative interpretation vs. strict adherence to the surrounding context.

### Iterate

Start with Flux Kontext Pro for speed. Only upgrade to Max for the final version you're satisfied with.

***

## Next Steps

<CardGroup cols={2}>
  <Card title="Image Generation" icon="image" href="/en/features/image-generation">
    Generate base images to edit
  </Card>

  <Card title="Background Removal" icon="eraser" href="/en/features/background-removal">
    Clean cutout tool for product isolation
  </Card>

  <Card title="Style Transfer" icon="palette" href="/en/features/style-transfer">
    Apply artistic styles to images
  </Card>

  <Card title="Upscaling" icon="arrow-up" href="/en/features/upscaling">
    Upscale edited images
  </Card>
</CardGroup>
