Models / Black Forest Labs
Image

FLUX.1 Kontext [max]

In-context image generation and editing model with fast iterative capabilities.

About model

On Together AI, FLUX.1 Kontext [max] costs $0.08 per MP.

FLUX.1 Kontext [max] is the highest-quality model in Black Forest Labs' FLUX.1 Kontext family, a set of flow matching models that generate and edit images in context. You prompt with text alone, or with text and an image, and the model changes what you ask for while keeping the rest of the picture intact. Black Forest Labs describes [max] as the variant with greatly improved prompt adherence and typography generation and high consistency for editing, without a compromise on speed. The family was announced on May 29, 2025 and covers character consistency, local editing, style reference and step-by-step iteration on earlier edits. Available on Together AI.

Quality Tier

Max

The top model in the FLUX.1 Kontext family for prompt adherence and typography

Core Capabilities

4

Character consistency, local editing, style reference and interactive speed

Default Steps

28

Default number of diffusion steps for Kontext on Together AI

Model key capabilities
  • In-Context Editing: Give it an image and a text instruction and it edits the named element without affecting the rest
  • Typography and Prompt Adherence: Black Forest Labs reports greatly improved prompt adherence and typography generation in [max]
  • Character Consistency: Keeps a reference character or object recognizable across scenes and repeated edits
  • Production-Ready Infrastructure: 99.9% SLA, available on Together AI serverless infrastructure
  • API usage

    • cURL
    • Python
    • Typescript

    Endpoint:

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

    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-max",
        "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-max",
        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-max",
      prompt: "A serene mountain landscape at sunset with a lake reflection",
    });
    
    console.log(response.data[0].url);
  • Model card

    FLUX.1 Kontext [max] is a premium generative flow matching model that delivers maximum performance for in-context image generation and editing. It features enhanced prompt adherence, superior typography generation, and premium consistency for complex editing tasks.

    The model processes both text and image inputs to enable character consistency, local editing, style reference, and iterative refinement workflows.

    Designed for demanding applications requiring the highest quality outputs, precise prompt following, and consistent results across varied editing scenarios.

  • Prompting

    Together AI API Access:
    • Access FLUX.1 Kontext [max] via Together AI APIs using the endpoint black-forest-labs/FLUX.1-kontext-max
    • 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

    Character and Brand Consistency:
    • Place the same character in new scenes and environments
    • Build a sequence of edits step by step from one source image

    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