Skip to main content
Model IDflux-1-fill
ProviderBlack Forest Labs
Cost$0.05/img
TierStandard
Speed~5s
Best forInpainting, 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

curl -X POST https://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"}'
import requests, os

r = requests.post("https://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 | All Models | Pricing | Error Handling