Use this file to discover all available pages before exploring further.
MCP
API
Most modern MCP clients can connect to https://mcp.bfl.ai directly and handle the OAuth flow on their own — pick your client from the tabs below.For stdio-only or OAuth-incompatible clients (for example Hermes), use the mcp-remote fallback tab. It runs locally, handles the browser OAuth flow, refreshes tokens for you, and exposes FLUX as a normal stdio server.
Start generating AI images with FLUX in three steps: create an account, add credits, and make your first API call.
1
Create your account
Go to dashboard.bfl.ai and register your account. You’ll need to confirm your email before logging in.
When you create your account, we automatically set up:
A Default Organization - your workspace for managing team members and billing
A Default Project - where your API keys and usage are tracked
Organizations group your team and billing. Projects isolate your work with separate API keys and usage tracking. Think of organizations as your company and projects as different apps or environments.
Prefer an interactive experience? Use our Dashboard Quickstart to create your API key and make your first call.
Navigate to API → Keys in your project sidebar and click Add Key.
Give your API key a descriptive name that helps you identify its purpose later, like “Production App” or “Testing Environment”. Each API key is scoped to its project.
4
Copy your API key
Your new API key will be displayed. Copy it now - for security reasons, you won’t be able to see the full key again.
Your API key is only shown once when created. Make sure to copy and store it securely before closing the dialog.
5
Set up your environment
Add your API key to your environment variables:
export BFL_API_KEY="your_api_key_here"
Or store it securely in your application’s configuration.
Keep your API key secure and never expose it in client-side code. Treat it like a password!
6
Make your first API call
Generate your first image with FLUX.2. See the image generation guide for complete code examples in Python, TypeScript, and cURL.
Want to skip the code? Try our Playground to generate images directly in your browser.