Skip to main content
Model logo

Flux.2 Klein 9B API

  • Image
Click or drag & dropPNG, JPG, WEBP, GIF · Max 100MB
Output

Your generated image will appear here

Flux.2 Klein 9B

What is Flux.2 Klein 9B?

Flux.2 Klein 9B is the larger of the two Klein variants in the Flux.2 family, at about 9 billion parameters. The control surface matches Klein 4B exactly: a prompt, seven aspect ratios (21:9, 16:9, 4:3, 1:1, 3:4, 9:16, 9:21), four resolution presets up to 4MP, optional image_urls for reference, and an integer seed for reproducibility. Klein models skip guidance, steps, and prompt_upsampling, which keeps the call shape simple. The extra capacity over 4B shows up most at higher megapixel outputs, where fine detail and prompt adherence on busy scenes have more room to land.

Key features of Flux.2 Klein 9B

Five features cover what you'll touch in a real production run.

Middle Klein variant for detail and speed

About 9 billion parameters. More fine-detail headroom than Klein 4B, lower latency than Flex or Pro. The right point on the curve when you want Flux.2 quality without the slowest variant.

Seven aspect ratios on one model

21:9, 16:9, 4:3, 1:1, 3:4, 9:16, and 9:21. Cover the same brief horizontally, vertically, and squarely without re-prompting per platform. Default is 16:9.

Four resolution presets up to 4MP

0.6mp, 1mp, 2mp, 4mp. The same prompt scales across presets without changing. Higher resolutions are where Klein 9B pulls ahead of 4B on fine detail.

Reference image support

Pass one or more URLs as `image_urls` and the model uses them as guidance. Useful for keeping product geometry, character continuity, or a palette consistent across runs.

Reproducible output via seed

Pass an integer `seed` and the same prompt, references, aspect ratio, and resolution return the same image. Useful for regression tests and locking a result you want to keep.

Best for

Interactive tools

Lower latency than Flex or Pro with stronger fine-detail than Klein 4B. Good for editors and design tools where the user expects sub-render-second responsiveness.

Storyboards and concept boards

Many frames per minute with consistent aspect ratios. Lock a seed across the storyboard so the look stays consistent panel to panel.

Style and prompt probes

Tweak prompts quickly before spending money on a heavier variant. The 9B headroom catches detail issues early.

Catalog drafts

Placeholder imagery for product pages and seasonal launches before a final pass on Flex or Pro. Reference images keep brand geometry tight.

High-volume thumbnail grids

0.6mp or 1mp at 1:1 across many seeds gives a contact-sheet view of a prompt without committing to a single result.

Pipeline integration

Drop into a content pipeline that already runs on Flux.2. Same prompt vocabulary, same reference shape, same seed semantics.

Use cases

Add Klein 9B to a design tool's draft pane and let users tweak prompts at 1MP before stepping up to a 4MP final pass. Build a storyboard generator that locks one seed across panels and varies only the prompt, so character and palette stay consistent through the sequence. Run a catalogue draft pipeline with reference images anchoring product geometry, then re-render the winners on Flex or Pro for delivery. Spin up a contact-sheet view by re-running the same prompt across six seeds at 0.6mp and presenting the result to a reviewer.

API examples

Call Flux.2 Klein 9B from any language by POSTing to /v1/tasks. Full parameter docs live at docs.unifically.com/models/image/flux/flux.2-klein-9b.

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "black-forest-labs/flux.2-klein-9b",
    "input": {
      "prompt": "A minimalist line drawing of a mountain landscape",
      "aspect_ratio": "16:9",
      "resolution": "1mp"
    }
  }'

Successful submission returns a task_id. Poll GET /v1/tasks/<task_id> or set a callback_url on the request to receive the finished image URL.

FAQs

People also ask

Flux.2 Klein 9B is the larger variant in the Flux.2 Klein line, with about 9 billion parameters. It produces images from a prompt at one of seven aspect ratios and four resolution presets, with optional reference images and a reproducible seed. More headroom on fine detail than 4B, with the same call shape.

Five. prompt, aspect_ratio (21:9, 16:9, 4:3, 1:1, 3:4, 9:16, 9:21), resolution (0.6mp, 1mp, 2mp, 4mp), optional image_urls for reference, and an optional integer seed. Klein models do not expose Flux's guidance, steps, or prompt_upsampling knobs.

Seven. 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, and 9:21. The default is 16:9. Useful for cross-platform sets where the same prompt has to render horizontally, vertically, and squarely.

Four. 0.6 megapixels, 1 megapixel (default), 2 megapixels, and 4 megapixels. Pick smaller resolutions for grids and thumbnails; pick 4MP for hero crops and final delivery.

Yes. Set image_urls to one or more URLs and the model uses them to guide the output. Useful for product geometry, character continuity, or palette anchoring across runs.

Yes. Pass an integer seed alongside the prompt. Re-sending the same prompt, references, aspect ratio, resolution, and seed returns the same image.

When the prompt covers complex multi-element scenes, when prompt adherence at 4MP needs more capacity than Klein offers, or when you need Flex-style guidance and steps knobs that Klein does not expose.