Google AI Studio (BYOK)

Create an API key for Google AI Studio and add it to AnyRouter.

Google AI Studio keys work with both the native Gemini API and the OpenAI-compatible endpoint AnyRouter uses. New keys are created as Auth keys by default. This provider has a free tier or free credits.

Get your API key

  1. Go to Google AI Studio.
  2. Open API keys (or click Get API key).
  3. Click Create API key, select or create a Google Cloud project, then Create.
  4. Copy the key (usually starts with AIzaSy...) and add it under Google AI Studio.

Gotchas

The free tier includes generous usage of Gemini Flash and Pro models. Keys are plain alphanumeric strings.

Add it to AnyRouter

  1. Open Dashboard → BYOK, find Google AI Studio under Available and click Add key.
  2. Paste the key.
  3. Click Save. AnyRouter validates the key against Google AI Studio first; on failure the dialog shows the upstream error and nothing is saved.
  • Create key: Google AI Studio console
  • Default base URL (editable on the key form): https://generativelanguage.googleapis.com/v1beta/openai

AnyRouter routes requests to third-party models. Models and outputs are provided as is, with no warranty; you use them at your own risk. Disclaimer