Skip to main content

Quick start

This page targets the modern google-genai Python SDK (pip install google-genai), not the legacy google-generativeai package.
The SDK hits https://api.clearmaas.com/v1beta/models/{model}:generateContent with the standard Gemini JSON shape �?ClearMaas’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) �?ClearMaas’s auth middleware recognizes both on /v1beta/... paths. See Get an API key for the full table of accepted auth headers.

See also