Floura uses Replicate to run the underlying language model. An API key is required before the application can be used.
Visit https://replicate.com and sign up for an account, or log in if you already have one.
- Once logged in, go to https://replicate.com/account/api-tokens.
- Click Create token.
- Give the token a name (for example,
floura-local). - Copy the generated token. It will only be shown once.
Open the .env file in the project root and set:
REPLICATE_API_KEY=your_copied_token_here
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.
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.
- Do not commit
.envor 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.