Skip to content

Getting Started

API Keys Setup Guide

Get free API access from Google AI Studio, OpenRouter, and other providers to power your AI research tools with multiple model families

Beginner · 20–30 min · Google account; Cherry Studio for configuration

Models are the engines. API keys are the ignition switches that let you choose which to start.

Overview

This guide helps you set up and manage API keys for AI models and services. You need them to access the tools used in the Research Memex workflow.

Benefits:

  • Access to AI models for different tasks
  • Free tier options for testing and development
  • Redundancy across providers for reliability
  • Cost-effective access through multiple free tiers

Required setup:

  • Google AI Studio (Primary - Required)
  • OpenRouter (Recommended for model testing)

Optional providers:

  • Anthropic Claude (via API)
  • OpenAI GPT models
  • Other specialized providers

Provider setup

Required - Free Tier Available

Google AI Studio gives you direct Gemini API access with free-tier options. Use it for course work, testing, and backup access when other providers are unavailable.

Get your API key:

  1. Visit Google AI Studio
  2. Sign in with your Google account (create one if needed)
  3. Click "Get API key" in the left menu
  4. Your API key will be generated instantly - no billing required
  5. Copy and save your API key securely

Current Gemini API models:

ModelStatusBest for
Gemini 3.7 FlashStableStrong default for sustained coding, agentic, and research tasks
Gemini 3.1 ProPreviewComplex reasoning and large-context analysis
Gemini 3 FlashPreviewFrontier-class performance at lower cost
Gemini 3.5 Flash-LiteStableHigh-volume summarization, tagging, and screening
Gemini embedding modelsVariesDocument similarity and semantic search

Free-tier limits change frequently. Check the official rate-limits page and Gemini model list before relying on a quota for teaching or batch work. Google also runs a free student tier for Gemini from time to time; check gemini.google.com/students before paying for anything.

Configure in Cherry Studio:

  1. Open Cherry Studio → Settings → AI Providers
  2. Add Google AI Studio
  3. Paste your API key
  4. Choose Gemini 3.7 Flash as the default, or Gemini 3.1 Pro preview for complex analysis
  5. Test the connection

Subscriptions you already hold

A subscription is often the cheapest model access a participant has. A ChatGPT plan includes Codex, and its lighter models stretch the usage limits further; the Codex app also accepts other providers through its configuration, so one OpenRouter key can serve it too. Read the current limits on the vendor's pricing page rather than assuming any tier is unlimited: none is.

One local endpoint for all of them (advanced)

CLIProxyAPI wraps the logins behind Antigravity, Codex, Claude Code, Grok Build, and Kimi into one local server that speaks the OpenAI, Gemini, and Claude API shapes. Clients see a single base URL, http://127.0.0.1:8317 by default, and a single key, so a Cherry Studio, Codex, or Claude Code session can reach any subscription-backed model without a provider key per app. It is how the author runs Kimi and Grok inside the Codex app.

# macOS, via Homebrew
brew install cliproxyapi
brew services start cliproxyapi

Other platforms use the project's installer or its desktop client, EasyCLI; the project documentation has the client configuration for each app. Two cautions. Setting it up is fiddly, which makes it a good first job for the agent itself. And the project's documentation carries no statement about the providers' terms of service; whether routing a consumer subscription through an API is allowed is each provider's call, so read the terms of the subscription before building a course on it.

Testing your setup

Most platforms include built-in testing tools:

Cherry Studio:

  • Select several models in the input area, or mention them with the @ syntax (e.g., @gpt-5.5 @claude-sonnet-5 Compare these approaches...), and one message is answered side by side
  • See Cherry Studio Setup Guide for detailed testing instructions

OpenRouter:

  • Visit openrouter.ai/chat for web-based model testing
  • Try free models without setup
  • Compare responses across different providers
  • OpenRouter charges a service fee when you buy credits.

Cost management

Free and paid tiers:

  • Google AI Studio: Free tier with daily limits
  • OpenRouter: Free models for testing, pay-as-you-go for extensive use (service fee applies)
  • Other providers: Free and paid options available

Budget tips:

  • Start with free tiers for testing
  • Monitor usage in provider dashboards
  • Use course-provided API budget for intensive work

Security best practices

API key storage:

  • Use password managers or secure notes
  • Never store in plain text or shared documents
  • Cherry Studio stores your keys securely

Multiple providers:

  • Set up Google AI Studio as primary (free)
  • Use OpenRouter for testing different models
  • Have backup providers ready

Quick reference

Provider comparison

ProviderSetup DifficultyFree TierBest For
Google AI StudioEasyExcellentPrimary course work
OpenRouterEasyFree + PaidModel testing/comparison
Other Direct APIsMediumVariesSpecialized model access

For beginners:

  1. Google AI Studio (primary)
  2. OpenRouter (secondary)

For advanced users:

  1. Google AI Studio (free work)
  2. OpenRouter (model testing)
  3. Additional providers as needed

For budget-conscious users:

  1. Google AI Studio (free)
  2. OpenRouter (cost-effective multi-model)

Cost estimates

Monthly budget examples:

  • Light usage: $0-5 (Google AI Studio free)
  • Moderate usage: $5-15 (OpenRouter + occasional paid)
  • Heavy usage: $15-50 (Multiple providers)

Resources

cite this page

Lin, X. (2026). API Keys Setup Guide. Research Memex. https://research-memex.org/docs/implementation/ai-environment-setup/api-keys-setup-guide

@misc{docs-implementation-ai-environment-setup-api-keys-setup-guide-2026,
  author = {Xule Lin},
  title = {API Keys Setup Guide},
  year = {2026},
  howpublished = {\url{https://research-memex.org/docs/implementation/ai-environment-setup/api-keys-setup-guide}},
  note = {ORCID: 0000-0001-7885-4194}
}

one renderingthe source remains