Quick start
This page targets the moderngoogle-genai Python SDK (pip install google-genai), not the legacy google-generativeai package.
Python
https://api.orcarouter.ai/v1beta/models/{model}:generateContent
with the standard Gemini JSON shape — OrcaRouter’s first-class Gemini
surface. Streaming, function calling, and inline multimodal data
(image, audio) work directly; for size limits and per-model
constraints, see Google’s Gemini API documentation.
The SDK sends api_key via the x-goog-api-key header (or
?key=... query) — OrcaRouter’s auth middleware recognizes both on
/v1beta/... paths. See
Get an API key
for the full table of accepted auth headers.
See also
- Native Formats / Gemini — the raw HTTP shape
- Models — full Gemini / Imagen / TTS model list
