# AI Key

## BYOK

AIsh.li customers on [our Enterprise plan](/pricing) can Bring Your Own Key (BYOK):

1. Generate your _Gemini API Key_ on [Google AI Studio's API Keys](https://aistudio.google.com/api-keys) page.
1. Navigate to the _[Secrets](/secrets)_ page on the AIsh.li website.
1. Enter a new secret with `GEMINI_API_KEY` as Secret ID, and paste your Gemini API key as the _Secret Value._

Your AIsh.li agents will now execute model requests using your own Google credentials, bypassing AIsh.li credit consumption.

> [!NOTE]
> This configuration refers to your Google AI Studio Gemini API key. It is completely separate from your [AIsh.li API Key](api-key.md), which is used to authenticate with AIsh.li platform endpoints.

## Free Tier {#free}

Google AI Studio provides a free tier to access the Gemini API.

This tier is intended primarily for initial experimentation, prototyping, and personal evaluation.

**Important limitations and privacy considerations:**

- **Data Usage & Human Review**: Under Google's free-tier terms, Google may log, review (including via human reviewers), and use both your prompts (inputs) and generated responses (outputs) to train and improve its machine-learning models and products.
- **Rate Limits**: Free-tier keys are subject to strict limits on requests per minute (RPM), tokens per minute (TPM), and requests per day (RPD).
- **Compliance & Privacy Risk**: If your agents process confidential, proprietary, or personal data (such as visitor messages via embeddable chat widgets), using a free-tier key may violate your privacy policies or data protection obligations (such as GDPR or confidentiality agreements) due to Google's human review and model training terms.

## Paid Tier (Recommended for Production)

For production workloads and business use, we strongly recommend enabling billing in Google AI Studio (or Google Cloud) to upgrade your Gemini API key to a **Paid tier**:

- **Enterprise Privacy & Zero Training**: Paid commercial tier usage is governed by Google Cloud's commercial terms, ensuring that Google does **not** use your prompts or responses to train AI models, and human reviewers do not access your data.
- **Higher Throughput & Reliability**: Removes daily request quotas and provides significantly higher RPM and TPM limits.
- **Commercial Compliance**: Allows you to confidently and compliantly use AIsh.li with a BYOK key for production agents and customer-facing chat widgets.
