Skip to main content
Model IDflux-kontext-pro
ProviderBlack Forest Labs
Cost$0.05/img
TierStandard
Speed~5s
Best forImage editing, style transfer, transformations

Description

Black Forest Labs’ context-aware image editing model. Edit and transform images with text instructions while preserving context. Ideal for style transfer, object manipulation, and scene transformation.

Features

  • Context-aware editing
  • Image transformation
  • Text-guided editing
  • Style transfer
  • Object manipulation

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-kontext-pro", "prompt": "Make this watercolor style", "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-kontext-pro",
        "prompt": "Make this watercolor style",
        "image": "https://example.com/photo.jpg"
    }
)
print(r.json()["images"][0]["url"])

Guides: Image Generation | All Models | Pricing | Error Handling