Black Forest Labs logoBlack Forest LabsImage1 route

FLUX.1 Kontext Max API

Make images with FLUX.1 Kontext Max through MartLLM.

black-forest-labs/flux-kontext-maxConnect to ClaudeGet an API key
Show more

Made by Black Forest Labs. MartLLM does not run this model. Here, sellers serve it through their own provider accounts.

FLUX.1 Kontext Max pricing

Official price% off listCheapest offer
$0.08 per image66.4%$0.0269 per image

Request

curl https://api.martllm.com/v1/images/generations \
  -H "Authorization: Bearer $UBERLLM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "black-forest-labs/flux-kontext-max",
  "prompt": "Studio product photo of a matte black water bottle on a stone pedestal, soft shadows, warm rim light, beige background, high detail, e-commerce hero image",
  "resolution": "1k",
  "n": 1
}'

# → {"created": …, "data": [{"url": "https://api.martllm.com/v1/media/artifacts/<id>/0"}]}

# Download it
curl -L -o image.png -H "Authorization: Bearer $UBERLLM_API_KEY" "https://api.martllm.com/v1/media/artifacts/<id>/0"

Set UBERLLM_API_KEY to your key. Download the link with your key. A request that fails costs nothing. Full API guide

Options

Resolutions
1k
Shapes
1:1
Model id
black-forest-labs/flux-kontext-max

Try FLUX.1 Kontext Max

Settings

About $0.0269 Before it starts you see the most it can cost. If it fails, you pay nothing.

The same request as the settings on the left, ready to copy.

curl https://api.martllm.com/v1/images/generations \
  -H "Authorization: Bearer $UBERLLM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "black-forest-labs/flux-kontext-max",
  "prompt": "",
  "resolution": "1k",
  "n": 1
}'

# → {"created": …, "data": [{"url": "https://api.martllm.com/v1/media/artifacts/<id>/0"}]}

# Download it
curl -L -o image.png -H "Authorization: Bearer $UBERLLM_API_KEY" "https://api.martllm.com/v1/media/artifacts/<id>/0"

Examples to start from

01

Product shot

Studio product photo of a matte black water bottle on a stone pedestal, soft shadows, warm rim light, beige background, high detail, e-commerce hero image

Prompt only · 1:1

02

Travel poster

Minimal travel poster of Kyoto in autumn, flat illustration, red maple leaves, a pagoda at sunset, large clean title space at the top

Prompt only

03

Natural-light portrait

Natural-light portrait of a smiling barista in a small coffee shop, 85mm lens look, shallow depth of field, warm tones, candid moment

Prompt only

FLUX.1 Kontext Max API parameters

ParameterTypeWhat it does
modelblack-forest-labs/flux-kontext-maxRequired
promptstringRequired. What to make.
resolution1kOptional. Detail level.
aspect_ratio1:1Optional. Shape of the picture.
ninteger, 1 to 10Optional · 1. How many pictures.
response_formaturl, b64_jsonOptional · url

Read from GET https://api.martllm.com/v1/models/black-forest-labs/flux-kontext-max: the same rules the API checks every request against.

FLUX.1 Kontext Max API FAQ

How much does FLUX.1 Kontext Max cost per image?

On November 28, 2026, FLUX.1 Kontext Max costs $0.0269 per image through MartLLM, 66.4% below its list price of $0.08. Prices come from sellers on the MartLLM market and change during the day. A picture that fails costs nothing, and MartLLM adds no fee.

How do I make an image with FLUX.1 Kontext Max?

Send a POST to https://api.martllm.com/v1/images/generations with your MartLLM key, model "black-forest-labs/flux-kontext-max" and a prompt. The image comes back in the answer.

Are there other fees?

MartLLM adds no fee to model prices. A card fee of 5.5% + $0.50 is added when you buy credit, and a request that fails is not billed.

Guides

Compare with similar models

Embed this price

Show these prices on your own site. The table reads the current prices from MartLLM, so it stays up to date.

Script: the table sets its own height

<script async src="https://martllm.com/embed.js" data-models="black-forest-labs/flux-kontext-max"></script>

Plain iframe, for sites that allow no scripts

<iframe src="https://martllm.com/embed/prices?models=black-forest-labs/flux-kontext-max" title="AI model API prices" width="100%" height="127" loading="lazy" style="border:0;max-width:720px"></iframe>

Price badge for a README (Markdown)

[![FLUX.1 Kontext Max API price on MartLLM](https://api.martllm.com/api/v1/public/badge/black-forest-labs/flux-kontext-max.svg)](https://martllm.com/models/black-forest-labs/flux-kontext-max?utm_source=embed&utm_medium=referral&utm_campaign=price-badge)

Every option is in the embed docs.