Gemini API cost calculator

The calculator estimates direct Gemini Developer API usage costs in dollars using Google's Paid Tier prices. It calculates costs by model, processing type, input and output tokens, cache and Google Search or Maps Grounding where relevant. This is not a Vertex AI calculator, and Google AI Pro, Google AI Ultra or Google Workspace subscriptions do not automatically fund regular external Gemini API calls.

Gemini API has a Free Tier for certain models and uses, but availability is subject to quotas and rate limits varying by model, account and project. This version calculates Paid Tier list prices and does not assume unlimited free usage. Free Tier availability may change even without token price changes.

Google AI Pro, Google AI Ultra, Google Workspace and consumer AI credits are separate products from regular Gemini Developer API billing. There is no universal ratio between consumer AI credits and API tokens, and they are not a general API balance automatically funding external calls. "Gemini credits calculator" is therefore not the technical name of this tool.

Gemini API cost calculator

Prices last checked: September 24, 2026

View

Simple mode takes the main usage inputs. Advanced mode adds cache and Google Search or Maps Grounding.

Processing type

Gemini API's default synchronous processing.

Asynchronous processing at lower token prices where supported by the model. Batch is intended to complete within up to 24 hours, but does not guarantee an exact completion time.

Best-effort synchronous processing suited to tasks that tolerate latency. Shown only for models where Google publishes explicit support and pricing.

High-priority synchronous processing at premium pricing where supported by the model.

There is no universal price multiplier across models. The calculator uses the price Google actually publishes for the selected model and processing type.

Includes text, images, video, documents, instructions, history and tool material not read from cache.

Include internal thinking billed at the output price, even if it does not appear fully in the final answer.

Output tokens, including thinking

Gemini bills thinking as part of output tokens. Internal thinking not fully shown to the user may also be included in charges. Higher thinking levels can increase token counts, but do not create a separate universal price multiplier.

If you have real API usage data, use it instead of estimates. Actual calculations should include output tokens and thinking tokens reported by Google.

Gemini tokenizes text, images, video, audio, documents, system instructions, conversation history and material returned by tools.

Some models price audio differently from text, image, video or document input. A separate audio field therefore appears only when the selected model has different audio pricing.

Uploading a file through Files API does not itself incur a separate charge according to the approved research, but content the model reads from the file becomes part of token consumption.

Estimated model token cost per request
Average total cost per request
Estimated total workload cost
New input token cost
Output and thinking token cost
Estimated cost for 100 requests
Estimated cost for 1,000 requests
Estimated cost for 10,000 requests
Selected model
Selected processing type
Prices last checked
September 24, 2026

This calculation is an estimate only. Actual charges depend on usage Google records in the project. Free allowances, rate limits and account terms may change, and the calculation excludes taxes, currency conversion, private Enterprise contracts and account promotional credits. For actual costs, use usage metadata and project billing data. Preview model prices and status may change.

How is Gemini API priced?

Gemini Developer API is priced primarily by input and output tokens, with prices varying by model and processing type.

Input can include text, images, video, audio, PDF, system instructions, conversation history and material returned by tools. Output also includes thinking when enabled.

Some capabilities incur additional charges, such as Google Search Grounding, Google Maps Grounding and explicit context cache storage. Total costs can therefore exceed a simple input tokens plus output tokens calculation.

The calculator uses Paid Tier list prices only.

What is the difference between Gemini Developer API and Vertex AI?

This calculator is for direct Gemini Developer API usage through Google AI for Developers.

Vertex AI is a separate Google Cloud product with its own pricing, enterprise options, throughput, regions and service rules. Even with similar model names, do not assume Vertex pricing or behavior is identical to Gemini Developer API.

This version therefore does not calculate Vertex AI or use Vertex prices behind the scenes.

Do Google AI Pro or Ultra include API usage?

Not automatically.

Google AI Pro, Google AI Ultra and Google Workspace are separate products from regular Gemini Developer API billing. Consumer AI credits are not a universal API balance and do not automatically fund external calls from your application.

API billing is managed at Gemini API project level.

What is the difference between Standard, Batch, Flex and Priority?

Standard is the normal synchronous processing type and default.

Batch is asynchronous processing intended to complete within up to 24 hours and offers lower token prices where supported.

Flex is best-effort synchronous processing suited to tasks that can tolerate higher latency.

Priority is high-priority synchronous processing at a higher price.

Not every processing type is supported by every model, and there is no single price multiplier to apply to all of them. The calculator uses only prices Google explicitly publishes for each model and processing type combination.

How does thinking affect pricing?

Thinking is billed as part of output tokens.

Internal thinking not fully shown in the final answer may also count toward token consumption. Higher thinking levels can increase output volume, but there is no additional universal "reasoning fee" beyond the model's output price.

For actual calculations, Google's usage metadata is more reliable than estimates based on visible answer length.

How are text, images, video, audio and documents billed?

Gemini converts all these input types into tokens.

For most general-purpose models, you can enter the total input token count obtained from count_tokens or usage metadata into the calculator.

When audio has different pricing, the calculator displays a separate field for it.

Uploading a file to Files API is not billed separately according to the approved research, but once file content enters the model's context it contributes to token consumption.

How does Context Caching affect costs?

Context Caching can reduce the cost of repeated calls reusing the same context.

Cached read tokens are billed at a separate price and should not be counted again as new input.

Explicit caching also has storage costs based on token count and storage duration in hours. Storage costs belong to the cache itself and are therefore not automatically multiplied by request count.

Google also enables implicit caching in newer models, but a cache hit is not guaranteed. For actual calculations, use the cache-read token count reported by the API.

What happens with long context?

Gemini 3.1 Pro Preview and Gemini 2.5 Pro use two pricing tiers.

The lower tier applies up to and including 200,000 input tokens. Above 200,000, the higher tier applies.

Important: this is not marginal pricing only for tokens above 200,000. When a request crosses the threshold, the higher tier applies to the entire request.

Other Flash models in the calculator do not automatically follow the same rule.

How is Google Search Grounding priced?

In Gemini 3, billing is by non-empty search queries the model actually executes. Google publishes an allowance of 5,000 free units per month shared across Gemini 3.x, followed by 14 dollars per 1,000 queries.

One API request can generate several Search queries, so the client's request count is not necessarily the number of billing units.

Gemini 2.5 uses a different billing method: the unit is a successfully grounded prompt. The Paid Tier has an allowance of 1,500 grounded prompts per day under shared or model-specific rules, followed by 35 dollars per 1,000 grounded prompts.

Model token charges are added separately.

How is Google Maps Grounding priced?

In Gemini 3, billing is by executed Maps queries. Google publishes an allowance of 5,000 free units per month shared across the Gemini 3 family, followed by 14 dollars per 1,000 queries.

In Gemini 2.5, billing is by successfully Maps-grounded prompt, at 25 dollars per 1,000 beyond the relevant daily allowance.

For Gemini 2.5 Pro, the documented allowance is 10,000 grounded prompts per day. For Gemini 2.5 Flash and Flash-Lite, the documented allowance is 1,500 per day.

Maps is unavailable in Batch or Flex for the 2.5 models included in the calculator.

Model tokens are billed separately here as well.

What does the free allowance mean?

Grounding allowances apply at account level and are sometimes shared across several models.

A public calculator cannot know how many units your account has already used. It therefore defaults to paid pricing. In advanced mode, you can manually enter the remaining free units if you know the number.

Gemini API's general Free Tier is not simulated here as an "unlimited 0 dollars" plan, because it is subject to quotas and rate limits varying by model, project and account.

Why can actual costs differ?

Before a request, you can estimate input tokens using count_tokens, but the final cost depends on what actually happens.

Thinking can add output tokens. Implicit caching may or may not produce a hit. Grounding can execute more than one query within a request. Files and tools can add context.

Free allowances also depend on account-level state.

API response usage metadata and project billing data are therefore the best sources for checking actual costs.

Which models are included in the calculator?

Recommended models

  • Gemini 3.8 Flash
  • Gemini 3.7 Flash
  • Gemini 3.5 Flash-Lite
  • Gemini 3.1 Pro Preview

Gemini 3.1 Pro is explicitly marked Preview.

Older active models

  • Gemini 2.5 Pro
  • Gemini 2.5 Flash
  • Gemini 2.5 Flash-Lite

They remain active and priced, but are not shown as the default group for new projects.

What does the calculator exclude?

This version does not calculate:

  • Vertex AI.
  • Google AI Pro, Google AI Ultra or Google Workspace.
  • free-tier quota simulation.
  • Live API and speech-to-speech.
  • TTS and transcription.
  • Image, video or music generation.
  • Embeddings.
  • File Search indexing.
  • Computer Use.
  • Robotics.
  • Deep Research.
  • Managed agents.
  • Gemini Enterprise Agent Platform.

These products use different billing methods or usage patterns and are therefore suited to separate tools.

When were prices checked?

The prices and rules on this page were checked on September 24, 2026.

Gemini 3.8 Flash and Gemini 3.7 Flash use promotional prices published through December 31, 2026. Google has already published higher planned prices for January 1, 2027, but AI24 will not assume they have taken effect without rechecking the official pricing page.

Preview models, service tier availability and Grounding prices can change, so recheck this page when Google updates pricing or model status.

Official sources