flux-2-klein-4b - API in Egypt, billed in EGP
LiveThe fastest model of the Flux 2 family. Frontier visual intelligence — state-of-the-art image generation and editing from Black Forest Labs
Modality
image
Region
US
Weights
Open weights
Published
13 Sept 2026
Pricing
Price
0.797 EGP per 1024p image
The provider reports the exact charge on every response.
- Priced per image unit, not per image: one unit is a 1024p image, and a default request costs 0.797 EGP.
- Charge = unit price x (width / 1024) x (height / 1024). Smaller images cost less; larger images and more steps cost more.
- The exact charge is reported by the provider on every response and is what you pay.
Use it via the API
flux-2-klein-4b works with any OpenAI-compatible SDK — point the base URL at https://backend.sovereigneg.com/v1 and use your SovereignEG API key.
Run inference
OpenAI-compatible — POST /v1/images/generations — drop-in for any OpenAI SDK.
import base64
from openai import OpenAI
client = OpenAI(
base_url="https://backend.sovereigneg.com/v1",
api_key="YOUR_API_KEY",
)
response = client.images.generate(
model="flux-2-klein-4b",
prompt='Aerial night photo of the floodlit Giza pyramids under a starry sky, an Egyptian flag spread on the sand, and a glowing "SovereignEG" wordmark in a clean geometric typeface across the sky',
)
with open("image.png", "wb") as f:
f.write(base64.b64decode(response.data[0].b64_json))import fs from "node:fs"
import OpenAI from "openai"
const client = new OpenAI({
baseURL: "https://backend.sovereigneg.com/v1",
apiKey: "YOUR_API_KEY",
})
const response = await client.images.generate({
model: "flux-2-klein-4b",
prompt: 'Aerial night photo of the floodlit Giza pyramids under a starry sky, an Egyptian flag spread on the sand, and a glowing "SovereignEG" wordmark in a clean geometric typeface across the sky',
})
fs.writeFileSync("image.png", Buffer.from(response.data[0].b64_json, "base64"))curl https://backend.sovereigneg.com/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-2-klein-4b",
"prompt": "Aerial night photo of the floodlit Giza pyramids under a starry sky, an Egyptian flag spread on the sand, and a glowing \"SovereignEG\" wordmark in a clean geometric typeface across the sky"
}'Frequently asked questions
Where is flux-2-klein-4b hosted?
flux-2-klein-4b is served from US (US-hosted inference).
Is flux-2-klein-4b an open-weights model?
Yes — flux-2-klein-4b is an open-weights model. You call it through the SovereignEG API like any other catalog model, with per-token EGP billing.
How do I use flux-2-klein-4b via the API?
flux-2-klein-4b is available through the OpenAI-compatible SovereignEG API: point your SDK's base URL at https://backend.sovereigneg.com/v1 and call /v1/chat/completions with model "flux-2-klein-4b" and your API key.