Black Forest Labs FLUX API
Access Black Forest Labs FLUX instantly with Puter.js, and add AI to any app in a few lines of code without backend or API keys.
// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';
puter.ai.txt2img("A beautiful sunset", {
model: "black-forest-labs/FLUX.1-schnell"
}).then(imageElement => {
document.body.appendChild(imageElement);
});
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.txt2img("A beautiful sunset", {
model: "black-forest-labs/FLUX.1-schnell"
}).then(imageElement => {
document.body.appendChild(imageElement);
});
</script>
</body>
</html>
List of Black Forest Labs FLUX Models
black-forest-labs/FLUX.1-kontext-dev
black-forest-labs/flux.1-kontext-dev
black-forest-labs/FLUX.1-kontext-max
black-forest-labs/flux.1-kontext-max
black-forest-labs/FLUX.1-kontext-pro
black-forest-labs/flux.1-kontext-pro
black-forest-labs/FLUX.2-dev
black-forest-labs/flux.2-dev
black-forest-labs/FLUX.2-flex
black-forest-labs/flux.2-flex
black-forest-labs/FLUX.2-max
black-forest-labs/flux.2-max
black-forest-labs/FLUX.2-pro
black-forest-labs/flux.2-pro
black-forest-labs/FLUX.1.1-pro
black-forest-labs/flux.1.1-pro
black-forest-labs/FLUX.1-dev
black-forest-labs/flux.1-dev
black-forest-labs/FLUX.1-dev-lora
black-forest-labs/flux.1-dev-lora
black-forest-labs/FLUX.1-krea-dev
black-forest-labs/flux.1-krea-dev
black-forest-labs/FLUX.1-pro
black-forest-labs/flux.1-pro
black-forest-labs/FLUX.1-schnell
black-forest-labs/flux.1-schnell
Frequently Asked Questions
The Black Forest Labs FLUX API gives you access to models for AI image generation. Through Puter.js, you can start using Black Forest Labs FLUX models instantly with zero setup or configuration.
Puter.js supports a variety of Black Forest Labs FLUX models, including black-forest-labs/FLUX.1-kontext-dev, black-forest-labs/FLUX.1-kontext-max, black-forest-labs/FLUX.1-kontext-pro, and more. Find all AI models supported by Puter.js in the AI model list.
With the User-Pays model, users cover their own AI costs through their Puter account. This means you can build apps without worrying about infrastructure expenses.
Puter.js is a JavaScript library that provides access to AI, storage, and other cloud services directly from a single API. It handles authentication, infrastructure, and scaling so you can focus on building your app.
Yes — the Black Forest Labs FLUX API through Puter.js works with any JavaScript framework, Node.js, or plain HTML. Just include the library and start building. See the documentation for more details.