About FLUX.2 Klein 9B
FLUX.2 Klein 9B can support a compact image drafting tool with a separate revision path for source pictures. Plain scene descriptions work for creation; edit instructions describe changes and preserved elements. The isometric coffee shop and countryside cyclist examples give creation fixtures, while Photo to pencil demonstrates a stylized revision. Keep these operations distinct in your request builder even when the same project offers both.
Call it with the model name black-forest-labs/flux-2-klein-9b/text-to-image on POST /jobs/createTask, from $0.011.
Introduction
FLUX.2 [klein] 9B Text to image is Black Forest Labs' small, fast image model, released on 15 January 2026, generating pictures from a written prompt.
Choose a mode by starting material
| What you have | Mode |
|---|---|
| a written brief | FLUX.2 Klein 9B Text to image |
| images to change | FLUX.2 Klein 9B Edit |
Key features
Fast enough to iterate
It is the quick end of the FLUX.2 line.
Text and look sheets
Quote a header or a sign and it is usually rendered as written. One prompt can also lay out several looks of the same person in a grid. Neither is guaranteed on every seed.
Request parameters
| Parameter | Required | Description |
|---|---|---|
seed | No | Use the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647 |
prompt | Yes | Describe what you want to make. |
resolution | No | Choose an available output size. 1k · 2k · Default: 1k |
aspect_ratio | No | The shape of the frame: wide, square or tall. 1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 · 2:3 · 21:9 · 9:21 · Default: 1:1 |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per image |
|---|---|
| resolution 1K | $0.011 |
| resolution 2K | $0.0122 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
Use cases
Batches of variations
Many takes on one idea, to pick from or to feed into an edit.
Character look sheets
Several outfits of one character in a single frame.
Drafts for larger models
Settle on composition here before spending on a bigger model.
Prompt guide & pro tips
Say what the people wear
Garment, cut and how it sits. Without it the model fills in clothing by itself.
Quote text and keep it short
A few words per line render best. If a word is wrong, change the seed.
Do not rely on exact hex colours
A hex value gets you the right direction, not the exact shade.
Try three seeds
Small models vary. Hands and fine text improve with a second or third try.
API quick start
Call the FLUX.2 Klein 9B API in three steps
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
- Send the request. POST /jobs/createTask with model black-forest-labs/flux-2-klein-9b/text-to-image and an input object that follows the parameter table. The response returns a task ID straight away.
- Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "black-forest-labs/flux-2-klein-9b/text-to-image",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"aspect_ratio": "1:1",
"resolution": "1k"
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.
What to build with the FLUX.2 Klein 9B API
- Implement a concept sketch collection that stores the subject, environment and chosen canvas ratio with each generated still. An approved output should remain a durable project asset rather than depend on a future regeneration attempt.
- Offer a visual style revision button using source images. Link the revised image to its earlier version and keep the prompt alongside it, allowing an editor to trace the transformation without searching raw job history.
FLUX.2 Klein 9B parameter notes
- Creation resolution accepts 1k or 2k. The catalog describes the larger tier by its long side, so avoid translating a tier name into an assumed fixed square dimension. aspect_ratio independently selects the shape.
- Both routes accept a bounded optional integer seed. Use that value to organize comparisons while keeping the whole prompt and other settings saved. This schema does not expose a format selector or a negative_prompt field.
- Editing requires image_urls and supports an auto ratio, unlike creation. When auto is used the source shape is retained; the resolution control is described in relation to an explicit ratio. Do not promise the same framing behavior for every combination of these fields.
How FLUX.2 Klein 9B API pricing adds up
Text-to-image uses size-dependent per-image rows, while image-to-image has a separate per-image rate without those creation size rows. Quote the selected task itself instead of applying the creation resolution multiplier to every operation. Reserve the currently approved USD maximum and read final costUsd for reporting once the image job reaches completion.
- resolution 1k: $0.011 per run, $1.10 for 100 runs
- resolution 2k: $0.0122 per run, $1.22 for 100 runs
Async jobs, webhooks and rate limits
Every FLUX.2 Klein 9B request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for black-forest-labs/flux-2-klein-9b/text-to-image never runs or bills twice.
Common FLUX.2 Klein 9B API errors
| errorCode | What it usually means and how to fix it |
|---|---|
invalid_request | Check which task is being submitted, its ratio enum and the prompt bound. Do not send auto for text generation or unsupported output_format controls. |
invalid_asset | For a revision, ensure image_urls contains accessible image assets in the intended order. Repair the source rather than converting the same request silently into text generation. |
generation_failed | Keep the submitted revision and any source images available for review. Surface the failure before offering another take so users can intentionally decide whether to rerender. |
FLUX.2 Klein 9B price on other platforms
| Options | fal | Replicate | |
|---|---|---|---|
| 2K | −80% vs Replicate$0.0122/ image | $0.0240/ image | $0.0629/ image |
Each platform's public API list price for the same model and settings, checked Nov 3, 2026.
FLUX.2 Klein 9B API questions
How much does the FLUX.2 Klein 9B API cost?
FLUX.2 Klein 9B starts at $0.011 per image with Create Image, its lowest-priced task. Prices by option: 1K $0.011 per image, 2K $0.0122 per image. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
What is the model name for FLUX.2 Klein 9B in the API?
Put black-forest-labs/flux-2-klein-9b/text-to-image for Create Image; black-forest-labs/flux-2-klein-9b/edit for Edit Image in the model field of POST /jobs/createTask.
Can both operations use the same quote calculation?
They need task-specific quotes. Creation has resolution rate rows, while editing uses its own image unit. Let the server quote determine the actual USD acceptance amount.
How do I attach a revision to its draft?
Persist your version identifier beside taskId, then resolve output through recordInfo or a verified callback. Match the completion to that identifier rather than the image currently selected in the interface.
Can I set the exported image codec?
There is no output_format property in this model's published schema. Do not imply that a generic export selector controls generation; any later file conversion belongs to your application.
What are the limits of the FLUX.2 Klein 9B API?
Resolutions: 1K · 2K; Aspect ratios: 1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 +3; Prompt length (characters): 5,000. Requests outside these limits are rejected before anything is charged.
Can I try FLUX.2 Klein 9B without writing code?
Run FLUX.2 Klein 9B in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.
All FLUX models
FLUX.2 Pro and Max render text and fine detail more reliably; Klein 9B is much faster and cheaper per image.
- FLUX.2 Max APITop-tier FLUX: photoreal light and exact brand colorsFrom $0.07 per image
- FLUX.3 Image APIBlack Forest Labs' photoreal model: 1024×1024 square images and 4-image editsFrom $0.0408 per image
- FLUX 3 Klein Base LoRA APIFLUX 3 Klein Base that loads your own LoRAsFrom $0.042 per image
- FLUX 3 Klein Base APIFull-quality FLUX 3 Klein images and edits up to 2KFrom $0.036 per image
- FLUX 3 APIVideo with synced sound and a quick draft tierFrom $0.30 for a 5-second clip
- FLUX.2 Klein 9B LoRA APIFast FLUX.2 Klein 9B that loads up to three of your LoRAsFrom $0.018 per image
- FLUX.2 Klein Base 9B LoRA APIUndistilled Klein 9B for varied looks with your LoRAsFrom $0.024 per image
- FLUX.2 Klein 4B LoRA APISmall, quick FLUX.2 Klein 4B with your own LoRAsFrom $0.0156 per image
- FLUX.2 Klein Base 4B LoRA APIUndistilled Klein 4B that loads your own LoRAsFrom $0.018 per image
- FLUX.2 Klein 9B APIFast FLUX edits that keep faces and poses intactFrom $0.011 per image
- FLUX.2 Klein 4B APIThe smallest, quickest FLUX for rapid draftsFrom $0.0093 per image
- FLUX.2 Dev LoRA APIFLUX.2 Dev images and edits with your own LoRAsFrom $0.0216 per image
- FLUX.2 Pro APIPhotoreal images with readable text and hex color controlFrom $0.03 per image
- FLUX.2 Flex APISpells headlines and labels exactly as writtenFrom $0.0578 per image
- FLUX.2 Dev APIOpen-weights FLUX that can merge people into one sceneFrom $0.0116 per image
- FLUX.1 Krea Dev LoRA APIPhotographic FLUX.1 Krea with your own LoRAsFrom $0.024 per image
- FLUX.1 Kontext Max APIPremium Kontext for busy scenes, detailed lettering and whole-image restylesFrom $0.056 per image
- FLUX.1 Kontext Pro APIDraw a scene from text, then edit faces, outfits and lettering in placeFrom $0.028 per image
- FLUX.1 Dev ControlNet LoRA APIPose, depth or edge control on FLUX.1 with your LoRAsFrom $0.036 per image
- FLUX.1 Fill Dev LoRA APIMasked inpainting on FLUX.1 Fill with your own LoRAsFrom $0.042 per image
- FLUX.1 Dev LoRA APIClassic FLUX.1 Dev with up to three of your LoRAsFrom $0.018 per image
- FLUX.1 Schnell LoRA APIFast FLUX.1 Schnell that loads your own LoRAsFrom $0.006 per image
More about FLUX.2 Klein 9B
- Endpoints
- FLUX.2 Klein 9B · Edit Image