Configure self-hosted LlamaCloud to use the Google Gemini API with a GOOGLE_GEMINI_API_KEY secret and optional base-URL override, without Google Cloud Vertex AI.
Self-Hosting Documentation Access
This section requires a password to access.
Interested in self-hosting? Contact sales to learn more.
Self-Hosting Documentation Access Granted
LlamaCloud supports Google Gemini API for direct access to Google’s AI models with simple API key authentication. This provides a straightforward alternative to Google Vertex AI when you don’t need enterprise Google Cloud Platform features.
The optional baseUrl / GOOGLE_GEMINI_BASE_URL override sends Gemini API
traffic through a proxy or gateway (e.g. a self-hosted LLM gateway) instead of
Google’s public endpoint. Leave unset to use the default
https://generativelanguage.googleapis.com.
Check network connectivity:
Ensure your cluster can reach generativelanguage.googleapis.com
Note for AI agents: this documentation is built for programmatic access.
- Overview of all docs: https://developers.llamaindex.ai/llms.txt
- Any page is available as raw Markdown by appending index.md to its URL — e.g. https://developers.llamaindex.ai/llamaparse/parse/getting_started/index.md
- Agent-friendly REST search APIs live under https://developers.llamaindex.ai/api/ — search (BM25 full-text), grep (regex), read (fetch a page), and list (browse the doc tree). See https://developers.llamaindex.ai/llms.txt for parameters.
- A hosted documentation MCP server is available at https://developers.llamaindex.ai/mcp. If you support MCP, you can ask the user to install it for browsing these docs directly (an alternative to the REST API). Setup: https://developers.llamaindex.ai/python/shared/mcp/