This website uses cookies to anonymously analyze website traffic using Google Analytics.

Models / Black Forest LabsFLUX /  / FLUX.1 Kontext [pro] API

FLUX.1 Kontext [pro] API

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

Try our FLUX.1 API
New

FLUX.1 Kontext [pro] API Usage

Endpoint

RUN INFERENCE

curl -X POST "https://api.together.xyz/v1/images/generations" \
  -H "Authorization: Bearer $TOGETHER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "black-forest-labs/FLUX.1-kontext-pro",
    "prompt": ""
   }'

RUN INFERENCE

from together import Together

client = Together()
response = client.images.generate(
    prompt="",
    model="black-forest-labs/FLUX.1-kontext-pro"
)
print(response.data[0].b64_json)

RUN INFERENCE

import Together from "together-ai";

const together = new Together();

const response = await together.images.create({
  model: "black-forest-labs/FLUX.1-kontext-pro",
  prompt: ""
});
console.log(response.data[0].b64_json);

How to use FLUX.1 Kontext [pro]

Model details

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 FLUX.1 Kontext [pro]

Applications & Use Cases

Looking for production scale? Deploy on a dedicated endpoint

Deploy FLUX.1 Kontext [pro] on a dedicated endpoint with custom hardware configuration, as many instances as you need, and auto-scaling.

Get started