# FLUX.2 Klein 4B BF16

`Flux_2_Klein_4B_BF16` · Black Forest Labs · Image Generation & Editing

256–1024px resolution (16px steps). Default: 1024×1024, 4 steps. Guidance: 1.0 (fixed). Unified model for generation and multi-reference editing. Sub-second inference.

[Model page](https://runstage.dev/models/flux2-klein-4b-bf16) · [JSON](https://runstage.dev/models/flux2-klein-4b-bf16.json) · [Catalog](https://runstage.dev/pricing) · [Playground](https://runstage.dev/playground?model=Flux_2_Klein_4B_BF16)

## Technical summary

- **Exact API model slug**: `Flux_2_Klein_4B_BF16`
- **Developer**: Black Forest Labs
- **Inference types**: `txt2img`, `img2img`
- **Infrastructure**: Direct GPU Fleet
- **Headline rate**: $0.00243 / 512×512 (4 steps) (Resolution × steps)
- **Free quote endpoint**: `POST https://runstage.dev/api/v2/quote`

## Runstage routes

- **Text to Image** (`txt2img`): `POST /api/v2/quote` · `POST /api/v2/run` · `GET /api/v2/jobs/{request_id}` · `GET /api/v2/jobs/{request_id}/output` · `MCP runstage_generate_media`
- **Image Edit** (`img2img`): `POST /api/v2/quote` · `POST /api/v2/run` · `GET /api/v2/jobs/{request_id}` · `GET /api/v2/jobs/{request_id}/output`

## Best for

- Run FLUX.2 Klein 4B BF16 via unified v2 jobs with free pre-run /price quotes
- Drop-in compatible with the OpenAI SDK via the OpenAI-compatible gateway
- Low-latency pay-as-you-go inference on direct GPU capacity

## Billing notes

Supports up to 3 input images for editing; 256–1536px in steps of 16.

## Quickstart (cURL)

```bash
# 1. Free pre-run retail quote
curl -X POST 'https://runstage.dev/api/v2/quote' \
  -H "Content-Type: application/json" \
  -d '{"model":"Flux_2_Klein_4B_BF16","width":1024,"height":1024,"steps":4}'

# 2. Submit metered job
curl -X POST 'https://runstage.dev/api/v2/run' \
  -H "Authorization: Bearer $RUNSTAGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{   "model": "Flux_2_Klein_4B_BF16",   "prompt": "A cinematic, hyper-realistic eye-level shot through a rainy coffee shop window at night. Condensation on the glass is partially wiped away to reveal the handwritten text '\''KLEIN 4B'\'' clearly written in the moisture. Through the clear glass, a warm, cozy interior is visible with soft bokeh lights. Outside, reflections of blue and pink neon city lights dance on the wet glass droplets. Incredible texture detail on the water drops and glass surface. 8k resolution, shot on 35mm lens, f/1.4, street photography style.",   "width": 1024,   "height": 1024,   "steps": 4,   "seed": 42 }'

# Optional: switch to image editing (img2img) by uploading multipart -F "image=@input.png"
# curl -X POST 'https://runstage.dev/api/v2/run' -H "Authorization: Bearer $RUNSTAGE_API_KEY" --form-string 'model=Flux_2_Klein_4B_BF16' --form-string 'prompt=A cinematic, hyper-realistic eye-level shot through a rainy coffee shop window at night. Condensation on the glass is partially wiped away to reveal the handwritten text '\''KLEIN 4B'\'' clearly written in the moisture. Through the clear glass, a warm, cozy interior is visible with soft bokeh lights. Outside, reflections of blue and pink neon city lights dance on the wet glass droplets. Incredible texture detail on the water drops and glass surface. 8k resolution, shot on 35mm lens, f/1.4, street photography style.' -F "image=@input.png"

# 3. Poll owner-scoped job result until status is "done" or "failed"
curl -H "Authorization: Bearer $RUNSTAGE_API_KEY" \
  'https://runstage.dev/api/v2/jobs/<request_id>'
```
