← All providers

Google API Pricing, Models & Rate Limits (2026)

Google serves the Gemini family through both a direct Gemini API and Vertex AI. Its distinguishing move is context window: Gemini 3.1 Pro's 2M-token window is the largest of any model on this site, and every current Gemini model reads native audio and video, not just text and images.

Also known as: Gemini, Google AI Studio, Vertex AI.

Current models
3
Legacy models
5
Price range /M
$0.56–$4.50
Max context
2M
Median tok/s
114
Next retirement

Models and prices

ModelInput /MOutput /MBlended /M
Gemini 3.5 Flash Lite$0.25$1.50$0.56
Gemini 3.6 Flash$1.50$9.00$3.38
Gemini 3.1 Pro$2.00$12.00$4.50
5 legacy Google models
Gemini 2.5 Flash Lite$0.18/M blended
Gemini 3.1 Flash Lite$0.56/M blended
Gemini 2.5 Flash$0.85/M blended
Gemini 3.1 Flash$1.69/M blended
Gemini 3.5 Flash$3.38/M blended

Speed

Fastest measured Google model is Gemini 3.5 Flash Lite at 162 tokens/sec (240ms TTFT), median across measured Google models is 114 tokens/sec. See the full speed benchmark methodology.

Operational facts

Verified 2026-08-08 against source.

OpenAI-compatiblePartial
API base URLhttps://generativelanguage.googleapis.com/v1beta
Auth modelAPI key (header or query param); OAuth/service-account on Vertex AI
Prompt cachingYes
Batch discount50%
Free tierFree tier with daily request cap on Google AI Studio
Rate-limit modelFree, then Tier 1-3, promoted by billing status
Data residencyGlobal by default; Vertex AI offers selectable regional endpoints
Trains on API dataNo
SLA publishedYes
DocsOfficial pricingStatus page

Lifecycle

Google has 5 legacy models still routable. Full dates and successors on the model deprecation tracker.

Switching to and from Google

The closest-priced current model to Gemini 3.1 Pro ($4.50/M) outside Google is GPT-5.6 Terra ($4.50/M, 0%). Same request shape through All AI Ask — swap the model id, keep the rest of your code.
The closest-priced current model to Gemini 3.6 Flash ($3.38/M) outside Google is Grok-4.20 Reasoning ($3.00/M, -11.1%). Same request shape through All AI Ask — swap the model id, keep the rest of your code.

Calling Google through All AI Ask

Calling Google directly means adapting client code away from the plain OpenAI request shape — our gateway removes that: every model, including Google's, is called the same way.

curl https://allaiask.com/api/v1/chat \
  -H "Authorization: Bearer $ALLAIASK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gemini-3.5-flash-lite", "messages": [{"role": "user", "content": "Hello"}]}'

FAQ

Is Google OpenAI-compatible?

Partially. Google publishes an OpenAI-compatible mode for some endpoints, but not a full 1:1 replacement for its native API — check https://ai.google.dev/gemini-api/docs before relying on it for every feature you use.

Does Google support prompt caching?

Yes, as of 2026-08-08 — see https://ai.google.dev/gemini-api/docs for the current mechanics and discount.

Does Google have a free tier?

Yes — Free tier with daily request cap on Google AI Studio.

How much does the Google API cost?

Current Google models range from $0.56 to $4.50 per million blended tokens (3:1 input:output). Full per-model pricing is in the table below.

Where is Google API data hosted?

Global by default; Vertex AI offers selectable regional endpoints

Try Google for free

Run real prompts against every current Google model, and every other provider on this site, in one workspace.

Try It Free