Black Forest Labs API
Generate stunning images with Black Forest Labs' FLUX models.
Use Puter.js to access FLUX models with a single API.
Text-to-Image API
Photorealistic Output
Generate images with unprecedented detail quality that rivals real photography.
Image Reference Support
Use reference images for best-in-class character and product consistency.
Advanced Typography
Reliable text rendering for infographics, memes, and UI mockups with exact color matching.
In-Context Editing
Transform and restyle existing images with Kontext models, plus inpainting and outpainting.
Fast Generation
Sub-10-second generation with optimized models. FLUX.1 Schnell generates in 1-4 steps.
Precision Controls
Accurate object positioning, realistic physics, coherent lighting, and proper perspective.
FLUX Models
Access all Black Forest Labs FLUX models through a single API.
FLUX.2 Pro
Professional-grade image generation with excellent quality and prompt adherence.
black-forest-labs/FLUX.2-pro
FLUX.2 Max
State-of-the-art model delivering highest quality and unmatched realism.
black-forest-labs/FLUX.2-max
FLUX.2 Flex
Customizable generation with control over dimensions, seed, and diffusion steps.
black-forest-labs/FLUX.2-flex
FLUX.2 Dev
Development version for testing and experimentation with FLUX.2 capabilities.
black-forest-labs/FLUX.2-dev
FLUX.1.1 Pro
Enhanced FLUX.1 Pro with improved quality and faster generation times.
black-forest-labs/FLUX.1.1-pro
FLUX.1 Pro
Professional FLUX.1 model with high-quality outputs and good prompt following.
black-forest-labs/FLUX.1-pro
FLUX.1 Schnell
Optimized for speed. Generate images quickly without sacrificing quality.
black-forest-labs/FLUX.1-schnell
FLUX.1 Kontext Pro
In-context image editing. Transform and restyle images with text prompts.
black-forest-labs/FLUX.1-kontext-pro
FLUX.1 Kontext Max
Maximum quality in-context editing for professional image transformations.
black-forest-labs/FLUX.1-kontext-max
FLUX.1 Kontext Dev
Development version of Kontext for testing image editing workflows.
black-forest-labs/FLUX.1-kontext-dev
FLUX.1 Dev
Development model for experimenting with FLUX.1 base capabilities.
black-forest-labs/FLUX.1-dev
FLUX.1 Dev LoRA
LoRA-enabled development model for fine-tuning and custom adaptations.
black-forest-labs/FLUX.1-dev-lora
FLUX.1 Krea Dev
Krea-optimized development model for creative applications.
black-forest-labs/FLUX.1-krea-dev
Generate Images in Seconds
Add FLUX image generation to your app with just a few lines of code.
No API keys, no backend, no configuration required.
<html>
<body>
<h1>FLUX Image Generation</h1>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.txt2img(
"A cyberpunk cityscape with neon lights and flying vehicles",
{ model: "black-forest-labs/FLUX.1-schnell" }
)
.then(imageElement => {
document.body.appendChild(imageElement);
});
</script>
</body>
</html>
Related Resources
Learn how to use FLUX and other image generation models with Puter.js.