Docs / Gemini (SDK / protocol)
Gemini (SDK / protocol)
Gemini-native (/v1beta)
Native Gemini protocol (Google GenAI SDK / compatible apps).
Base URL
https://api.llmapi.pro:99API Key
sk-... (create in Console → API Keys)Recommended
claude-opus-4-8 · claude-sonnet-4-6 · claude-haiku-4-5Setup steps
- We expose a native Gemini-compatible endpoint: path
/v1beta/models/{model}:generateContent, auth via thex-goog-api-keyheader or?key=with yoursk-.... - With the Google GenAI SDK (Python), just point the base URL at us:
from google import genai
from google.genai import types
client = genai.Client(
api_key="sk-YOUR_KEY",
http_options=types.HttpOptions(base_url="https://api.llmapi.pro:99"),
)
resp = client.models.generate_content(
model="gemini-3.1-pro",
contents="Hello",
)
print(resp.text)- Or verify with curl:
curl "https://api.llmapi.pro:99/v1beta/models/gemini-3.1-pro:generateContent" \
-H "x-goog-api-key: sk-YOUR_KEY" \
-H "content-type: application/json" \
-d '{"contents":[{"parts":[{"text":"Hello"}]}]}'Notes
- The SDK base URL has no /v1beta (the SDK appends
/v1beta/models/...); only spell out the full path for manual curl. - On the Gemini endpoint use a Gemini model name (e.g.
gemini-3.1-pro), powered by our top engine; the Gemini protocol is text chat for now (images / tool-calls not yet mapped). - Troubleshooting: an empty reply with HTTP 200 usually means an invalid key or quota issue — check your key in the Console first.
- ⚠️ Google's official gemini CLI currently has no switch to change its backend. For a coding CLI use Claude Code or Codex; this page is for the Gemini SDK and apps that allow a custom Gemini base URL.
Client not listed? Any "OpenAI-compatible" app works: Base URL =
https://api.llmapi.pro:99/v1, key = your sk-..., type the model name. Or email [email protected].Need help? Email [email protected] · Home