> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bfl.ml/llms.txt
> Use this file to discover all available pages before exploring further.

# Quick Start

> Get started with the FLUX API in minutes. Create your account, add credits, set up your API key, and generate your first image.

<img noZoom src="https://cdn.sanity.io/images/2gpum2i6/production/7a2a3a2a8d594db99b03a24b413a3f59da2f7e9e-2401x1284.jpg?w=1284&h=512&fit=crop&auto=format" style={{ borderRadius: '24px' }} alt="FLUX AI Image Generation" />

Start generating AI images with FLUX in three steps: create an account, add credits, and make your first API call.

<Steps>
  <Step title="Create your account">
    Go to [dashboard.bfl.ai](https://dashboard.bfl.ai) and register your account. You'll need to confirm your email before logging in.

    <Frame caption="Register on our platform">
      <img src="https://cdn.sanity.io/images/2gpum2i6/production/b8fdb612d1a9f6e05d874ed348035be6b213f37f-458x577.jpg" alt="BFL API registration page" />
    </Frame>

    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

    <Tip>
      **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.
    </Tip>
  </Step>

  <Step title="Add credits to your account">
    Credits power all API and Playground usage.

    <Info>
      **Simple pricing:** 1 credit = \$0.01 USD
    </Info>

    **To add credits:**

    1. Go to [dashboard.bfl.ai](https://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

    <Frame caption="Click Add Credits to purchase">
      <img src="https://cdn.sanity.io/images/2gpum2i6/production/b54ba89a056e4dfca58796c31cd1b20b74b44777-533x262.jpg" alt="Add credits button in dashboard" />
    </Frame>

    <Tip>
      Credits are available immediately after payment. Start with \$10-20 to experiment with different models.
    </Tip>

    [Full credits & billing guide](/account_management/credits_billing)
  </Step>

  <Step title="Create your API key">
    <Info>
      **Prefer an interactive experience?** Use our [Dashboard Quickstart](https://dashboard.bfl.ai/get-started) to create your API key and make your first call.
    </Info>

    Navigate to **API → Keys** in your project sidebar and click **Add Key**.

    <Note>
      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.
    </Note>

    <Frame caption="Create your FLUX API key">
      <img src="https://cdn.sanity.io/images/2gpum2i6/production/e2bcb3baf7581033da4a6d1009620876c3391b0d-1056x510.png" alt="Click Add Key to create API access" />
    </Frame>
  </Step>

  <Step title="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.

    <Warning>
      Your API key is only shown once when created. Make sure to copy and store it securely before closing the dialog.
    </Warning>

    <Frame caption="Copy your API key - it's only shown once">
      <img src="https://cdn.sanity.io/images/2gpum2i6/production/0c02795975ab4f7f0ac953ccf0f9745ecd5c2cb4-1516x708.png" alt="Copy your API key" />
    </Frame>
  </Step>

  <Step title="Set up your environment">
    Add your API key to your environment variables:

    ```bash theme={null}
    export BFL_API_KEY="your_api_key_here"
    ```

    Or store it securely in your application's configuration.

    <Tip>
      Keep your API key secure and never expose it in client-side code. Treat it like a password!
    </Tip>
  </Step>

  <Step title="Make your first API call">
    Generate your first image with FLUX.2. See the [image generation guide](/quick_start/generating_images) for complete code examples in Python, TypeScript, and cURL.

    <Tip>
      Want to skip the code? Try our [Playground](https://playground.bfl.ai) to generate images directly in your browser.
    </Tip>
  </Step>
</Steps>

<Note>
  See our [full pricing page](/quick_start/pricing) for complete details or use the [pricing calculator](https://bfl.ai/pricing).
</Note>

## Next Steps

<Columns cols={2}>
  <Card title="Generate Your First Image" icon="image" href="/quick_start/generating_images">
    Learn how to create images using our API
  </Card>

  <Card title="Try the Playground" icon="play" href="https://playground.bfl.ai">
    Test models instantly without writing code
  </Card>

  <Card title="Explore FLUX.2" icon="sparkles" href="/flux_2/flux2_overview">
    Our latest and most powerful model family
  </Card>

  <Card title="Prompting Guide" icon="graduation-cap" href="/guides/prompting_summary">
    Get better results with effective prompts
  </Card>
</Columns>
