SupaFAN requires two API keys: one for YouTube Data API v3 and one for OpenRouter.
- Go to the Google Cloud Console.
- Create a new project (or select an existing one).
- Navigate to APIs & Services > Library.
- Search for YouTube Data API v3 and enable it.
- Go to APIs & Services > Credentials.
- Click + Create Credentials > API Key.
- Copy your new API key.
- (Optional) Restrict the key to only the YouTube Data API v3 for security.
- Go to OpenRouter and sign up/log in.
- Navigate to your API Keys section (dashboard).
- Click Create Key.
- Give it a name (e.g.,
SupaFAN) and copy the key. - No payment is required for free models (though you may need credits for premium models).
In the root of the SupaFAN main repository, copy sample.env to .env:
cp sample.env .envOpen .env and fill in your keys:
YOUTUBE_API_KEY=AIzaSyXXXXXXXXXXXXXXXXXXXXXXXXXXX
OPENROUTER_API_KEY=sk-or-v1-YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
Optionally set a preferred model (default is openrouter/free):
OPENROUTER_MODEL=google/gemma-3-27b-it:free
as an example
4. Verify
Run the pipeline with any target. If the pre‑flight check passes, your keys are working.
text