Models / Image / FLUX.1 Kontext [max] API
FLUX.1 Kontext [max] API
In-context image generation and editing model with fast iterative capabilities.

FLUX.1 Kontext [max] 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-max",
"prompt": ""
}'
RUN INFERENCE
from together import Together
client = Together()
response = client.images.generate(
prompt="",
model="black-forest-labs/FLUX.1-kontext-max"
)
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-max",
prompt: ""
});
console.log(response.data[0].b64_json);
How to use FLUX.1 Kontext [max]
Model details
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 FLUX.1 Kontext [max]
Applications & Use Cases
Model Provider:
FLUX
Type:
Image
Variant:
[max]
Parameters:
Deployment:
✔ Serverless
✔ On-Demand Dedicated
✔ Monthly Reserved
Quantization
Context length:
Pricing:
$0.08
Check pricing
Run in playground
Deploy model
Quickstart docs
Quickstart docs
Serverless
Looking for production scale? Deploy on a dedicated endpoint
Deploy FLUX.1 Kontext [max] on a dedicated endpoint with custom hardware configuration, as many instances as you need, and auto-scaling.
