Gemini native

Call Gemini models through the native /v1beta generateContent endpoint or the google-genai SDK with a NekoRouter key.

Setting Value
Base URL https://nekorouter.cc (the SDK adds /v1beta)
Endpoint POST /v1beta/models/MODEL:generateContent (streaming: :streamGenerateContent)
Auth x-goog-api-key: YOUR_NEKO_KEY, ?key= or Authorization: Bearer
Models Gemini — see Gemini

curl

curl "https://nekorouter.cc/v1beta/models/gemini-3.8-flash:generateContent" \
  -H "x-goog-api-key: $NEKO_API_KEY" -H "Content-Type: application/json" \
  -d '{"contents":[{"parts":[{"text":"Hello"}]}]}'

google-genai SDK

Set the base URL to https://nekorouter.cc and do not append /v1beta — the SDK adds it itself; adding it twice returns 404.

from google import genai
from google.genai import types
client = genai.Client(api_key="YOUR_NEKO_KEY", http_options=types.HttpOptions(base_url="https://nekorouter.cc"))
resp = client.models.generate_content(model="gemini-3.8-flash", contents="Hello")
print(resp.text)

Gemini models also work in Chat Completions. Model IDs and prices: Pricing.