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

# Flux

> Generate images with Replicate's Flux model

Flux is a state-of-the-art text-to-image model from Replicate that generates high-quality images from text descriptions.

## Overview

<CardGroup cols={2}>
  <Card title="Create Account" icon="user">
    Sign up for a Replicate account
  </Card>

  <Card title="Get API Key" icon="key">
    Generate your Replicate API key
  </Card>

  <Card title="Copy into Anything" icon="plug">
    Add your API key to Anything's secrets
  </Card>
</CardGroup>

## Account Creation

<Steps>
  <Step title="Visit Replicate Website">
    Go to [replicate.com](https://replicate.com/) and click "Sign Up"

    <img src="https://mintcdn.com/create/FQ38N__i9RkapQvc/images/background-remover/homepage.png?fit=max&auto=format&n=FQ38N__i9RkapQvc&q=85&s=9d9e6cc560e615ce1aa63af5e2142652" style={{ borderRadius: '0.5rem' }} width="2928" height="1452" data-path="images/background-remover/homepage.png" />
  </Step>

  <Step title="Choose Signup Method">
    * Sign up with email/password
    * Or continue with GitHub authentication

    <img src="https://mintcdn.com/create/FQ38N__i9RkapQvc/images/background-remover/signin.png?fit=max&auto=format&n=FQ38N__i9RkapQvc&q=85&s=50900ae2d21c456350861918105f6b23" style={{ borderRadius: '0.5rem' }} width="1680" height="1450" data-path="images/background-remover/signin.png" />
  </Step>
</Steps>

## Generate API Key

<Steps>
  <Step title="Access API Keys">
    1. Go to your Replicate dashboard
    2. Click on your profile and select "API Tokens"
           <img src="https://mintcdn.com/create/FQ38N__i9RkapQvc/images/background-remover/setting.png?fit=max&auto=format&n=FQ38N__i9RkapQvc&q=85&s=bc3738040b5d6200b6f75f6bd82c6fda" style={{ borderRadius: '0.5rem' }} width="2952" height="1418" data-path="images/background-remover/setting.png" />

    <Warning>
      Free tier has usage limits - monitor your consumption
    </Warning>
  </Step>

  <Step title="Create New Key">
    1. Click "New Token"
    2. Name your token (e.g., "Anything Integration")
    3. Copy your API token

    <img src="https://mintcdn.com/create/FQ38N__i9RkapQvc/images/background-remover/apigen.png?fit=max&auto=format&n=FQ38N__i9RkapQvc&q=85&s=a8c6a489b582ca14396ce0758375b734" style={{ borderRadius: '0.5rem' }} width="2860" height="1450" data-path="images/background-remover/apigen.png" />
  </Step>
</Steps>

## Add to Anything project

<Steps>
  <Step title="Add the integration">
    1. In your Anything project, type `/` in the chat
    2. Select "Flux" from the menu
  </Step>

  <Step title="Add your API key">
    1. Paste your API key into the "REPLICATE\_API\_KEY" field

    <Tip>
      Need a new key? Generate one in your Replicate dashboard.
    </Tip>
  </Step>

  <Step title="Start generating">
    You can now use prompts with the integration to generate images.

    Example prompts:

    * `Generate a landscape painting using /Flux`
    * `Create product mockups with /Flux`
    * `Build an AI art gallery using /Flux`

    <Warning>
      The API limits how often your app can fetch data. If your app loads the same data often, ask the agent to save it locally so it doesn't re-fetch every time.
    </Warning>

    Example prompt for optimization:

    ```
    When using /Flux, save the generated images so my app doesn't have to fetch them again
    ```
  </Step>
</Steps>

<Tip>
  Your Flux integration is ready! Use `/Flux` in chat to generate images.
</Tip>
