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

# FLUX.1 Fill

> flux-1-fill — AI inpainting, outpainting, and image extension. $0.07/image.

|              |                                                          |
| ------------ | -------------------------------------------------------- |
| **Model ID** | `flux-1-fill`                                            |
| **Provider** | Black Forest Labs                                        |
| **Cost**     | \$0.07/img                                               |
| **Tier**     | Standard                                                 |
| **Speed**    | \~5s                                                     |
| **Best for** | Inpainting, outpainting, image extension, object removal |

## Description

Black Forest Labs' specialized model for inpainting, outpainting, and image extension. Generates content-aware fills that blend seamlessly with the original image.

## Features

* Inpainting (fill masked areas)
* Outpainting (extend beyond borders)
* Image extension
* Content-aware fill
* Seamless blending

## Example

```bash theme={null}
curl -X POST https://www.ninjachat.ai/api/v1/images \
  -H "Authorization: Bearer nj_sk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "flux-1-fill", "prompt": "Remove the person and fill with background", "image": "https://example.com/photo.jpg"}'
```

```python theme={null}
import requests, os

r = requests.post("https://www.ninjachat.ai/api/v1/images",
    headers={"Authorization": f"Bearer {os.environ['NINJACHAT_API_KEY']}"},
    json={
        "model": "flux-1-fill",
        "prompt": "Remove the person and fill with background",
        "image": "https://example.com/photo.jpg"
    }
)
print(r.json()["images"][0]["url"])
```

***

**Guides:** [Image Generation](/image-generation) | [All Models](/models) | [Pricing](/pricing) | [Error Handling](/error-handling)
