Hormouz AIHormouz AIHormouzSign in

flux-2-klein-4b: image generation model

FLUX.2 [klein] 4B is Black Forest Labs' compact image model for very fast generation and editing, from a tenth of a cent per image. Served asynchronously from inside Iran through Hormouz.

Pricing:
$0.001000 – $0.009000 / image
Type:
image
  • Image generation

FLUX.2 [klein] 4B is a 4-billion-parameter image model distilled from Black Forest Labs' larger FLUX.2 model. It generates in four steps, so a typical image is ready in a second or two, while keeping much of its teacher's grasp of lighting, composition and legible text in images. It is open-weight under Apache 2.0.

It is served through Hormouz behind an asynchronous predictions API: submit a prediction, then poll until the image is ready. The required input is a prompt. Pass up to five reference images in images to edit a picture or keep a product or character consistent, choose an output size with output_megapixels (0.25, 0.5, 1, 2 or 4; default 1) and set aspect_ratio (default 1:1, or match_input_image).

Pricing follows what you ask for: $0.001 per output megapixel (0.25 and 0.5 are billed as one) plus $0.001 per reference image. A plain 1-megapixel image costs $0.001 and the largest request — five references at 4 megapixels — costs $0.009. Hormouz provides stable access from inside Iran, with no foreign credit card or circumvention tooling required.

Quickstart

# Create the prediction, then poll until succeeded
curl -s https://api.hormouz.net/v1/predictions \
  -H "Authorization: Bearer ng-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"version":"black-forest-labs/flux-2-klein-4b","input":{"prompt":"A beautiful sunset"}}'

Specs

VendorBlack Forest Labs
TypeImage
Context window—
Pricing$0.001000 – $0.009000 / image
APIpredictions

Code example

cURL
# Create the prediction, then poll until succeeded
curl -s https://api.hormouz.net/v1/predictions \
  -H "Authorization: Bearer ng-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"version":"black-forest-labs/flux-2-klein-4b","input":{"prompt":"A beautiful sunset"}}'
Python
import requests
BASE = "https://api.hormouz.net/v1"
H = {"Authorization": "Bearer ng-YOUR_API_KEY", "Content-Type": "application/json"}
r = requests.post(f"{BASE}/predictions", headers=H,
    json={"version": "black-forest-labs/flux-2-klein-4b", "input": {"prompt":"A beautiful sunset"}})
print(r.json()["id"])
JavaScript
const BASE = "https://api.hormouz.net/v1";
const res = await fetch(`${BASE}/predictions`, {
  method: "POST",
  headers: { Authorization: "Bearer ng-YOUR_API_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({ version: "black-forest-labs/flux-2-klein-4b", input: {"prompt":"A beautiful sunset"} }),
});
const { id } = await res.json();

Buy the flux-2-klein-4b API, paid in rial

  • Buy credit with an Iranian bank card; no foreign card or account needed.
  • One Hormouz key reaches flux-2-klein-4b and nearly 700 other models, and you pay only for what you use.
  • No VPN and no risk of a banned account; just change the base URL to api.hormouz.net/v1.
Create an account

Use via Hormouz

Connect to this model and nearly 700 others with one API key, then see usage down to each request.

Request company access

FAQ

How much does FLUX.2 [klein] 4B cost?
$0.001 per output megapixel (0.25 and 0.5 megapixels are billed as one) plus $0.001 per reference image. A 1-megapixel image from a text prompt costs $0.001; the maximum, five references at 4 megapixels, is $0.009.
How do I call FLUX.2 [klein] 4B?
It runs on Hormouz's asynchronous predictions API: submit a prediction with your prompt, then poll until the image is ready. Point your base URL at Hormouz and use a Hormouz API key.
Can FLUX.2 [klein] 4B edit images?
Yes. Send up to five images in the images field and describe the change in the prompt. Use aspect_ratio match_input_image to keep the shape of the first image. Each reference image adds $0.001.
What output sizes does it support?
Set output_megapixels to 0.25, 0.5, 1, 2 or 4 (default 1), with an aspect_ratio from 1:1 to 21:9 in either orientation. Output format can be jpg (default), png or webp.
How do I access FLUX.2 [klein] 4B from inside Iran?
Hormouz serves it from inside Iran over a stable connection. You pay in Iranian rial through the dashboard, with no foreign card or circumvention tooling needed.

Updated 2026-11-27