Black Forest Labs: FLUX.2 [flex]
Access FLUX.2 [flex] AI image generation using Puter.js API.
Get Startedblack-forest-labs/flux.2-flex
Model Card
FLUX.2 Flex is a specialized FLUX.2 variant focused on typography accuracy and fine detail preservation, with a configurable 'steps' parameter for trading off between quality and speed. It exposes advanced controls like guidance and step count for precise diffusion tuning.
Cost Per Image $0.03
per generation
Configuration 1MP
resolution
Release Date May 15, 2025
API Usage Example
Add FLUX.2 [flex] image generation to your app with just a few lines of code.
No backend, no configuration required.
// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';
puter.ai.txt2img("A serene mountain landscape at sunset", {
model: "black-forest-labs/flux.2-flex"
}).then(image => {
document.body.appendChild(image);
});
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.txt2img("A serene mountain landscape at sunset", {
model: "black-forest-labs/flux.2-flex"
}).then(image => {
document.body.appendChild(image);
});
</script>
</body>
</html>
More AI Models From Black Forest Labs
FLUX.2 [klein] 4B
FLUX.2 Klein 4B is a compact, Apache 2.0 licensed model distilled from the full FLUX.2 architecture, capable of sub-second image generation on consumer GPUs with ~13GB VRAM. It supports text-to-image, image editing, and multi-reference generation in a unified model.
ImageFLUX.2 [klein] 9B
FLUX.2 Klein 9B is a larger variant of the Klein family built on a 9B flow model with an 8B Qwen3 text embedder, matching or exceeding models 5x its size in quality. It offers higher output diversity than the 4B distilled variant and is ideal for fine-tuning and research.
ImageFLUX.1 Kontext [dev]
FLUX.1 Kontext Dev is an open-weight 12B parameter model for in-context image generation and editing, allowing prompting with both text and images to modify visual concepts. It was the first open model to deliver proprietary-level image editing performance and runs on consumer hardware.
Frequently Asked Questions
You can access FLUX.2 [flex] by Black Forest Labs through Puter.js AI API. Include the library in your web app or Node.js project and start making calls with just a few lines of JavaScript — no backend and no configuration required.
Yes, it is free if you're using it through Puter.js. With the User-Pays Model, you can add FLUX.2 [flex] to your app at no cost — your users pay for their own AI usage directly, making it completely free for you as a developer.
| Price | |
|---|---|
| Per image | $0.03 |
FLUX.2 [flex] was created by Black Forest Labs and released on May 15, 2025.
Yes — the FLUX.2 [flex] API works with any JavaScript framework, Node.js, or plain HTML through Puter.js. Just include the library and start building. See the documentation for more details.
Get started with Puter.js
Add FLUX.2 [flex] image generation to your app without worrying about API keys or setup.
Read the Docs View Tutorials