Google Gemini API · gemini-3-pro-preview

Gemini API — Access Google Gemini 3 Pro & Flash via ApiTopMix

Reach Google's multimodal, long-context Gemini family through one OpenAI-compatible key. Call gemini-3-pro-preview, the Pro and Flash tiers, and the whole lineup at https://apitopmix.com/v1. Pay-per-use, below official price — and Flash is very cheap for high volume.

The Google Gemini API gives you one of the strongest multimodal model families around — great at text and vision, built for very long context, and priced to compete. On ApiTopMix you get Gemini API access through a single OpenAI-compatible key: call gemini-3-pro-preview (the latest Pro flagship), gemini-3.1-pro-preview and gemini-2.5-pro, plus the fast, cheap Flash tier — gemini-3-flash-preview, gemini-2.5-flash and gemini-3.1-flash-lite-preview — all at base URL https://apitopmix.com/v1.

Everything below works from one sk- key. Because ApiTopMix is OpenAI-compatible, your existing code keeps working — you change the base_url and the model string, nothing else. Billing is pay-per-use and sits below Google's official list price, so a cheap Gemini API path is the default rather than a promo, and the Flash tier is especially cheap for high-volume traffic. There is no Google Cloud project to create and no separate Google AI Studio account to set up: ApiTopMix provides the gateway.

TL;DR: One key, the whole Gemini lineup — Pro (gemini-3-pro-preview, gemini-3.1-pro-preview, gemini-2.5-pro) for capability, long context and multimodal; Flash (gemini-3-flash-preview, gemini-2.5-flash, gemini-3.1-flash-lite-preview) for fast, very cheap, high-volume work. OpenAI-compatible base URL https://apitopmix.com/v1. See per-model rates on the ApiTopMix pricing page.

What Google Gemini is good at

Gemini is Google's flagship model family, and it earns its place on three strengths that map cleanly to real workloads. If your app touches images, huge inputs, or high request volume, the Gemini API is a natural fit:

The practical pattern is to send hard, high-value steps to a Pro model and everything else to Flash — more on that split next. Because both tiers share one key and one base URL, routing is just a change to the model string.

Gemini Pro vs Flash — two tiers

Google splits Gemini into two tiers, and ApiTopMix exposes both behind the same sk- key and the same base URL. You choose per request simply by which model id you send.

Pro tier

gemini-3-pro-preview

The most capable tier: the strongest reasoning, the longest context and the best multimodal understanding. Reach for Pro on hard problems, deep document analysis, complex vision tasks and anything where quality matters most. Includes gemini-3.1-pro-preview and gemini-2.5-pro.

Flash tier

gemini-3-flash-preview

The fast, very cheap tier: built for high-volume traffic where latency and cost dominate — chat, classification, extraction and simple agents. Includes gemini-2.5-flash and the even lighter gemini-3.1-flash-lite-preview. This is where the Gemini Flash API shines.

In short: Pro is the capability tier for the hard, high-value calls, and Flash is the volume tier that keeps costs low when you are sending a lot of traffic. Many teams default to Flash and escalate only the hardest steps to a Pro model like gemini-3-pro-preview. Because it is all one key, you can route per task or even A/B test by swapping the model string.

The Google Gemini model lineup

ApiTopMix keeps the full Gemini lineup available so you can run on the latest Pro flagship, pin a specific version, or drop down to Flash for cheap high-volume work. Here is the complete Google Gemini lineup and the exact model ids:

Model id Tier Positioning Endpoint Pricing
gemini-3-pro-preview Pro Latest Pro flagship — most capable, long context, best multimodal /v1/chat/completions See live pricing
gemini-3.1-pro-preview Pro Newer Pro preview — capable reasoning and long-context work /v1/chat/completions See live pricing
gemini-2.5-pro Pro Proven Pro release — pin for reproducibility or existing evals /v1/chat/completions See live pricing
gemini-3-flash-preview Flash Latest Flash — fast and cheap for high-volume traffic /v1/chat/completions See live pricing
gemini-2.5-flash Flash Proven Flash release — balanced speed, cost and quality /v1/chat/completions See live pricing
gemini-3.1-flash-lite-preview Flash Lightest tier — cheapest per call for the highest volumes /v1/chat/completions See live pricing

No prices are printed here on purpose: rates change, and the ApiTopMix pricing page is always the source of truth. What is stable is the shape of the lineup — gemini-3-pro-preview is the current Pro flagship, gemini-2.5-pro stays available for pinning, and the Flash tier (down to gemini-3.1-flash-lite-preview) is where Gemini API pricing gets very cheap for volume.

How to call the Gemini API

ApiTopMix exposes an OpenAI-compatible endpoint, so calling the Gemini API is the request you already know — just with the ApiTopMix base URL and a Gemini model id. This is the short Gemini API quick-start.

One endpoint, one key

POST https://apitopmix.com/v1/chat/completions  ·  OpenAI-compatible

Get the key first:

  1. Create an account at apitopmix.com/register.
  2. Open the console, go to Tokens, and click Create new token.
  3. Copy the key — it starts with sk-. That single key drives every Gemini model, plus the rest of the catalog.

curl (OpenAI-compatible)

The fastest way to confirm your Gemini API key works — one request to the Pro flagship:

curl · /v1/chat/completions
curl https://apitopmix.com/v1/chat/completions \
  -H "Authorization: Bearer sk-your-apitopmix-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3-pro-preview",
    "messages": [{"role": "user", "content": "Say hi from Google Gemini 3 Pro"}]
  }'

Swap "gemini-3-pro-preview" for "gemini-3.1-pro-preview" or "gemini-2.5-pro" to pin another Pro version, or for "gemini-3-flash-preview" / "gemini-2.5-flash" / "gemini-3.1-flash-lite-preview" to run the cheap Flash tier — everything else stays identical.

Python (openai SDK)

Because the endpoint is OpenAI-compatible, use the official openai Python SDK unchanged — point base_url at ApiTopMix and set the model to a Gemini id. This is the whole trick behind the Gemini OpenAI-compatible API:

Python · openai SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://apitopmix.com/v1",
    api_key="sk-your-apitopmix-key",
)

resp = client.chat.completions.create(
    model="gemini-3-pro-preview",   # or gemini-2.5-pro / gemini-3-flash-preview
    messages=[{"role": "user", "content": "Summarize this long document in five bullets."}],
)

print(resp.choices[0].message.content)

Any framework that speaks the OpenAI protocol — LangChain, LlamaIndex, your own wrapper — works the same way: base URL https://apitopmix.com/v1, your sk- key, and a Gemini model id. To send images, use the standard OpenAI multimodal message format (an image_url content part) and Gemini's vision handles the rest.

Tip — route by tier: Point your high-volume path at gemini-2.5-flash or gemini-3.1-flash-lite-preview to keep costs low, and escalate only the hard requests to gemini-3-pro-preview. Since it is one key and one base URL, this is a single line of routing logic on the model string.

Migrating from Google AI Studio or Vertex AI

If you currently reach Gemini through Google AI Studio or Vertex AI, moving to ApiTopMix is a two-line change — and it removes the Google Cloud setup entirely. You keep your code, your SDK and your request shape; you change where requests go and which key you send:

That is it — no rewrite of your request/response handling, streaming or tool-calling logic, because the OpenAI-compatible surface matches what you already use. It also means you can buy Gemini API access and use the Gemini API without Google Cloud: an ApiTopMix account and key is all you need — no project, no billing account, no Vertex configuration. ApiTopMix provides the gateway; you keep your existing code. If you were juggling several provider SDKs, note that the same key also reaches GPT and Claude, so you can consolidate onto one interface.

Gemini vs GPT vs Claude — which model?

The Gemini vs GPT (and Claude) question comes down to what each family does best, and on ApiTopMix you do not have to pick just one — all three live behind the same key and the same OpenAI-compatible base URL:

Because you route each task to whichever model fits and compare them by changing only the model string, you can benchmark Gemini vs GPT on your own prompts in minutes rather than opening three accounts. The pricing page lists rates for all three families side by side.

Why use ApiTopMix for the Gemini API

ApiTopMix is a unified AI API gateway. For Google Gemini, that turns into a few concrete wins:

🔑

One key, the whole lineup

A single sk- key calls gemini-3-pro-preview, the other Pro versions and the whole Flash tier — plus GPT, Claude and the rest of the catalog. No per-provider account juggling.

🔧

OpenAI-compatible

Standard /v1/chat/completions for any OpenAI SDK or framework. Point base_url at https://apitopmix.com/v1, set the model to a Gemini id, and you are done.

💰

Below official, cheap at volume

Rates sit below Google's official list price, and the Flash tier is very cheap for high volume — so Gemini API pricing stays affordable. See the pricing page.

🌐

No Google Cloud required

Skip the Google Cloud project, Vertex config and service accounts. An ApiTopMix account and key gets you Gemini API access in minutes, pay-per-use.

Frequently asked questions

How do I get a Gemini API key?

Create an account at apitopmix.com/register, open the console, go to Tokens, and create a new token. Copy the sk- string — that single key unlocks the whole Google Gemini lineup (gemini-3-pro-preview, gemini-3.1-pro-preview, gemini-2.5-pro, gemini-3-flash-preview, gemini-2.5-flash and gemini-3.1-flash-lite-preview) plus the rest of the catalog. Billing is pay-per-use, so you can start calling the Gemini API immediately — no subscription, no Google Cloud project and no separate Google AI Studio account.

Is there a cheaper Gemini API?

Yes. ApiTopMix provides the Gemini API pay-per-use, with rates below Google's official list price, and the Flash tier (gemini-3-flash-preview, gemini-2.5-flash, gemini-3.1-flash-lite-preview) is very cheap for high-volume traffic — a genuinely cheap Gemini API path while keeping the OpenAI-compatible surface you already use. For current numbers, the ApiTopMix pricing page is the source of truth.

Which Gemini model should I use?

Use a Pro model (gemini-3-pro-preview, gemini-3.1-pro-preview or gemini-2.5-pro) when you need the most capable reasoning, the longest context and the strongest multimodal understanding. Use a Flash model (gemini-3-flash-preview, gemini-2.5-flash or gemini-3.1-flash-lite-preview) when you need fast, very cheap responses at high volume. Because every model shares one key and the same base URL, route Pro for hard steps and Flash for everything else just by changing the model string.

Is the Gemini API OpenAI-compatible?

Yes. ApiTopMix exposes an OpenAI-compatible endpoint at https://apitopmix.com/v1 (for example /v1/chat/completions). Any tool or SDK that speaks the OpenAI protocol works by pointing base_url at https://apitopmix.com/v1 and setting the model to gemini-3-pro-preview or any other Gemini id. Existing OpenAI SDK code keeps working with only a base_url and model change — you call Gemini through the same interface you already use for GPT.

Can I use the Gemini API without Google Cloud or Vertex AI?

Yes. ApiTopMix provides access to Google Gemini through its own gateway, so you only need an ApiTopMix account and an sk- key — there is no Google Cloud project to set up, no Vertex AI configuration and no separate Google AI Studio account. That is the fastest way to get Gemini API access, and billing is pay-per-use below the official price.

What is Gemini good at?

Google Gemini is a strong multimodal family: it handles text and vision (images) well, offers very long context windows for large documents and codebases, and is competitively priced. The Pro tier is best for the most capable reasoning, long-context work and multimodal understanding; the Flash tier is built for fast, very cheap, high-volume traffic. All of it is reachable on ApiTopMix through one OpenAI-compatible key.

How does Gemini compare to GPT and Claude?

Gemini is known for strong multimodal understanding, very long context and competitive pricing, with Flash being especially cheap for high volume. GPT is a strong all-round choice, and Claude is a favorite for coding and long-form reasoning. On ApiTopMix all three families live behind one key and the same OpenAI-compatible base URL, so you can route each task to whichever model fits and compare Gemini vs GPT by changing only the model string. See the GPT-5 API and cheap Claude API pages for those families.

Does Gemini support long context and multimodal input?

Yes. Gemini is designed for very long context, so you can pass large documents, long transcripts or big codebases in a single request, and its models accept multimodal input such as images alongside text. On ApiTopMix you use these capabilities through the same OpenAI-compatible endpoint at https://apitopmix.com/v1 — point base_url there, set the model to a Gemini id such as gemini-3-pro-preview, and send your request.

Can I buy Gemini API access and pay per use?

Yes. ApiTopMix lets you buy Gemini API access on a pay-per-use basis — top up your account, create a key and start calling any Gemini model immediately, with no subscription and no Google Cloud billing account. Rates sit below Google's official price, and Flash is very cheap for high-volume workloads. Current per-model numbers are on the ApiTopMix pricing page.

Start building on the Gemini API

Grab one key, choose a model — gemini-3-pro-preview for capability or gemini-2.5-flash for cheap high volume — and call it at https://apitopmix.com/v1. Pay-per-use, below official price.

Further reading

Conclusion

The Google Gemini API is the family you reach for when your workload is multimodal, long-context, or cost-sensitive at scale. On ApiTopMix you get the whole lineup behind one sk- key at an OpenAI-compatible base URL, https://apitopmix.com/v1: the latest gemini-3-pro-preview and the rest of the Pro tier for capability, and the very cheap Flash tier — gemini-3-flash-preview, gemini-2.5-flash, gemini-3.1-flash-lite-preview — for high volume, with no Google Cloud project required.

Set it up once — a curl test or a base-URL swap — and pick the right model per task by changing a single string. Get a key, run the curl test above, and check the pricing page for current per-model rates before you scale up.