GeminiGemini API14 models online

Gemini API Gateway, built for production

One entry point for every Gemini model, taking you to production at lower cost.

main.py · OpenAI SDK
# pip install openai
from openai import OpenAI

client = OpenAI(
    base_url="https://api.teamorouter.com/v1",
    api_key="<your TeamoRouter API key>",
)

resp = client.chat.completions.create(
    model="gemini-4-neon",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
200B+tokens processed daily

01Pricing

Lower cost per call

Every Gemini model is priced below Google's official rates, billed by token usage.

Gemini pricing
ModelResourceOfficialTeamoRouter
Gemini 4 Carbongemini-4-carbonStandard69.3% offReady to useIn$2.0000Out$10.0000In$0.6148Out$3.0740
Vertex10.0% offIn$2.0000Out$10.0000In$1.8000Out$9.0000
Gemini 4 Argongemini-4-argonStandard69.3% offReady to useIn$2.0000Out$10.0000In$0.6148Out$3.0740
Vertex10.0% offIn$2.0000Out$10.0000In$1.8000Out$9.0000
Gemini 3.8 Flashgemini-3.8-flashStandard69.3% offReady to useIn$0.7500Out$3.7500In$0.23055Out$1.15275
Vertex10.0% offIn$0.7500Out$3.7500In$0.6750Out$3.3750
Gemini 3.1 Pro Previewgemini-3.1-pro-previewStandard69.3% offReady to useIn$2.0000Out$12.0000In$0.6148Out$3.6888
Vertex10.0% offIn$2.0000Out$12.0000In$1.8000Out$10.8000
Gemini 3.7 Flashgemini-3.7-flashStandard69.3% offReady to useIn$0.7500Out$3.7500In$0.23055Out$1.15275
Vertex10.0% offIn$0.7500Out$3.7500In$0.6750Out$3.3750

02Enterprise

Enterprise-grade reliability and service

Requests fail over between Google AI Studio and Vertex AI routes, so one route going down does not stop your calls.

Gemini availabilityAvailability · 24h
  • Dedicated routesDedicated routes and concurrency, with Vertex AI on request.
  • Dedicated supportA dedicated engineer for setup, migration and troubleshooting.
  • Bank transfer and invoicesCompany bank transfer, with Chinese VAT invoices.
  • Enterprise dashboardMembers, API keys, budgets and usage in one place.
~/project — gemini

~/project $ gemini --model gemini-4-neon

Tips for getting started:

1. Ask questions, edit files, or run commands.

2. Create GEMINI.md files to customize your interactions.

✓ Using base URL https://api.teamorouter.com

> Type your message or @path/to/file

~/projectno sandboxgemini-4-neon

03Gemini CLI

Native Gemini CLI support

Just swap the API base and key to migrate.

# ~/.gemini/.env
GOOGLE_GEMINI_BASE_URL=https://api.teamorouter.com
GEMINI_API_KEY=<your TeamoRouter API key>
GEMINI_API_KEY_AUTH_MECHANISM=bearer

# pick a model at launch
gemini --model gemini-4-neon
Gemini CLI setup guide

04Clients

Works with popular AI dev tools

Gemini CLI, Cherry Studio, Cursor, Antigravity and OpenCode all connect.

POST /v1beta/models/gemini-3.1-flash-image:generateContent
BASE=https://api.teamorouter.com/v1beta/models

curl $BASE/gemini-3.1-flash-image:generateContent \
  -H "Authorization: Bearer <your TeamoRouter API key>" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [{"role": "user", "parts": [
      {"text": "A perfume bottle on a rainy night street, cyan neon reflections"}
    ]}],
    "generationConfig": {
      "responseModalities": ["IMAGE"],
      "imageConfig": {"aspectRatio": "3:4", "imageSize": "2K"}
    }
  }'
200 OK
candidates[0].content.parts[]
  └ inlineData
     mimeType: "image/png"
     data: "iVBORw0KGgo…"

05Image generation

Nano Banana, the popular image model

Supports the latest Nano Banana 2.1, Gemini 3 Pro Image and more.

Nano Banana API docs

06FAQ

About the Gemini API

How do I connect to the Gemini API?

Create an API key on TeamoRouter, set the base URL in your code or client to https://api.teamorouter.com/v1 (Gemini-native clients such as Gemini CLI use https://api.teamorouter.com), use the TeamoRouter key, and pick a model ID from the pricing table. Your existing SDK stays the same.

Do I need a Google account or a foreign credit card?

No. Requests go to TeamoRouter with a TeamoRouter API key, so you do not need a Google account or a Google billing card.

How is the Gemini API billed?

Pay as you go by token usage, with no monthly fee or minimum spend; top-ups start at $5. The official price and the TeamoRouter price of every model are in the pricing table above and update with the live catalog.

Which payment methods are supported?

Bank cards, Alipay, WeChat Pay and USDT.

Can a company pay by bank transfer?

Yes. Companies can top up by bank transfer; the contract is arranged by an account manager. Leave your contact details on the enterprise page.

Can I get invoices?

Yes. Chinese VAT special and general invoices are available, issued on actual usage; the 6% tax is borne by the customer.

How is this different from calling Google directly?

The protocol matches Google's, so you only change the base URL and key. You do not need a Google account, and one key also reaches Claude, GPT, DeepSeek and other providers.

How do I call Nano Banana?

Nano Banana and the Gemini image models use the Gemini-native generateContent endpoint, with the same key and balance as text models. See the Nano Banana API docs for all parameters.

Which clients work?

Gemini CLI, Cherry Studio, Cursor, Antigravity, OpenCode, Codex. Usually you only swap the base URL and API key for TeamoRouter's.

Get started with the Gemini API