> ## 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.

# Google Imagen

> Generate images with Google's Imagen model through Replicate's AI Models Database

Google Imagen is a cutting-edge text-to-image model developed by Google that creates high-quality images from textual descriptions.

<Warning> Replicate requires paid credits to use their API. Please refer to their pricing [here](https://replicate.com/pricing#public-models).</Warning>

## 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's Website">
    Go to [replicate.com](https://www.replicate.com/) and click "Sign Up" in the top right corner

    <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 Settings">
    1. Click on your profile icon in the top right
    2. Select "API" from the dropdown menu

    <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" />
  </Step>

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

    <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>

  <Step title="Copy Your Key">
    1. Copy the generated API key

    <Warning>
      Keep your API key secure - it grants access to your paid credits
    </Warning>
  </Step>
</Steps>

## Add to Anything project

<Steps>
  <Step title="Add the integration">
    1. In your Anything project, type `/` in the chat
    2. Select "Google Imagen" 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="Use it">
    You can now use prompts with the integration to generate images.

    Some examples:

    * `Generate an image of a sunset over the mountains with /GoogleImagen`
    * `Make a fantasy landscape with /GoogleImagen`
    * `Design a futuristic cityscape using /GoogleImagen`

    <Warning>
      Each request uses one credit. Avoid generating the same image repeatedly.
    </Warning>

    Example prompt for optimization:

    ```
    When using /GoogleImagen, save the generated images so I can reuse them
    ```
  </Step>
</Steps>

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