NewHow we catch a seller listing the wrong model, and refund you if one does.
Black Forest Labs logo

FLUX.2 Flex API

black-forest-labs/flux.2-flexImage

Make images with FLUX.2 Flex through MartLLM: about $0.0365 per image. Requests are served by third-party providers. Made by Black Forest Labs. No MartLLM fee on requests. Adding credit by card costs 5.5% + $0.50.

Here, sellers serve it through their own provider accounts. Where the capacity comes from

How much does FLUX.2 Flex cost per image?

On November 20, 2026, FLUX.2 Flex costs $0.0365 per image at 1024×1024 through MartLLM, 42% below its list price of $0.0629. 28 sellers on the market can serve it. It is billed per megapixel, so larger pictures cost more. Prices come from sellers on the MartLLM market and change during the day. A picture that fails costs nothing, and MartLLM adds no fee.

FLUX.2 Flex pricing

Price now
about $0.0365 per image
% off list
42% off
Official price
about $0.0629 per image

Prices as of 11:00 UTC.

Each request is sent to an available third-party provider for this model and retried if the provider fails before it starts answering. No MartLLM fee on requests. Adding credit by card costs 5.5% + $0.50.

How to use it

One request with your MartLLM key; the image comes back in the answer.

bash
# Make an image: the answer comes back when it is ready.
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.2-flex", "prompt": "a red apple on a white table", "n": 1, "size": "1024x1024"}'

# → {"created": …, "data": [{"url": "https://api.martllm.com/v1/media/artifacts/<id>/0"}]}
#   (or "b64_json" when you send "response_format": "b64_json")

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

The clip lengths, sizes and other choices this model takes: GET https://api.martllm.com/v1/models/black-forest-labs/flux.2-flex. Add "validate": true to see the most a request can cost without paying. Guide

FLUX.2 Flex API FAQ

How do I make an image with FLUX.2 Flex?

Send a POST to https://api.martllm.com/v1/images/generations with your MartLLM key, model "black-forest-labs/flux.2-flex" 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.

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.2-flex"></script>

Plain iframe, for sites that allow no scripts

<iframe src="https://martllm.com/embed/prices?models=black-forest-labs/flux.2-flex" 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.2 Flex API price on MartLLM](https://api.martllm.com/api/v1/public/badge/black-forest-labs/flux.2-flex.svg)](https://martllm.com/models/black-forest-labs/flux.2-flex?utm_source=embed&utm_medium=referral&utm_campaign=price-badge)

Every option is in the embed docs.

Compared with other providers: One API for text, image and video

More Black Forest Labs models