Text-to-Image Image-to-Image

FLUX.2 Klein 4B BF16

Free Playground & API · $5 to Start

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.

No subscription
No credit card required
HuggingFace

Sample Outputs

Real outputs generated with FLUX.2 Klein 4B BF16 on deAPI.

FLUX.2 Klein 4B BF16 Text-to-Image sample 1 FLUX.2 Klein 4B BF16 Text-to-Image sample 2 FLUX.2 Klein 4B BF16 Text-to-Image sample 3 FLUX.2 Klein 4B BF16 Text-to-Image sample 4 FLUX.2 Klein 4B BF16 Text-to-Image sample 5 FLUX.2 Klein 4B BF16 Text-to-Image sample 6 FLUX.2 Klein 4B BF16 Text-to-Image sample 7 FLUX.2 Klein 4B BF16 Text-to-Image sample 8
/ 8
4 None 1024×576
4 None 1024×576
4 None 1024×576
4 None 1024×576
4 None 576×1024
4 None 1024×576
4 None 1024×576
4 None 1024×576

"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. 8k resolution, shot on 35mm lens, f/1.4, street photography style."

"A breathtaking aerial view of terraced rice fields in Bali at golden hour, lush green paddies reflecting warm sunlight, misty mountains in the background, photorealistic, cinematic composition"

"A modern brutalist concrete building with dramatic geometric shadows, golden hour light casting long shadows across the facade, urban architecture photography, sharp details, 35mm lens"

"A sleek matte black Porsche 911 GT3 RS parked on a rain-soaked Tokyo street at night, neon reflections on wet asphalt, dramatic rim lighting, cinematic automotive photography, 85mm lens, shallow depth of field"

"Close-up portrait of an elderly Japanese man with deep weathered wrinkles, kind eyes, silver hair, wearing a traditional indigo happi coat, soft natural window light, Hasselblad medium format, incredibly detailed skin texture, photorealistic, warm tones"

"A cozy reading nook by a large arched window on a rainy day, overflowing bookshelves, a steaming cup of tea on a wooden side table, warm amber lamp light, a cat sleeping on a velvet cushion, photorealistic interior photography, soft focus background"

"A massive ancient library with towering wooden bookshelves reaching to a vaulted cathedral ceiling, golden sunbeams streaming through stained glass windows illuminating floating dust particles, a spiral staircase in the center, warm amber tones, photorealistic, 8k, wide angle lens, cinematic lighting"

"A lone astronaut standing on the surface of Mars, looking at a dramatic crimson sunset with two small moons visible in the dusty pink sky, footprints in red sand leading to a futuristic habitat dome in the distance, volumetric light rays, sci-fi concept art, photorealistic, cinematic composition, 35mm anamorphic lens"

Capabilities

Model ID: Flux_2_Klein_4B_BF16

What you can do with FLUX.2 Klein 4B BF16.

Text-to-Image

Generate stunning images from text descriptions. From product photography to creative art, turn prompts into high-quality visuals in seconds.

Try it

Image-to-Image

Transform and enhance existing images with AI. Perfect for style transfer, editing, and creative modifications.

Try it

Technical Specifications

Resolution

256–1536 x 256–1536 px (16px steps)

Default Size

1024 x 1024 px

Inference Steps

4 steps (default: 4)

Guidance

Not required

Input Images

Up to 3

How to Use in deAPI

Integrate FLUX.2 Klein 4B BF16 into your app with a single API call.

POST https://api.deapi.ai/api/v1/client/txt2img
curl -X 'POST' \
  'https://api.deapi.ai/api/v1/client/txt2img' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -d '{
    "model": "Flux_2_Klein_4B_BF16",
    "prompt": "a serene mountain landscape at sunset, photorealistic",
    "width": 768,
    "height": 768,
    "steps": 4,
    "seed": -1
}'
{
    "model": "Flux_2_Klein_4B_BF16",
    "prompt": "a serene mountain landscape at sunset, photorealistic",
    "width": 768,
    "height": 768,
    "steps": 4,
    "seed": -1
}

Tip: The API returns a request_id. Use webhooks (recommended) or poll GET /request-status/{'{'}request_id{'}'} for results.

POST https://api.deapi.ai/api/v1/client/img2img
curl -X 'POST' \
  'https://api.deapi.ai/api/v1/client/img2img' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -d '{
    "model": "Flux_2_Klein_4B_BF16",
    "prompt": "transform into watercolor painting style",
    "image": "BASE64_OR_URL",
    "steps": 20,
    "seed": -1
}'
{
    "model": "Flux_2_Klein_4B_BF16",
    "prompt": "transform into watercolor painting style",
    "image": "BASE64_OR_URL",
    "steps": 20,
    "seed": -1
}

Tip: The API returns a request_id. Use webhooks (recommended) or poll GET /request-status/{'{'}request_id{'}'} for results.

Need an API key?

Sign up for free and get $5 in credits to start.

Get $5 credits
Get started with FLUX.2 Klein 4B BF16

Frequently Asked Questions

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.
FLUX.2 Klein is a 4-billion parameter model that handles both text-to-image and image-to-image in a single model. It generates at up to 1536×1536px resolution and supports multi-image input (up to 3 source images) for image editing tasks.
Upload a source image and describe the change you want in natural language — for example "make it sunset" or "add snow to the scene". The model applies the edit while preserving the overall composition. It supports custom output sizes different from the input.
Sign up for a free deAPI account at https://deapi.ai/register and get $5 in free credits — no credit card required. Then open the playground, select FLUX.2 Klein 4B BF16, and generate your first result in seconds.
deAPI is pay-per-use with no subscriptions or monthly fees. Check the pricing page at https://deapi.ai/pricing for current per-generation rates.
Yes. FLUX.2 Klein 4B BF16 is available via the deAPI REST API. Submit a request, receive a request ID, and poll for the result. See the API documentation at https://docs.deapi.ai for code examples in Python, Node.js, and cURL.

Try FLUX.2 Klein 4B BF16 for Free

Get $5 in free credits and start generating with FLUX.2 Klein 4B BF16.

Get $5 credits
No subscription
No credit card required
Pay only for what you use