Open Source API Gateway

google

Version

(Experimental) Talks to the Google Gemini API, where the model is named in the path rather than in the request body, as in /v1beta/models/gemini-2.5-pro:generateContent. The api key travels in the x-goog-api-key header. See tutorials/llm-gateway/google/10-Basic-LLM-Gateway.yaml.

Example Configuration

api:
port: 2000
flow:
- llmGateway:
google: {}
policies:
maxOutputTokens: 200
target:
url: https://generativelanguage.googleapis.com
api:
   port: 2000
   flow:
     - llmGateway:
         google: {}
         policies:
           maxOutputTokens: 200
   target:
     url: https://generativelanguage.googleapis.com

Syntax

google: {}
google: {}

Can be used in