Flux 2 Klein 9B Text to Image

bfl/flux-2/klein/9b

Flux 2 Klein 9b is BFL's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.

Base price
$0.01USD / run
Execution
async
Model type
image
Input fields
5
Production route

Try the model

Playground

Open playground
Input
The prompt to generate an image from.
48
The number of inference steps to perform. Range: 4 to 8.
The format of the generated image. Allowed values: jpeg, png.
The aspect ratio of the generated image. Allowed values: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16.
The seed to use for the generation. If not provided, a random seed will be used.
OutputExample

Examples

Select an example to load its inputs and result into the playground.

Model card

Specifications

Pricing

Base price
$0.01 / run

Context & modalities

Input
Schema-defined
Output
image

Capabilities

Chat
Not supported
Vision
Not supported
Reasoning
Not supported
Structured output
Not supported
Function calling
Not supported
Audio input
Not supported

Access

Provider
BFL
Model ID
bfl/flux-2/klein/9b
Execution
async
Base URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

Human preference

Arena

Elo ratings from blind side-by-side votes, compared with other image and video models.

Rankings sourced from Artificial Analysis Arena

Leaderboard
Text to Image
Rank
#76 of 106
Elo
929 ±10
Gap to #1
−293

Text-to-image arena: people pick the better of two images generated from the same prompt, without seeing the model names.

  1. #71Z-Image TurboAlibabaOn SandBase936±11
  2. #72GPT Image 1 Mini (medium)OpenAI936±17
  3. #73HunyuanImage 3.0TencentOn SandBase932±16
  4. #74Dreamina 3.1Bytedance931±17
  5. #75FLUX.1 Kontext [max]Black Forest Labs929±12
  6. #76FLUX.2 [klein] 9BBlack Forest LabsThis model929±10
  7. #77Kling Image 3.0 OmniKlingAIOn SandBase918±17
  8. #78FLUX.1 Kontext [pro]Black Forest Labs917±18
  9. #79ERNIE Image TurboBaidu914±10
  10. #80Ideogram 3.0IdeogramOn SandBase911±18

API README

Flux 2 Klein 9B Text to Image

FLUX.2 [klein] 9B, a compact open model for fast, low-cost images. Text to image.

Fields

FieldTypeDefaultNotes
promptstring, required—Text instruction.
num_inference_stepsinteger 4–84More steps add detail and time.
output_formatjpeg / pngpngOutput file format.
aspect_ratio21:9 / 16:9 / 3:2 / 4:3 / 5:4 / 1:1 / 4:5 / 3:4 / 2:3 / 9:1616:9Output shape.
seedintegerrandomFix it to compare prompt changes.

Billing

$0.01 per image.

RequestPrice
One image$0.01

Failed runs are not charged.

Prompting

  • Write subject, setting, composition, style, then light.
  • Quote any text that must appear.

Limits

  • One output image per request.

Also on SandBase

Other FLUX.2 endpoints: bfl/flux-2/max, bfl/flux-2/pro, bfl/flux-2/flex, bfl/flux-2/dev, bfl/flux-2/klein/9b/edit.

Start building

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

Production API
Unified Run API endpoint
https://api.sandbase.ai/v1/run
Model ID
bfl/flux-2/klein/9b
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "model": "bfl/flux-2/klein/9b",
  "prompt": "A bright, surreal scene on a vast white salt flat under a clear blue sky, featuring two fluffy white alpacas standing in the foreground. Behind them sits a sleek white supercar with its scissor doors open, creating a dramatic futuristic silhouette. The sunlight is strong and crisp, casting sharp shadows on the ground and giving the image a clean, high-contrast cinematic look. Minimalist composition, playful luxury vibe, ultra sharp detail, wide-angle perspective, high resolution.",
  "aspect_ratio": "16:9",
  "output_format": "png",
  "num_inference_steps": 4
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
  status=$(printf '%s' "$result" | jq -r .status)
  case "$status" in completed|failed|timeout) break ;; esac
  sleep 2
  result=$(curl --fail-with-body --silent \
    -H "Authorization: Bearer $SANDBASE_API_KEY" \
    "https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"

Choose your model

Compare models

All image & video models
ModelTypeDefault priceReleased
BFLImage$0.01 / runJan 15, 2026
BFLImage$0.05 / runOct 1, 2026
BFLImage$0.05 / runOct 1, 2026
BFLImage$0.02 / runJan 15, 2026
BFLImage$0.02 / runJan 15, 2026
BFLImage$0.01 / runJan 15, 2026

Questions

FAQ

How do I call BFL Flux 2 Klein 9B Text to Image through SandBase?

Create a SandBase API key, then send requests with the model ID "bfl/flux-2/klein/9b" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

Do I need a separate BFL account?

No. One SandBase API key and balance gives you access to BFL Flux 2 Klein 9B Text to Image and the other models in the catalog; you do not need to sign up with BFL separately.