Gemini Relay

API guide

Deploy · env · endpoints

Pass your API key

Caller sends a Gemini key on each request. No server GEMINI_API_KEYS needed.

  • Query: ?key=$GEMINI_API_TOKEN
  • Or header: x-goog-api-key: $GEMINI_API_TOKEN

Playground uses this mode (key stored in browser localStorage).

curl
curl "https://gemini-relay-proxy.vercel.app/api/v1beta/models?key=$GEMINI_API_TOKEN"

curl "https://gemini-relay-proxy.vercel.app/api/v1beta/models" \
  -H "x-goog-api-key: $GEMINI_API_TOKEN"
Pass API key · Gemini Relay