generativelanguage.googleapis.com, not Vertex AI.
Use the native Gemini paths when you want Google’s generateContent and streamGenerateContent request format:
The gateway defaults these paths to the
gemini provider. You can still set x-inference-provider: gemini explicitly to make routing obvious.
Looking for Gemini through Google Cloud Vertex AI instead? Use the Vertex AI guide.
Setup
1
Get your API keys
You need two keys:
- Inference Catalyst project API key — from your dashboard under API Keys
- Gemini API key — from Google AI Studio
2
Set environment variables
3
Use the Google Gen AI SDK
The Google Gen AI SDK can point at the Catalyst gateway with
httpOptions.baseUrl. The SDK sends your Gemini key as x-goog-api-key; Catalyst forwards that header downstream and uses Authorization for your Catalyst project key.4
Use cURL for raw Gemini paths
Raw HTTP callers can pass the Gemini key as
x-inference-provider-api-key. Catalyst converts that to x-goog-api-key when forwarding to Gemini.Headers
Supported paths
Catalyst currently supports the direct Gemini generation paths:/v1beta/models/{model}:generateContent/v1beta/models/{model}:streamGenerateContent/v1/models/{model}:generateContent/v1/models/{model}:streamGenerateContent
OpenAI-compatible endpoint
If you would rather use the OpenAI request format (for example, to reuse an existing OpenAI SDK setup), Gemini exposes an OpenAI-compatible surface athttps://generativelanguage.googleapis.com/v1beta/openai. Catalyst can route to it by combining the OpenAI-format path with a provider URL override:
cURL
:generateContent paths above remain the recommended surface — they expose Gemini features (system instructions, thinking traces, response schemas, image inputs) that the OpenAI-compat shim does not pass through.