UniterRouter
API ReferenceGoogle Compatible

Google Compatible

Google Gemini API proxy - Access Gemini Pro, Gemini 1.5 Pro, Gemini Flash through UniterRouter. Native Google AI SDK support with multimodal, grounding and code execution.

Google Compatible API

UniterRouter provides a native proxy for Google's Gemini API, allowing you to use the Google AI SDK directly while benefiting from unified billing and API key management.

Full API Support: All Google Gemini API endpoints are proxied directly with complete parameter compatibility. All official features including Thinking, Function Calling, Code Execution, and Grounding are supported.

Features

Supported Endpoints

All /v1beta/models/{model}:* endpoints are supported:

EndpointMethodDescription
:generateContentPOSTGenerate content
:streamGenerateContentPOSTStream generate content
:embedContentPOSTGenerate embeddings
:countTokensPOSTCount tokens
:batchEmbedContentsPOSTBatch embeddings

Quick Start

import google.generativeai as genai

genai.configure(
    api_key="your_uniterouter_api_key",
    transport="rest",
    client_options={"api_endpoint": "api.uniterouter.ai"}
)

model = genai.GenerativeModel("gemini-2.0-flash")
response = model.generate_content("Hello!")
print(response.text)

SDK Installation

Python

pip install google-generativeai

TypeScript/Node.js

npm install @google/generative-ai

Supported Models

Gemini 2.x (Latest)

ModelDescriptionContextFeatures
gemini-2.5-proMost capable Gemini1MThinking, Vision, Tools
gemini-2.5-flashFast and capable1MThinking, Vision, Tools
gemini-2.0-flashLatest flash model1MVision, Tools, Code
gemini-2.0-flash-thinking-expExtended thinking1MDeep reasoning

Gemini 1.5

ModelDescriptionContextFeatures
gemini-1.5-proBest for complex tasks2MVision, Tools
gemini-1.5-flashBalanced performance1MVision, Tools
gemini-1.5-flash-8bLightweight1MFast inference

Specialized Models

ModelDescriptionUse Case
gemini-embedding-001Text embeddingsSemantic search
text-embedding-004Latest embeddingsRAG, similarity
imagen-3.0-generate-001Image generationCreative
veo-001Video generationCreative

How is this guide?