FLUX 3 Klein Text to Image API

blackforestlabs/flux-3-klein/text-to-image
1K · 2K · 4K

FLUX 3 Klein Text to Image turns prompts into product shots, scenes and illustrations at 1K, 2K or 4K, with seven presets, exact custom sizes and up to four images per call. It keeps per-image cost low so you can iterate widely before rendering finals.

Get API Key
Input
Required
Optional
Optional
Optional
Optional
Optional
OutputReady

Estimated cost: 1.8 credits · $0.0090

Credits are reserved when the task is submitted and refunded in full if it fails.

Continue using

Examples

output-01.jpg

A cinematic wide photograph of a small fishing harbour at dawn, pastel houses along the quay, still water reflections, thin mist, a single rowing boat in the foreground, soft pink and teal light. No brand names, logos, watermark, split screen or comparison panels.

output-01.png

A layered paper-craft illustration of a lighthouse on a cliff under a starry sky, cut-paper waves in five shades of blue, warm beam of light, vertical book-cover composition with empty space at the top. No brand names, logos, watermark, split screen or comparison panels.

FLUX 3 Klein Text to Image

FLUX 3 Klein is the compact model in Black Forest Labs' FLUX 3 family, a 5.6B-parameter generator that handles both text-to-image and editing. The Text to Image endpoint takes a prompt, renders one to four images at a 1K, 2K or 4K tier and returns PNG, JPEG or WebP files. Starting at 1.8 credits per image, it suits high-volume catalogues, concept rounds and apps that need a fast default image model.

Why Choose FLUX 3 Klein Text to Image?

  • Low cost per image1K images cost 1.8 credits, 2K 2.8 and 4K 7.2, so large batches and exploratory rounds stay inexpensive.

  • 1K to 4K outputDraft at 1K and render the chosen prompt at 2K or 4K by changing a single field.

  • Presets or exact pixel sizesUse seven aspect ratios or a custom WIDTHxHEIGHT from 256 to 4096 px per side in multiples of 16 to fit a fixed slot.

  • Up to four images per callSet n from 1 to 4 and choose PNG, JPEG or WebP for the delivery format you need.

  • Pairs with FLUX 3 Klein EditThe same model edits and combines up to ten images at the same price, so generated results can be refined without switching providers.

Parameters

ParameterRequirementDescription
promptRequired

Non-blank text describing the image.

sizeOptional

Preset 1:1, 4:3, 3:4, 16:9, 9:16, 3:2 or 2:3 (long edge set by resolution), or WIDTHxHEIGHT with each side 256–4096 in multiples of 16.

Default1:1
resolutionOptional

1K, 2K or 4K; presets use a long edge of 1024, 2048 or 4096. A custom size must send the tier of its longer side: ≤1024 → 1K, ≤2048 → 2K, otherwise 4K.

Default1K2K4K
nOptional

Number of images, integer 1–4.

Default1
output_formatOptional

png, jpeg or webp.

Defaultpngjpegwebp
enable_safety_checkerOptional

Boolean. Turns the upstream safety checker on or off.

Defaulttrue

How to Use

  1. Write the promptDescribe subject, setting, lighting and style in plain sentences.

  2. Choose size and resolutionPick a preset ratio and a tier, or enter WIDTHxHEIGHT and the resolution that matches its longer side.

  3. Submit the taskSend model blackforestlabs/flux-3-klein/text-to-image with the input object and keep the task_id.

  4. Collect the imagesPoll the status endpoint or use callback_url, then read the image URLs from files.

Usage and Pricing

Billed per output image by resolution. Total credits = rate × n. 1 credit = $0.005.

Generation and editing cost the same, and input images are not billed. Credits are reserved on submission and refunded in full if the task fails. Example: 4 images at 2K = 11.2 credits ($0.056).

Usage and Pricing
OptionCredits / imageUSD / image
1K1.8$0.009
2K2.8$0.014
4K7.2$0.036

Best Use Cases

  • Catalogue and product imageryProduce consistent product and lifestyle shots in volume at 1K or 2K.

  • Concept explorationGenerate many directions cheaply at 1K, then render the selected prompt at 4K.

  • Social and ad formatsOutput 1:1, 9:16 and 16:9 variants of one idea for different placements.

  • Default model for appsGive users fast, low-cost generation with a matching edit endpoint for follow-up changes.

Pro Tips

  • Explore at 1K with n set to 4, then rerun the strongest prompt at 2K or 4K.
  • For a fixed layout slot, send an exact WIDTHxHEIGHT such as 1536x1024 together with resolution 2K.
  • Choose jpeg or webp when file size matters, and png when you need lossless output.
  • Move follow-up changes to FLUX 3 Klein Edit by passing the generated image as image_urls.

Notes

  • This endpoint accepts text only; image_urls belongs to FLUX 3 Klein Edit and returns 400 here.
  • A custom size without a matching explicit resolution is rejected, for example 1536x1024 must be sent with 2K.
  • Prompt expansion is always applied upstream.

Related Models

FLUX 3 Klein Text to Image API FAQ

What is the FLUX 3 Klein Text to Image API?

FLUX 3 Klein Text to Image is a Black Forest Labs model for generating images from written prompts. It renders product shots, scenes and illustrations at 1K, 2K or 4K, in seven preset ratios or exact custom sizes, with up to four images per request in PNG, JPEG or WebP. As the compact 5.6B-parameter member of the FLUX 3 family, it keeps per-image cost low while sharing a model with the matching edit endpoint. You can call it programmatically or try it from the playground above.

How much does FLUX 3 Klein Text to Image cost?

Per output image: 1K 1.8 credits ($0.009), 2K 2.8 credits ($0.014) and 4K 7.2 credits ($0.036). The total is the rate multiplied by n.

How do custom sizes map to resolution in FLUX 3 Klein Text to Image?

By the longer side: up to 1024 px needs 1K, up to 2048 px needs 2K, and up to 4096 px needs 4K. Send resolution explicitly; for example 1536x1024 requires 2K.

Which aspect ratios does FLUX 3 Klein Text to Image support?

Presets 1:1, 4:3, 3:4, 16:9, 9:16, 3:2 and 2:3, or any WIDTHxHEIGHT with sides from 256 to 4096 px in multiples of 16.

How many images can FLUX 3 Klein Text to Image return per request?

Set n from 1 to 4. Each image is billed at the selected resolution rate.

Can FLUX 3 Klein Text to Image use reference images?

No. This endpoint accepts a prompt only. To work from existing pictures, use FLUX 3 Klein Edit with 1–10 images in image_urls.

Which output formats does FLUX 3 Klein Text to Image offer?

png (default), jpeg or webp, selected with output_format.

Why use the FLUX 3 Klein Text to Image API instead of self-hosting?

The API needs no GPU provisioning, includes 4K output and bills only per image. Self-hosting the open weights is governed by the licence on Black Forest Labs' model card, which you should review for your use.