Skip to navigation

Gemini API Alternatives: Switch Without Rewriting Code

In short: Gemini API alternatives for apps on the OpenAI-compatible endpoint: the 1 December 2026 price changes, a feature map and a probe script.

Published 23 min read
On this page

If your app calls the Gemini API, you may already be one base URL away from leaving it: Google documents an OpenAI-compatible endpoint, so the SDK code you wrote is portable. What is not portable is what sits around that call. This post gives you three things the top results for Gemini API alternatives skip: a dated table of the changes Google has published for 1 December 2026 and 1 January 2027, a map from each Gemini-specific setting to what you do with it elsewhere, and a probe script that runs the same six checks against two endpoints and prints the differences. We are One AI API Key and we publish this post, so read our rows as a vendor’s claims; every Google figure links to Google and carries the date we read it, 28 November 2026. One fact first: we do not serve Gemini models today. We are an alternative to the Gemini API, not a way to reach it.

Why are developers looking for Gemini API alternatives now?

Because the calendar changed, not because the models got worse. Google’s own pages announce four dated changes in the next five weeks, and a fifth, the data terms on the free tier, has been there all along. The table lists each with the page it comes from.

Date What changes Who feels it Source
1 Dec 2026 gemini-4-argon and gemini-4-carbon standard prices go from $2.00 to $4.00 input and $10.00 to $20.00 output per 1M tokens; cached input from $0.10 to $0.20 Anyone on the two top Gemini 4 models Pricing
1 Dec 2026 Requests to gemini-2.5-pro are routed to gemini-3.8-flash and billed at its rates Apps with the old id hard-coded Deprecations
1 Dec 2026 Requests to gemini-2.5-flash are routed to gemini-3.5-flash-lite; gemini-2.5-flash-lite stays Same Deprecations
1 Jan 2027 gemini-3.8-flash goes from $0.75 to $1.50 input and $3.75 to $7.50 output per 1M Cost-sensitive agent loops Pricing
Now Unpaid quota: content may be used to improve Google products and human reviewers may read it (EEA, Switzerland and UK follow the paid terms) Free-tier prototypes with real data Terms
Now Spend-based limit on a rolling 10-minute window: Tier 1 $10, Tier 2 $200, Tier 3 $200; breach returns 429 RESOURCE_EXHAUSTED Agents that burst Rate limits

The first row is the loud one. It is a doubling on both sides of the bill with three days of notice from where we sit, and the output side includes thinking tokens, because Google’s table labels its output price “including thinking tokens”. A reasoning model that thinks for 3,000 tokens and answers in 500 is billed for 3,500 output tokens.

Gemini 4 Argon, USD per 1M tokens, standard tier

  • Input, to 30 Nov 2026$2.00
  • Input, from 1 Dec 2026$4.00
  • Output, to 30 Nov 2026$10.00
  • Output, from 1 Dec 2026$20.00
Source: Google's pricing page, read 28 November 2026. Gemini 4 Carbon carries the same dated prices. Output includes thinking tokens.

Not every Gemini model moves. Google’s page lists Gemini 4 Neon at $3.00 input and $15.00 output with no dated change, Gemini 4 Hydrogen at $1.50 and $7.50 with a free tier, and Gemini 3.5 Flash-Lite at $0.30 and $2.50 with a free tier. So the first alternative to price is often a different Gemini model, and we say so plainly below.

Gemini output price per 1M tokens, paid standard tier

  • Gemini 4 Argon, from 1 Dec$20.00
  • Gemini 4 Neon$15.00
  • Gemini 4 Argon, to 30 Nov$10.00
  • Gemini 4 Hydrogen$7.50also has a free tier
  • Gemini 3.8 Flash, from 1 Jan 2027$7.50
  • Gemini 3.8 Flash, to 31 Dec 2026$3.75
  • Gemini 3.5 Flash-Lite$2.50also has a free tier
Source: Google's pricing page, read 28 November 2026. Output prices include thinking tokens. Prices change: re-read the page before you decide.

What does the doubling do to a real bill?

Take a workload of 2,000 calls a month, each sending 30,000 input tokens and producing 4,000 output tokens including thinking. That is 60M input and 8M output. On Argon today the bill is 60 x $2.00 + 8 x $10.00 = $120 + $80 = $200. From 1 December it is 60 x $4.00 + 8 x $20.00 = $240 + $160 = $400. The same workload on Hydrogen is 60 x $1.50 + 8 x $7.50 = $90 + $60 = $150, at a different capability level that only your own tests can price.

The spend limit matters too. One of those calls costs (30,000 x $2.00 + 4,000 x $10.00) / 1M = $0.10 today, so a Tier 1 project that Google’s page says is limited to $10 per 10 minutes fits 100 such calls in a window. After 1 December a call costs $0.20 and the same window fits 50. An agent that was fine last week can start returning 429 without any change on your side. Enter your own numbers below.

What 1 December does to a Gemini 4 Argon workload

Argon per month, to 30 Nov prices
$200.00
Argon per month, from 1 Dec prices
$400.00
Extra per month
$200.00
Hydrogen per month, for comparison
$150.00
Calls in a $10 spend window, to 30 Nov
100
Calls in a $10 spend window, from 1 Dec
50

Prices from Google's pricing page and the $10 Tier 1 spend limit from its rate-limits page, both read 28 November 2026. Google says spend limits apply depending on billing history and account standing. Cached input is not modelled.

How compatible is Google’s OpenAI endpoint, really?

Compatible enough that most apps survive the move, and beta by Google’s own label. Its documentation says support for the OpenAI libraries is still in beta while features are added. The table below takes each area Google documents and says what to do when you leave. We read the page on 28 November 2026.

Area What Google’s page says When you move off
Connection Three values change: key, base URL, model id Change the same three, see below
Reasoning reasoning_effort maps to thinking_level; on Gemini 4, minimal and low both become low; xhigh only on Neon and Hydrogen; thinking cannot be turned off on Gemini 3 or 4 Keep reasoning_effort; our reasoning docs list the values and the usage field that counts thinking
Gemini-only fields extra_body carries thinking_config, cached_content, aspect_ratio, generation_config, safety_settings and image tools Delete them; there is no portable equivalent
Caching Gemini 4 supports implicit caching only; the minimum is 4,096 input tokens; explicit cache objects are not supported on Gemini 4 Nothing to port; read prompt_tokens_details.cached_tokens on the new route, see our prompt caching docs
Streaming, tools, images, structured output Documented as working Our docs cover streaming, tool calling, vision and structured output; support differs by model
Audio input Documented as working Our docs cover images and PDFs, not audio; keep Google for audio
Embeddings gemini-embedding-2 and gemini-embedding-001 Our API reference says embeddings work only when an embedding model is enabled for your account
Batch Create, monitor and read results via the OpenAI library; file upload and download not supported there; paid Batch is half price We do not document a batch endpoint; keep batch on Google or use fixed concurrency
Unlisted parameters For image generation, anything not listed is silently ignored Assume the same elsewhere until a test proves otherwise

Two rows deserve more than a table cell. First, caching. If you are on Gemini 4 you were never using explicit cache objects, so nothing is lost; Google’s page also says a multi-turn call caches the previous request only if the new request adds at least 2,050 tokens. On a new route the question is not whether caching exists but whether the usage object reports it. The probe below prints it.

Second, silent ignoring. A compatibility layer that drops a field without an error is convenient until the field was doing something. Our own structured-output docs warn about the same thing for one model family, where response_format is dropped without an error. The defence is a test that fails when the shape is wrong, not trust in either layer.

What changes when you leave, line by line?

Three values, and three habits. The values first, with the code Google shows next to the code that replaces it. The base URL is the base_url argument of the OpenAI Python SDK, which also reads OPENAI_BASE_URL from the environment.

Before: Google endpoint
import os
from openai import OpenAI

# Before: Google's OpenAI-compatible endpoint
client = OpenAI(
    base_url="https://generativelanguage.googleapis.com/v1beta/openai/",
    api_key=os.environ["GEMINI_API_KEY"],
)
model = "gemini-4-hydrogen"
After: this gateway, a free id
import os
from openai import OpenAI

# After: three values change, the rest of the file stays
client = OpenAI(
    base_url="https://api.oneaiapikey.com/v1",
    api_key=os.environ["ONEAIAPIKEY_API_KEY"],
)
model = "z-ai-glm-5.3:free"

reply = client.chat.completions.create(
    model=model,
    max_tokens=1500,   # thinking tokens count against this limit
    messages=[{"role": "user", "content": "Explain a 429 error in two sentences."}],
)
print(reply.choices[0].message.content)
print(reply.usage)

The model id is the only line that needs a decision. We used a free id (z-ai-glm-5.3:free) so the first call costs nothing; the full list is on the free models page and the quickstart shows the whole first request. Our authentication docs cover keys, and the headers reference says that x-goog-api-key is accepted as well as the Bearer header. That is a fact about headers, not a promise that Google-format requests work: we have no published or tested walkthrough for the native Gemini request format, so this post covers the OpenAI format only.

The three habits:

  1. Give thinking room. On a reasoning model, thinking tokens count against max_tokens. If the limit is hit while the model is still thinking you get finish_reason: "length" and little text. Our reasoning docs say so, and it applies to any route. The code above sets 1,500.
  2. Own your history. Google’s current text-generation docs lead with the Interactions API, where previous_interaction_id chains turns and the server holds the conversation. By default it stores interactions: 55 days on the paid tier and 1 day on the free tier, with store=false to opt out. Chat completions are stateless, so you resend the message list every call and own the storage. Thought signatures do not transfer either: start migrated conversations fresh.
  3. Count cost per task. Prices per million tokens differ, and so do tokens per task, because models think for different lengths. Compare finished tasks, not rate cards. The cost calculator and the guide to estimating a monthly LLM bill turn token counts into dollars, and the token billing audit shows how to check a bill against your own counts.

If you are rewriting code written for Google’s native SDK rather than the OpenAI one, budget more than an afternoon, and read the OpenAI API alternatives post, which covers the SDK side in detail. The exit plan post shows how to keep model ids in a config map so the next switch is one line.

A switch you can undo

List Gemini-only fieldsextra_body, cached_content, store, groundingSwap three valuesbase URL, key, model idRun the probe on both routessame prompts, same schema, same toolSend 10 percent of trafficcompare cost per task, not per tokenCut over, keep Google as fallbackone retry route, one alert on 429
Every step is reversible until the last, and the last keeps the old route alive. The probe script below is step three.

Which Gemini API alternative fits your situation?

There are four honest options, and ours is only one of them. Each has a real reason to win.

Option Where it is stronger than the Gemini API Where the Gemini API is stronger
Stay on Google, change the model Hydrogen has a free tier and a $1.50 and $7.50 paid price; Flash-Lite is $0.30 and $2.50. No new vendor, no new data terms to read You are still exposed to the next price page
OpenRouter Breadth and maturity. Free-model variants allow 20 requests a minute and 50 a day, 1,000 a day after you have bought at least 10 credits; credit purchases carry a 5.5% fee ($0.80 minimum) and credits may expire under its terms Google’s own first-party features and tiers
One AI API Key Free lane with no card, a $10 sign-up credit toward priced models, a published daily cap, prompts and answers not stored by default No Gemini model today, no audio input or batch endpoint documented, a lower daily request cap
Self-host with Ollama Your own hardware. Its docs say it supports a subset of the OpenAI API: chat, streaming, JSON mode, vision, reasoning control Capacity, 1M context and Google Search grounding are not something a laptop gives you

The OpenRouter numbers come from its limits page and its FAQ, read on 28 November 2026, and the Ollama row from its compatibility page. Our own head-to-head with OpenRouter is on the comparison page and in the post on OpenRouter against One AI API Key, and the roundup of gateways compared on stated criteria sets nine side by side. If you are leaving OpenRouter instead, the migration guide covers it, and the post on OpenRouter joining Stripe lists what to watch there.

Which describes you?

Free tier prototype

Your cheapest move is a second route, not a new vendor. Add one free id here and keep Gemini as the other. The 48 free ids share 100 requests and 3,000,000 tokens a day, so it suits testing, not traffic. Read the free tier comparison for the other options.

Paying for Argon or Carbon

Run the calculator above with your own numbers before 1 December. If the extra is real money, price Hydrogen on your own prompts first, then a second vendor. Paid models here are set up by hand, offline: pick one on the pricing page and email somdutt777@gmail.com. The post on buying by email explains why.

Still on gemini-2.5-pro or 2.5-flash

From 1 December those ids reroute to different models at different rates. Pin a model on purpose, test it, and record the id in config. The exit plan post has a 30-minute drill.

I need audio, video or Search grounding

Stay on Google for those and move only the text calls. We document images and PDFs, not audio or video input. For web search, our tool calling docs describe a web_search server tool at $0.0055 a search plus the model rounds; we have not verified it on a free id, so test it before relying on it.

I want to run it myself

Look at Ollama or vLLM with an open-weight model. Google's pricing page lists Gemma 4 as its open model, and our free lane carries a Gemma 4 31B id on the Gemma 4 31B page if you only want to try it first. The LiteLLM alternatives post covers self-hosting a proxy.

What does the free lane here give a Gemini free-tier user?

A different bargain, not a bigger one. Google’s free tier includes Hydrogen, 3.8 Flash and 3.5 Flash-Lite and shows its limits only inside AI Studio, per project. Ours is 48 ids sharing one daily allowance. The comparison on the points that decide a prototype:

Point Gemini API free tier Free lane on One AI API Key
Daily numbers Shown in AI Studio only; per project; requests-per-day reset at midnight Pacific 100 requests and 3,000,000 tokens a day per account, refill 00:00 UTC (05:30 IST)
Top models Argon, Carbon and Neon are not on the free tier No Gemini model; the free ids are other vendors’ models
Data Content may be used to improve products; reviewers may read it (outside EEA, Switzerland, UK) Prompts and answers are not stored by default; counts are kept; we do not train on your data; the company running the model receives the request
Past the cap 429 RESOURCE_EXHAUSTED 429 with code daily_limit_free

Read the data row carefully, because it can mislead in both directions. Paid Gemini quota is not used to improve Google products, and Google logs prompts and responses for a limited period to detect abuse, so a paying Gemini user is in a different position from a free one. On our side, prompt logging is an opt-in per key, X-No-Log: true opts a single call out, and content is captured only if you ask us to troubleshoot or we investigate abuse. A free model still runs on a third-party provider under its own terms. The privacy policy, the post on what a gateway sees and stores and the transparency page set it out, and the ten data questions work for any provider, ours included.

The One AI API Key sign-up gives $10 of credit that pays for priced models first. Free ids work at a $0 balance, so a prototype never needs top-up. The practical read: move a free-tier Gemini prototype here if the data terms are what bother you, and keep it on Google if you need a model only Google has.

How do you test an alternative before trusting it?

Run the same checks on both routes and read the numbers yourself. The script below calls two endpoints with six checks: a plain call, a strict JSON schema, a forced tool call, a repeated 500-line system prompt to see cache hits, a stream with usage, and a bad key. It prints finish reasons, token counts including thinking tokens, and latency. It deliberately lines up the things Gemini users depend on: thinking tokens in usage, implicit caching and the error shape.

probe.py: six checks, two endpoints
import json, os, time
from openai import OpenAI, AuthenticationError

ENDPOINTS = [
    # name, base_url, env var that holds the key, model id
    ("google", "https://generativelanguage.googleapis.com/v1beta/openai/", "GEMINI_API_KEY", "gemini-4-hydrogen"),
    ("ours", "https://api.oneaiapikey.com/v1", "ONEAIAPIKEY_API_KEY", "z-ai-glm-5.3:free"),
]
SCHEMA = {"type": "object", "properties": {"city": {"type": "string"}, "days": {"type": "integer"}},
          "required": ["city", "days"], "additionalProperties": False}
TOOLS = [{"type": "function", "function": {"name": "get_weather", "description": "Weather for a city.",
          "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}}]
PREFIX = "\n".join(f"Policy {i}: answer in plain English and cite policy {i}." for i in range(1, 501))

def used(r):
    u = r.usage
    d = getattr(u, "completion_tokens_details", None)
    c = getattr(u, "prompt_tokens_details", None)
    return f"in={u.prompt_tokens} out={u.completion_tokens} think={getattr(d, 'reasoning_tokens', None)} cached={getattr(c, 'cached_tokens', None)}"

def check(name, base, env, model):
    client = OpenAI(base_url=base, api_key=os.environ[env], timeout=90, max_retries=0)
    rows = {}
    def step(label, fn):
        t0 = time.time()
        try:
            rows[label] = f"ok {fn()} ({time.time() - t0:.1f}s)"
        except Exception as e:
            rows[label] = f"FAIL {type(e).__name__}: {str(e)[:80]}"

    def plain():
        r = client.chat.completions.create(model=model, max_tokens=1500,
            messages=[{"role": "user", "content": "Name three HTTP status codes, comma separated."}])
        return f"finish={r.choices[0].finish_reason} {used(r)}"

    def schema():
        r = client.chat.completions.create(model=model, max_tokens=1500,
            messages=[{"role": "user", "content": "Plan a trip to Lisbon for 3 days."}],
            response_format={"type": "json_schema", "json_schema": {"name": "trip", "strict": True, "schema": SCHEMA}})
        data = json.loads(r.choices[0].message.content)
        assert set(data) == {"city", "days"}
        return used(r)

    def tool():
        r = client.chat.completions.create(model=model, max_tokens=1500, tools=TOOLS, tool_choice="required",
            messages=[{"role": "user", "content": "Is it raining in Oslo?"}])
        call = r.choices[0].message.tool_calls[0]
        assert json.loads(call.function.arguments)["city"]
        return f"tool={call.function.name} {used(r)}"

    def cache():
        out = []
        for q in ("Which policy covers returns?", "Which policy covers shipping?"):
            r = client.chat.completions.create(model=model, max_tokens=1500,
                messages=[{"role": "system", "content": PREFIX}, {"role": "user", "content": q}])
            out.append(used(r))
        return " | ".join(out)

    def stream():
        s = client.chat.completions.create(model=model, max_tokens=1500, stream=True,
            stream_options={"include_usage": True}, messages=[{"role": "user", "content": "Count to five."}])
        last = None
        for chunk in s:
            if chunk.usage:
                last = chunk.usage
        assert last is not None, "no usage chunk"
        return f"in={last.prompt_tokens} out={last.completion_tokens}"

    def bad_key():
        try:
            OpenAI(base_url=base, api_key="not-a-real-key", max_retries=0).chat.completions.create(
                model=model, max_tokens=5, messages=[{"role": "user", "content": "hi"}])
        except AuthenticationError as e:
            return f"status={e.status_code}"
        raise AssertionError("a bad key was accepted")

    for label, fn in (("plain", plain), ("schema", schema), ("tool", tool), ("cache", cache), ("stream", stream), ("bad key", bad_key)):
        step(label, fn)
    print("==", name, model)
    for label, text in rows.items():
        print(f"  {label:8} {text}")

for ep in ENDPOINTS:
    check(*ep)

What we expect to see, and what is a red flag:

  • plain. A finish_reason of length with think near your max_tokens means the limit was too low for a reasoning model, not that the route is broken. Raise it.
  • schema and tool. A FAIL here is information about the model, not the gateway. Pick another id, or use a forced tool call, which our structured-output docs call the most portable method.
  • cache. The second line should report cached tokens above zero on a route that caches. Google’s page puts the minimum at 4,096 tokens for Gemini 4, so the 500-line prefix is long enough to test it. A None is a missing field, not proof of no caching.
  • stream. A missing usage chunk breaks per-request cost tracking.
  • bad key. You want a clean 401, not a 200 or a hang.

The probe sends about 14,000 input tokens to each endpoint in total. That is a few cents on a paid Gemini model and nothing on a :free id, and the usage lines show the real count. It does not tell you whether the route serves the model it names. For that, use the six free checks in the guide to verifying that an API serves the model it names, the broader free trial test protocol and the compatibility matrix; the study behind the problem is explained in the post on shadow APIs and fake models. The status board at /status and the usage figures at /rankings show what the gateway measures about itself.

How do you keep a second route ready?

Keep Google as one route and add the other, rather than cutting over blind. Both endpoints use the same request shape, so failover is a loop. The wrapper retries only the errors that mean the route is busy or down: 408, 429 and 5xx. A 400 or 401 is a bug in your request and should surface. MDN’s 429 reference defines 429 as too many requests in a given time, which is why the response is worth retrying on another route and not on the same one.

ask(): try routes in order
import os
from openai import OpenAI, APIStatusError, APIConnectionError, APITimeoutError

# Order matters: first route is tried first. max_retries=0 so a failing route is left quickly.
ROUTES = [
    (OpenAI(base_url="https://api.oneaiapikey.com/v1", api_key=os.environ["ONEAIAPIKEY_API_KEY"], max_retries=0), "z-ai-glm-5.3:free"),
    (OpenAI(base_url="https://generativelanguage.googleapis.com/v1beta/openai/", api_key=os.environ["GEMINI_API_KEY"], max_retries=0), "gemini-4-hydrogen"),
]
RETRY_STATUS = (408, 429, 500, 502, 503, 504)

def ask(messages, **kwargs):
    last = None
    for client, model in ROUTES:
        try:
            return client.chat.completions.create(model=model, messages=messages, timeout=45, **kwargs)
        except (APIConnectionError, APITimeoutError) as e:
            last = e
        except APIStatusError as e:
            if e.status_code not in RETRY_STATUS:
                raise            # 400, 401, 404: a bug in the request, not a reason to switch
            last = e
    raise last

On our side the gateway already does part of this for free ids: when a free request fails before an answer starts it retries the named model up to twice, and can move to another similar model. You can name up to three fallback ids yourself with the X-Fallback-Models header, as the routing documentation and the headers reference describe. Only the attempt that answers is billed. For deeper guidance, the uptime and fallbacks guide and the post on keeping an agent running when one provider is down go through timeouts and alerts. If an agent loops, caps matter more than fallbacks: the post on runaway agent token bills shows six caps, and the guide to one key per project with spend limits covers the setup.

Where does the Gemini API still win?

It would be dishonest to write this post and not say it. Google has things we do not, and a few are worth the lock-in.

  • First-party models and context. Gemini 4 Hydrogen, Neon, Argon and Carbon advertise a 1M-token context window on Google’s pricing page. We do not serve them.
  • Audio and video input, and built-in grounding. Google bills Search grounding at 5,000 free requests a month across Gemini 3 and newer models, then $14 per 1,000 requests, with a default cap of 1,500 requests a day per project. We document nothing equivalent that we have verified on a free id.
  • Batch at half price. Google’s paid page lists a Batch API with a 50% cost reduction. We do not document a batch endpoint.
  • Paid-tier data terms. Paid Gemini quota is not used to improve Google products, per its terms. That is a real answer to the privacy question and ours is a different one, not a better one.
  • Capacity and tiers. Google’s tier system raises limits as you spend, up to caps listed on its billing page.

What we offer is narrower: a free lane that needs no card, a published daily cap, and a clear statement of what is and is not served. Our review of the service lists both sides, the checklist for choosing a provider gives a framework you can apply to us too, and what an LLM gateway is explains why one key reaches many models. The gateway fees post shows what other gateways add on top of token prices, and the post on startup provider choice covers how to avoid being stuck.

Are you ready to switch?

Tick what is true today. The verdict tells you what is missing; nothing is sent anywhere.

Gemini switch readiness

0 of 8 done

Not yet

Start with the first two: they decide how much work the move is.

What would we do this week?

If we ran an app on Gemini 4 Argon today, in this order. First, run the calculator with real numbers and decide whether the doubling matters. Second, grep for the Gemini-only fields. Third, add a second route with the fallback wrapper, using a free id so the first test costs nothing, and watch cost per task for a week. Fourth, only then decide whether to move, price Hydrogen on your own prompts, or both.

For a quick try without code, the chat uses the same daily allowance as the API. Sign-up is Google only with no card field; the pricing page shows what is free, what the $10 credit does and how paid access is arranged by email, and the acceptable use policy applies to every request. The compatibility notes in our docs cover the base URL change for each SDK.

Try a second route for free

$10 sign-up credit, 48 free models sharing 100 requests and 3,000,000 tokens a day, no card.

Frequently asked questions

Can I use the Gemini API through the OpenAI SDK?
Yes. Google documents an OpenAI-compatible endpoint at https://generativelanguage.googleapis.com/v1beta/openai/ and says three values change: the key, the base URL and the model id. Google labels that support beta. The same three values are what you change to leave it, as the migration guide and the OpenAI API alternatives post show.
Do you serve Gemini models?
Not today. Our Gemini 4 Argon page exists and is marked unavailable on 28 November 2026, so we are an alternative to the Gemini API, not a route to it. Paid models are set up by hand, offline: email somdutt777@gmail.com to ask what is open. The 48 free ids work straight after a Google sign-in and are listed on the free models page.
What happens to my gemini-2.5-pro or gemini-2.5-flash calls on 1 December 2026?
Google's deprecations page says that from 1 December 2026 requests to gemini-2.5-pro are routed to gemini-3.8-flash and billed at its rates, and requests to gemini-2.5-flash go to gemini-3.5-flash-lite. Your code keeps working but the model behind the id changes. If you want a deliberate choice, pin a model id yourself and run the free test protocol on it first.
Is the Gemini free tier private?
Google's additional terms say content sent on unpaid quota can be used to improve Google products and that human reviewers may read it, with different terms for the EEA, Switzerland and the UK. Paid quota is not used that way. Read the page before sending anything private. Ours is different in kind, not a blanket promise: prompts and answers are not stored by default, we keep counts, and the company running the model still receives the request. The ten data questions post and the privacy policy go through it.
Will my Gemini thinking settings carry over?
Partly. Google maps reasoning_effort to its thinking levels, so code that already sets reasoning_effort is portable in shape. Code that uses extra_body with thinking_config or cached_content is not. Our reasoning documentation explains the effort values and where the thinking tokens show up in usage. Whether a given model honours a value is something to test, which is what the probe script above does.
Can I keep Gemini as a fallback and add a second route?
Yes, and it is the safest first step. Both endpoints speak the OpenAI format, so a ten-line wrapper can try one and fall to the other on 408, 429 and 5xx, as the script above does. The uptime and fallbacks guide and the fallback post for a failing provider cover timeouts and alerts. The exit plan post turns it into a 30-minute drill.
How many free requests do I get here compared with Gemini?
48 ids share 100 requests and 3,000,000 tokens a day per account, refilled at 00:00 UTC. Google shows its free-tier numbers only inside AI Studio, per project, so a direct comparison needs your own screen. Past the cap you get a 429 with the code daily_limit_free, which the error reference lists and the 429 guide explains.
What does a switch cost me in engineering time?
For an app that already uses the OpenAI SDK, an afternoon: three values, then the probe, then a small share of traffic. For an app written against Google's native Interactions API the work is larger, because conversation state, thought steps and tool formats differ. The gateway versus direct API post and the one-key trade-offs post help you decide whether the extra hop is worth it.
More in Blog

Try it

One API key for GPT, Grok, DeepSeek, Kimi, GLM, MiniMax, Qwen, Step, Beam, Nemotron, ERNIE, Hunyuan, Gemma, Laguna, LFM, LongCat, Llama, Solar, Jais, Mistral, K2 and Roleplay.

One AI API Key speaks the OpenAI and Anthropic formats, so you change the base URL and the key, not your code. Credit packs start at $10, and every model has a published per-token rate.

New accounts$10 credit on sign-up
Claim $10 credit →