Skip to main content
FLUX.1 Kontext [pro] is a context-aware image generation model from Black Forest Labs, available through AnyFast. It can generate new images from text prompts, or edit existing images based on text instructions. Both endpoints are synchronous — they return the generated image directly as base64-encoded data.
  • Text-to-image — POST JSON to /v1/images/generations
  • Image editing — POST multipart form data to /v1/images/edits

Key capabilities

  • Image editing — Modify existing images with text instructions (e.g. “change the red car to blue”)
  • Text-to-image — Generate images from text prompts
  • Context-aware — Understands and preserves context from the reference image
  • Reproducible — Use seed for deterministic generation

Quick example

Text-to-image

Image editing

Text-to-image parameters

Image editing parameters

Response

API Reference

View the interactive API playground for FLUX.1 Kontext [pro].