FLUX.1 Kontext [dev] AI Image Editing Model

$$ · 2.5¢

Black Forest Labs' open-weights multimodal flow transformer for in-context image generation and editing, available for non-commercial use with character consistency and style transfer capabilities

2048 x 2048
Max Resolution
Input / Output
Text Image Image
Active

Details

Model ID
flux.1-kontext-dev
Creator
Black Forest Labs
Family
flux.1-kontext
Max Input Images
4
Tags
image-generation text-to-image image-editing open-weights non-commercial
// Get Started

Ready to integrate?

Access flux.1-kontext-dev via our unified API.

Create Account

Providers & Pricing (2)

FLUX.1 Kontext [dev] is available from 2 providers, with per-image pricing starting at $0.025 through Replicate.

Replicate
replicate/flux.1-kontext-dev
Provider Model ID: black-forest-labs/flux-kontext-dev
$0.025 /image
fal.ai
fal/flux.1-kontext-dev
Provider Model ID: fal-ai/flux-kontext/dev/text-to-image
$0.025 /image

FLUX.1 Kontext [dev] API OpenAI-compatible

Integrate FLUX.1 Kontext [dev] via the Lumenfall OpenAI-compatible API to perform advanced in-context image generation and precise image editing using Black Forest Labs' flow transformer architecture.

Base URL
https://api.lumenfall.ai/openai/v1
Model
flux.1-kontext-dev

Text to Image Generate

Create images from text descriptions

curl -X POST \
  https://api.lumenfall.ai/openai/v1/images/generations \
  -H "Authorization: Bearer $LUMENFALL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flux.1-kontext-dev",
    "prompt": "A serene mountain landscape at sunset",
    "size": "1024x1024"
  }'
# Response:
# { "created": 1234567890, "data": [{ "url": "https://...", "revised_prompt": "..." }] }

Image Editing Edit

Transform existing images with text instructions

curl -X POST \
  https://api.lumenfall.ai/openai/v1/images/edits \
  -H "Authorization: Bearer $LUMENFALL_API_KEY" \
  -F "model=flux.1-kontext-dev" \
  -F "[email protected]" \
  -F "prompt=Add a starry night sky to this image" \
  -F "size=1024x1024"
# Response:
# { "created": 1234567890, "data": [{ "url": "https://...", "revised_prompt": "..." }] }

FLUX.1 Kontext [dev] FAQ

How much does FLUX.1 Kontext [dev] cost?

FLUX.1 Kontext [dev] starts at $0.025 per image through Lumenfall. Pricing varies by provider. Lumenfall does not add any markup to provider pricing.

How do I use FLUX.1 Kontext [dev] via API?

You can use FLUX.1 Kontext [dev] through Lumenfall's OpenAI-compatible API. Send requests to the unified endpoint with model ID "flux.1-kontext-dev". Code examples are available in Python, JavaScript, and cURL.

Which providers offer FLUX.1 Kontext [dev]?

FLUX.1 Kontext [dev] is available through Replicate and fal.ai on Lumenfall. Lumenfall automatically routes requests to the best available provider.

What is the maximum resolution for FLUX.1 Kontext [dev]?

FLUX.1 Kontext [dev] supports images up to 2048x2048 resolution.

Overview

FLUX.1 Kontext [dev] is an open-weights multimodal flow transformer developed by Black Forest Labs, designed specifically for in-context image generation and editing. It extends the foundational FLUX.1 architecture to allow for complex image-to-image workflows, enabling users to maintain consistent characters or styles across different compositions. This model is intended for non-commercial development and research, offering a high-fidelity bridge between text prompts and visual reference inputs.

Strengths

  • Character Consistency: The model excels at maintaining the identity and features of a specific subject across multiple generated frames by leveraging reference images as “context.”
  • Zero-Shot Style Transfer: It can adapt the aesthetic, color palette, and texture of a target image onto a new prompt without requiring specific LoRA training or fine-tuning.
  • Complex Attribute Mapping: It demonstrates high accuracy in following dense textual instructions while respecting the spatial constraints and structural information provided in the input image.
  • Prompt Adherence: Like other models in the FLUX.1 family, it minimizes common artifacts in hand rendering and manages high-density text within images effectively.

Limitations

  • Non-Commercial License: The [dev] version is released under a restrictive license that prohibits revenue-generating applications, making it unsuitable for production environments without further licensing.
  • Hardware Intensity: Due to the flow transformer architecture and the multimodal input requirements, it demands significant VRAM and compute compared to standard latent diffusion models.
  • Prompt Sensitivity: Achieving the perfect balance between the input image context and the text prompt can require iterative testing, as the model may occasionally over-index on the reference image at the expense of prompt instructions.

Technical Background

FLUX.1 Kontext [dev] is built on a multimodal flow transformer architecture, a departure from traditional U-Net-based diffusion models. This approach uses flow matching to improve training efficiency and sampling quality. By integrating text and image embeddings into a shared latent space, the model treats visual context as a primary input alongside textual tokens, allowing for more natural in-context learning during the generation process.

Best For

FLUX.1 Kontext [dev] is best suited for storyboarding, character design sheets, and stylistic exploration where visual continuity is required across a series of images. It is an excellent choice for developers experimenting with advanced image-editing pipelines or researchers studying multimodal integration in large-scale generative models. You can experiment with its in-context capabilities through the Lumenfall unified API and playground, which simplifies the integration of its multimodal inputs into your development workflow.

Try FLUX.1 Kontext [dev] in Playground

Generate images with custom prompts — no API key needed.

Open Playground