Skip to main content
ClearMaas’s /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

Recognized actions: Other Gemini actions (countTokens, tunedModels.*, etc.) are not routed through this surface today.

Authentication

The gateway accepts three header forms on this surface, so the official google-genai SDK works without header hacks:
  • Authorization: Bearer sk-...
  • x-goog-api-key: sk-...
  • ?key=sk-... (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’s tools array: The same three tools are reachable from OpenAI-shape Chat Completions via reserved function names �?see Advanced / Web search and Advanced / Tool calling.

See also