ClearMaas’sDocumentation Index
Fetch the complete documentation index at: https://docs.clearmaas.com/llms.txt
Use this file to discover all available pages before exploring further.
/v1beta/ surface is a direct passthrough to Google’s
Gemini API. Pick this path when you want Gemini features that don’t
fit OpenAI shape — inline audio/video data, native built-in tools
like googleSearch, fully-formed generationConfig.thinkingConfig,
or simply because you’re already on the google-genai SDK.
For everyday chat the OpenAI-compatible path
(POST /v1/chat/completions with model=google/...) is usually
simpler and works across providers — see
Compatibility / Google GenAI SDK
for SDK setup.
Path layout
| Action | What it does |
|---|---|
:generateContent | One-shot response (JSON) |
:streamGenerateContent | SSE stream of partial chunks |
countTokens, tunedModels.*, etc.) are not
routed through this surface today.
Authentication
The gateway accepts three header forms on this surface, so the officialgoogle-genai SDK works without header hacks:
Authorization: Bearer sk-clearmaas-...x-goog-api-key: sk-clearmaas-...?key=sk-clearmaas-...(query string, last resort for tools that don’t support setting headers)
Examples
Built-in tools
Gemini’s three native built-in tools work as documented by Google — pass them in the request body’stools array:
| Tool | Effect |
|---|---|
{"googleSearch": {}} | Web grounding. The response carries groundingMetadata. ClearMaas captures webSearchQueries for billing. |
{"codeExecution": {}} | Lets the model run sandboxed Python. |
{"urlContext": {}} | Lets the model fetch and summarize URLs you mention. |
See also
- Compatibility / Google GenAI SDK — pointing the SDK at ClearMaas
- API Reference / Gemini Native — full request / response schema with try-it