Skip to main content
FLUX AI Image Generation 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.
BFL API registration page
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.
2

Add credits to your account

Credits power all API and Playground usage.
Simple pricing: 1 credit = $0.01 USD
To add credits:
  1. Go to dashboard.bfl.ai
  2. In your organization sidebar, navigate to API → Credits
  3. Click Add Credits
  4. Choose your amount and complete payment via Stripe
Add credits button in dashboard
Credits are available immediately after payment. Start with $10-20 to experiment with different models.
Full credits & billing guide
3

Create your API key

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.
Click Add Key to create API access
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.
Copy your API key
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 for complete code examples in Python, TypeScript, and cURL.
Want to skip the code? Try our Playground to generate images directly in your browser.
See our full pricing page for complete details or use the pricing calculator.

Next Steps