Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.34 KB

File metadata and controls

42 lines (26 loc) · 1.34 KB

Replicate API Key Setup

Floura uses Replicate to run the underlying language model. An API key is required before the application can be used.

1. Create a Replicate Account

Visit https://replicate.com and sign up for an account, or log in if you already have one.

2. Generate an API Token

  1. Once logged in, go to https://replicate.com/account/api-tokens.
  2. Click Create token.
  3. Give the token a name (for example, floura-local).
  4. Copy the generated token. It will only be shown once.

3. Add the Token to Your Environment

Open the .env file in the project root and set:

REPLICATE_API_KEY=your_copied_token_here

4. Select a Model

Set the AI_MODEL variable in .env to the Replicate model identifier you want to use, for example:

AI_MODEL=meta/llama-2-70b-chat

A list of available models can be found at https://replicate.com/explore.

5. Billing

Replicate usage is billed per request based on the model's compute cost. Review pricing for your selected model on its model page before running extended sessions.

Security Notes

  • Do not commit .env or your API token to version control.
  • Rotate your token immediately if it is exposed.
  • Each token can be revoked individually from the API tokens page.