For AI agents: the complete documentation index is available at https://aioproxy.dev/llms.txt, the full documentation bundle is available at https://aioproxy.dev/llms-full.txt, and this page is available as Markdown at https://aioproxy.dev/guide/providers/api/gemini.md.
  • English
  • Google Gemini Protocol (gemini)

    The gemini protocol connects to Google's native Gemini API (/v1beta/models/*:generateContent).

    config.jsonc
    {
      "providers": {
        "google-gemini": {
          "kind": "api",
          "protocol": "gemini",
          "baseURL": "https://generativelanguage.googleapis.com",
          "apiKey": "{{env.GEMINI_API_KEY}}",
          "models": ["gemini-2.5-pro", "gemini-2.5-flash"],
        },
      },
    }

    Features

    • Supports x-goog-api-key header and query parameter authentication.
    • Converts between OpenAI messages and Gemini contents multimodal blocks.