FLUX.2 Klein 4B API
Black Forest Labs·Image
FLUX.2 Klein 4B (per-megapixel).
Pricing
Pay per generation. Pay with 350+ cryptocurrencies.
Per megapixel
$0.015 OpenRouter
What FLUX.2 Klein 4B costs at volume
Capabilities · 3
Specifications
- Context window
- —
- Max output
- —
- Type
- Image
- Creator
- Black Forest Labs
- Live sellers
- 10
- Requests / 24h
- 23
Price history · 60 days
Quick start
OpenAI-compatible — change the base URL and key. Get a key from the dashboard.
from openai import OpenAI
import base64
client = OpenAI(base_url="https://api.qubax.ai/v1", api_key="YOUR_QUBAX_API_KEY")
img = client.images.generate(
model="flux.2-klein-4b",
prompt="a red fox in fresh snow, golden hour, 35mm photo",
size="1024x1024",
n=1,
)
open("fox.png", "wb").write(base64.b64decode(img.data[0].b64_json))About FLUX.2 Klein 4B
FLUX.2 Klein 4B is an image generation model from Black Forest Labs. It outputs 1024x1024, 1792x1024 and 1024x1792 and accepts negative prompts. On Qubax you call it through the OpenAI-compatible /v1/images/generations endpoint and images come back inline as base64.
As of Nov 4, 2026, FLUX.2 Klein 4B costs $0.013 per megapixel on Qubax, versus $0.015 on OpenRouter (13% less). 10 independent compute providers currently serve it, so requests fail over automatically. Pay with USDC, USDT, BTC, ETH or 350+ other coins — no credit card required.
Frequently asked questions
How much does the FLUX.2 Klein 4B API cost?
On Qubax, FLUX.2 Klein 4B costs $0.013 per megapixel. That is 13% cheaper than OpenRouter.
Is the FLUX.2 Klein 4B API compatible with OpenAI?
Yes. Qubax provides an OpenAI-compatible API. You can use FLUX.2 Klein 4B as a drop-in replacement by changing your base URL to https://api.qubax.ai/v1 and using your Qubax API key. It works with Cline, Cursor, OpenCode, Hermes Agent, and any tool that supports OpenAI APIs.
Why is FLUX.2 Klein 4B cheaper on Qubax than OpenRouter?
Qubax sources AI inference from an open compute marketplace on the Base blockchain where GPU providers compete on price. We pass the savings to you — 13% cheaper than OpenRouter's price for FLUX.2 Klein 4B.
How do I pay for FLUX.2 Klein 4B API usage?
Qubax uses prepaid crypto credits. Top up with USDC, USDT, BTC, ETH, SOL or 350+ other coins and your balance is deducted as you use the API. No credit card or KYC required.
What can I make with FLUX.2 Klein 4B?
FLUX.2 Klein 4B is a image generation model. Common uses: marketing visuals, product & e-commerce, concept art and in-app generation. Call it from your own code with a Qubax API key, or try it in Qubax Studio first.
Can I use FLUX.2 Klein 4B for commercial projects?
Yes. FLUX.2 Klein 4B on Qubax can be used for commercial purposes. You own the outputs you generate. Qubax provides the API infrastructure — you bring your use case.
Why use FLUX.2 Klein 4B on Qubax?
13% cheaper
Providers compete on price — you get the cheapest healthy seller.
Pay with crypto
350+ coins (BTC, ETH, SOL, USDT, USDC). No card, no KYC.
OpenAI & Anthropic compatible
Drop-in base URL. Works with Cline, Cursor, Claude Code, OpenAI and Anthropic SDKs.