ContentAIDOCS
Configuration

API Keys

How to get API keys for each supported provider and connect them to ContentAI.

ContentAI uses a Bring Your Own Key (BYOK) model. Each user connects their own API keys from one or more AI providers. Keys are stored in the browser's localStorage and sent to the /api/generate endpoint only when making a generation request.

Supported providers

ProviderFree tier?Best for
GroqYes — generousFastest responses, most free usage
Google GeminiYes — limitedQuality balance, long context
OpenAINo — pay-per-useBest overall quality with GPT-4 family
AnthropicNo — pay-per-useLong reasoning, careful tone (Claude)

New here? Start with Groq

Groq gives you real, fully-free access — no credit card required — with generous rate limits. Use it to try ContentAI end-to-end before deciding if you want a paid provider.

Get a key

  1. Open https://console.groq.com/keys
  2. Sign in with GitHub or Google
  3. Click Create API Key, give it a name like "ContentAI"
  4. Copy the key (starts with gsk_...)

Connect it

  1. In ContentAI, go to Settings
  2. Find the Groq card
  3. Paste your key, pick a model (llama-3.3-70b-versatile is a great default)
  4. Click Test → you should see a success toast
  5. (Optional) Click Set as active provider to make Groq the default for new generations

Google Gemini (free)

Get a key

  1. Go to https://aistudio.google.com/apikey
  2. Sign in with your Google account
  3. Click Create API key in new project
  4. Copy the key

Connect it

  1. In ContentAI, go to Settings
  2. Find the Google card
  3. Paste the key, pick a model (gemini-2.0-flash-exp or gemini-2.5-flash)
  4. Click Test

Gemini free tier quotas

Google's free Gemini quota is per minute and per day. If you see a 429 error, wait a minute and retry, or switch to Groq for that session.

OpenAI

Get a key

  1. Go to https://platform.openai.com/api-keys
  2. Sign in and click Create new secret key
  3. Copy the key (starts with sk-...)

You'll need to add at least $5 of credit to your OpenAI account before the key works.

Connect it

  1. In ContentAI, go to Settings
  2. Find the OpenAI card
  3. Paste the key, pick a model (gpt-4o-mini for cheap, gpt-4o for quality)
  4. Click Test

Anthropic (Claude)

Get a key

  1. Go to https://console.anthropic.com/settings/keys
  2. Sign in and click Create Key
  3. Copy the key (starts with sk-ant-...)

You'll need billing set up on your Anthropic account.

Connect it

  1. In ContentAI, go to Settings
  2. Find the Anthropic card
  3. Paste the key, pick a model (claude-3-5-sonnet-20241022 is a great default)
  4. Click Test

Switching between providers

The active provider is used for every new generation. To switch:

  1. Open Settings
  2. Click Set as active provider on the card for the provider you want

The active provider and selected model are shown as a badge on the Generate and Editor pages.

Multiple keys, same provider?

Not supported in v1.0 — one key per provider. If you need multiple keys (e.g. separate billing buckets), you can edit lib/store.ts to change apiKeys from Record<AIProvider, string> to Record<AIProvider, string[]>.

Resetting keys

Clearing your browser's site data for the app will remove all API keys, generations, and documents. You can also click Clear all data at the bottom of the Settings page.

Next: Models →

On this page