Models / Black Forest Labs
Image

FLUX.1 Kontext [pro]

In-context image generation and editing model with enhanced prompt adherence.

About model

On Together AI, FLUX.1 Kontext [pro] costs $0.04 per MP.

FLUX.1 Kontext [pro] is Black Forest Labs' model for fast, iterative image editing and generation, announced on May 29, 2025. It takes a text prompt alone, or a text prompt with a reference image, and handles local edits to one region, larger changes to a whole scene and plain text-to-image generation in a single model. You can build on earlier edits over several turns while characters, styles and distinctive features stay consistent across scenes and viewpoints. At launch, Black Forest Labs reported that [pro] ranked among the top performers on all six tasks of its KontextBench evaluation, with the highest scores in text editing and character preservation. Available on Together AI.

Core Capabilities

4

Character consistency, local editing, style reference and interactive speed

Input Types

2

A text prompt alone, or a text prompt with a reference image

Default Steps

28

Default number of diffusion steps for Kontext on Together AI

Model key capabilities
  • Local Editing: Changes a specific element of an image from a text instruction without affecting the rest
  • Multi-Turn Iteration: Builds on previous edits across several turns while keeping characters and styles consistent
  • Unified Editing and Generation: One model for local edits, whole-scene transformations and text-to-image generation
  • Production-Ready Infrastructure: 99.9% SLA, available on Together AI serverless infrastructure
  • API usage

    • cURL
    • Python
    • Typescript

    Endpoint:

    black-forest-labs/FLUX.1-kontext-pro

    curl -X POST "https://api.together.ai/v1/images/generations" \
      -H "Authorization: Bearer $TOGETHER_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "black-forest-labs/FLUX.1-kontext-pro",
        "prompt": "A serene mountain landscape at sunset with a lake reflection"
      }'
    from together import Together
    
    client = Together()
    
    response = client.images.generate(
        model="black-forest-labs/FLUX.1-kontext-pro",
        prompt="A serene mountain landscape at sunset with a lake reflection",
    )
    
    print(response.data[0].url)
    import Together from 'together-ai';
    
    const together = new Together();
    
    const response = await together.images.generate({
      model: "black-forest-labs/FLUX.1-kontext-pro",
      prompt: "A serene mountain landscape at sunset with a lake reflection",
    });
    
    console.log(response.data[0].url);
  • Model card

    FLUX.1 Kontext [pro] is a generative flow matching model designed for fast, iterative image editing and generation workflows. It combines both text and image inputs to deliver local editing, generative in-context modifications, and text-to-image generation capabilities.

    The model excels at targeted edits in specific image regions, complex transformations of entire scenes, and maintaining character consistency across multiple iterations.

    Built for production use cases requiring rapid iteration and professional-quality results with minimal latency between edits.

  • Prompting

    Together AI API Access:
    • Access FLUX.1 Kontext [pro] via Together AI APIs using the endpoint black-forest-labs/FLUX.1-kontext-pro
    • Authenticate using your Together AI API key in request headers
    • Send an image generation request with a text prompt, and pass the image you want to edit as image_url
    • Set the output shape with aspect_ratio, for example 1:1, 16:9 or 9:16, or use width and height for exact pixel dimensions
    • To change text in an image, put the old and new wording in quotes, for example: Replace 'joy' with 'BFL'
    • Available on Together AI serverless infrastructure

  • Applications & use cases

    Targeted Image Editing:
    • Change the color of a product or a car and leave the rest of the photo as it is
    • Replace the wording on signs, posters and labels while keeping the original lettering style
    • Remove an object from a portrait or a scene

    Iterative Creative Work:
    • Refine an image over several edits, one instruction at a time
    • Keep the same character across new scenes and viewpoints

    Style Transformation:
    • Turn a photo into a pencil sketch or an oil painting
    • Use a reference image to set the style of a new scene