black-forest-labs/flux-2-klein-4b 🔢🖼️📝✓❓ → 🖼️

⭐ Official ▶️ 17.8M runs 📅 Jan 2026 ⚙️ Cog 0.16.9 🔗 GitHub ⚖️ License
image-consistant-object-generation image-consistent-character-generation image-to-image text-to-image

About

Very fast image generation and editing model. 4 steps distilled, sub-second inference for production and near real-time applications.

Example Output

Prompt:

"A surreal underwater or cosmic garden scene with bioluminescent flora against a deep navy blue to black background. Delicate, feather-like structures in pale icy blue and white emerge from the left side, resembling ethereal ferns or coral fronds with intricate fractal patterns. These luminous fronds transition into a cloud-like dispersal of particles and spores floating through the dark space, creating a dreamy, ethereal atmosphere. On the right side, dense clusters of vegetation in deep greens, blues, and purple-pink tones form an organic canopy. The foliage includes pine-like needles, flowering bushes in blue and magenta hues, and various plant forms creating depth and texture. Small glowing particles and orbs of light are scattered throughout the scene like floating pollen or bioluminescent plankton. The overall composition creates a mystical, otherworldly environment that blends elements of deep sea bioluminescence with alien botanical landscapes. Cinematic lighting with cool color palette dominated by blues, teals, and deep greens. Photorealistic rendering with soft focus effects and atmospheric depth. With large white text in the center: "FLUX.2 [klein] 4B""

Output

Example output

Performance Metrics

0.45s Prediction Time
0.46s Total Time
All Input Parameters
{
  "images": [],
  "prompt": "A surreal underwater or cosmic garden scene with bioluminescent flora against a deep navy blue to black background. Delicate, feather-like structures in pale icy blue and white emerge from the left side, resembling ethereal ferns or coral fronds with intricate fractal patterns. These luminous fronds transition into a cloud-like dispersal of particles and spores floating through the dark space, creating a dreamy, ethereal atmosphere. On the right side, dense clusters of vegetation in deep greens, blues, and purple-pink tones form an organic canopy. The foliage includes pine-like needles, flowering bushes in blue and magenta hues, and various plant forms creating depth and texture. Small glowing particles and orbs of light are scattered throughout the scene like floating pollen or bioluminescent plankton. The overall composition creates a mystical, otherworldly environment that blends elements of deep sea bioluminescence with alien botanical landscapes. Cinematic lighting with cool color palette dominated by blues, teals, and deep greens. Photorealistic rendering with soft focus effects and atmospheric depth. With large white text in the center: \"FLUX.2 [klein] 4B\"",
  "go_fast": false,
  "aspect_ratio": "1:1",
  "output_format": "jpg",
  "output_quality": 95,
  "output_megapixels": "1"
}
Input Parameters
seed Type: integer
Random seed. Set for reproducible generation
images Type: arrayDefault:
List of input images for image-to-image generation. Maximum 5 images. Must be jpeg, png, gif, or webp.
prompt (required) Type: string
Text prompt for image generation.
go_fast Type: booleanDefault: false
Run faster predictions with additional optimizations.
aspect_ratio Default: 1:1
Aspect ratio for the generated image. Use 'match_input_image' to match the aspect ratio of the first input image.
output_format Default: jpg
Format of the output images
output_quality Type: integerDefault: 95Range: 0 - 100
Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs.
output_megapixels Default: 1
Resolution of the output image in megapixels
disable_safety_checker Type: booleanDefault: false
Disable safety checker for generated images.
Output Schema

Output

Type: arrayItems Type: stringItems Format: uri

Example Execution Logs
Using seed: 1172312364
Generating 1024x1024 image (1.00 MP, 1:1) ...
Generation took 0.42s
Version Details
Version ID
8e9c42d77b10a2a41af823ac4500f7545be6ebc4e745830fc3f3de10de200542
Version Created
January 15, 2026
Run on Replicate →