questions/Pricing

How much does Flux-2-Klein-9b cost?

Flux-2-Klein-9b (black-forest-labs/flux-2-klein-9b) is priced at $0.040 per image through AIgateway. AIgateway charges pass-through on the underlying Black Forest Labs rate plus a 5% platform fee applied at credit top-up — nothing per-call, no monthly minimum. Free tier available.

How it works

Pass-through on the underlying provider

AIgateway bills at the same per-token rate Black Forest Labs publishes. There's no inflated sticker price; the model-vendor's invoice and your gateway invoice agree on the token count and unit cost. Usage is aggregated to the nearest fraction of a cent in D1 and surfaced live in your dashboard.

5% platform fee at top-up

The only margin on top is a 5% platform fee, applied at credit top-up — not per-call. A $100 top-up funds $95 of provider calls. Cache hits (when you use prompt caching or semantic cache) bill at 10% of the uncached cost, so long-context agent workloads often run net cheaper than calling Black Forest Labs directly.

Free tier + pay-as-you-go

No subscription and no monthly minimum. Free tier gives you 100 requests/day on Kimi K2.6. Paid tier starts at a $5 top-up with no auto-renew. BYOK (bring your own Black Forest Labs key) is supported on Enterprise if you already have a direct contract you want to preserve.

Code example

Python
# pip install aigateway-py openai
# aigateway-py: sub-accounts, evals, replays, jobs, webhook verify.
# openai SDK: chat/embeddings/images/audio — drop-in compat per our SDK's own guidance.
from openai import OpenAI

client = OpenAI(
    base_url="https://api.aigateway.sh/v1",
    api_key="sk-aig-...",
)

img = client.images.generate(
    model="black-forest-labs/flux-2-klein-9b",
    prompt="A studio photo of a red ceramic mug on white marble",
    size="1024x1024",
)
print(img.data[0].url)
Node / TypeScript
// npm i aigateway-js openai
// aigateway-js: sub-accounts, evals, replays, jobs, webhook verify.
// openai SDK: chat/embeddings/images/audio — drop-in compat.
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.aigateway.sh/v1",
  apiKey: process.env.AIGATEWAY_KEY,
});

const img = await client.images.generate({
  model: "black-forest-labs/flux-2-klein-9b",
  prompt: "A studio photo of a red ceramic mug on white marble",
  size: "1024x1024",
});
console.log(img.data[0].url);

Related

FAQ

How much does Flux-2-Klein-9b cost per token?

Flux-2-Klein-9b is priced at $0.040 per image. Full breakdown is on this page's how-it-works section.

Is there a free tier for Flux-2-Klein-9b?

Flux-2-Klein-9b is not on the free tier; the 100 free requests/day go to Kimi K2.6. Paid tier starts at a $5 top-up.

Does Flux-2-Klein-9b support prompt caching?

Not natively. AIgateway's semantic cache can still hit duplicate prompts and bill cached hits at 10% of the uncached rate.

Are there volume discounts on Flux-2-Klein-9b?

Pass-through pricing means you automatically get whatever tier discount Black Forest Labs publishes. AIgateway doesn't mark up; the 5% platform fee applies flat regardless of volume. Enterprise customers can negotiate committed-use discounts on top.

How is Flux-2-Klein-9b usage metered?

Every call returns usage.prompt_tokens and usage.completion_tokens in the response body, same as OpenAI. We also write the exact cost into x-aigateway-cost response header. Full audit log is in the dashboard.

TRY IT NOW

One key, every model. Free tier, no card.

Get an AIgateway keyOpen the playground