How to integrate Google Gemini in Higress AI Gateway

Gemini 是 Google DeepMind 开发的最强大、最通用的多模态模型,能够无缝理解文本、图像、音频和视频。

Core Advantages

原生多模态设计
Google 生态深度集成
高效的推理速度
多语言专家

Quick Configuration Example

provider:
  type: gemini
  apiTokens:
    - "YOUR_GEMINI_API_KEY"
  apiVersion: "v1beta"

Note: Please replace YOUR_API_TOKEN with the actual token you applied for on the Google Gemini platform.

Why choose Higress to manage Google Gemini?

By accessing Google Gemini through Higress AI Gateway, you not only get simple protocol forwarding, but also enterprise-level governance capabilities:

  • Unified Protocol Adaptation: Use the standard OpenAI protocol to call Google Gemini without worrying about underlying differences.
  • Intelligent Retry and Circuit Breaking: When the model service is unstable, Higress automatically handles retries to ensure business continuity.
  • Security Audit and Rate Limiting: Protect your API Key from abuse and perform precise rate limiting based on Token consumption.
  • Semantic Caching: Significantly reduce response time for repeated questions and save inference costs.

Ready to get started?

Click the button below to view Higress detailed documentation, or experience it directly in the console.

View Detailed Documentation Star on GitHub