Gemini API Cost Calculator | Calculate Gemini Token & API Costs

Calculate Gemini API costs based on input tokens, output tokens, API requests and monthly usage. Compare Gemini model pricing and estimate how much your Gemini API workload could cost.

Quick Answer: Gemini API cost is generally calculated from the number of input and output tokens multiplied by the applicable price per million tokens. Gemini models can have different prices depending on the model, pricing tier and token type.
GEMINI API COST CALCULATOR

Gemini API Cost Calculator

Enter your Gemini token usage, choose a model and estimate the cost per request and your projected monthly API spend.

Tokens sent to Gemini.

Tokens generated by Gemini.

$0.30 input / $2.50 output per 1M tokens

Number of requests using this token volume.

Cost formula: (Input tokens ÷ 1,000,000 × input price) + (Output tokens ÷ 1,000,000 × output price)
Estimated Gemini API Cost
$0.0016

Estimated cost for one API request

Input Cost $0.0003
Output Cost $0.0013
Total Tokens 1,500
Monthly Cost $16.00
Cost / 1,000 Requests
$1.60
Cost / 1M Requests
$1,600.00
Monthly Tokens
15M

Gemini API Model Cost Comparison

Compare the estimated cost of the same token workload across Gemini models.

Gemini Model Input / 1M Output / 1M Cost / Request Monthly

Pricing shown is for standard token usage where applicable. Gemini pricing can vary by model, pricing tier, token type, context length and other Google services used with the API.

Gemini API Monthly Budget Planner

Enter a monthly budget to estimate how many Gemini API requests your budget could support.

Approx. Requests 62,500
Tokens Processed 93.75M

Budget estimates assume the same input and output token volume for each request.

What Affects Gemini API Cost?

Input tokens: Tokens sent to Gemini are normally billed according to the selected model's input-token price.

Output tokens: Tokens generated by Gemini are generally priced separately from input tokens.

Model selection: Different Gemini models have different pricing. A smaller model may be significantly cheaper for high-volume workloads.

Context size: Some Gemini models use different pricing when prompts exceed specific token thresholds.

Additional services: Features such as grounding, caching, search and other Google services may introduce additional charges.

Important:

Gemini API pricing can change and some models have different standard, batch, flex or priority rates. Always verify the current Google pricing page before using this calculator for production budgeting.

Gemini API Usage Scenarios

See how different token workloads can affect Gemini API costs.

Simple Prompt
1K input + 500 output

Useful for classification, short answers and lightweight AI features.

Document Analysis
10K input + 2K output

Suitable for document summarization, extraction and question answering.

Large Context
100K input + 5K output

Useful for large documents, repositories and long-context AI workflows.

Frequently Asked Questions

How is Gemini API cost calculated?

Gemini API cost is generally calculated by multiplying input and output token usage by their respective prices per million tokens.

How much does Gemini API cost?

Gemini API pricing depends on the model and usage type. Different Gemini models have different input and output token prices.

Is Gemini API free?

Google provides a free tier for eligible Gemini API models, but availability, limits and pricing vary by model and account tier.

What is the cheapest Gemini model?

The lowest-cost option depends on the currently available Gemini models and pricing tier. Cost should be compared against the quality and capabilities required by your application.

Are Gemini input and output tokens priced differently?

Yes. Gemini models can have separate input and output token prices, with output tokens often costing more.

Does Gemini API pricing change for large prompts?

Some Gemini models have different pricing for prompts above specified token thresholds. Check the current Google pricing documentation for the model you are using.

Does this calculator include Google Search grounding?

No. The basic calculation estimates token costs. Grounding and other additional services can introduce separate charges.

Can I use this calculator for production budgeting?

It is useful for planning and estimates. Before production deployment, verify the current Gemini pricing, usage tier, caching, grounding and other applicable charges.

Last reviewed: September 3, 2026. Gemini API pricing can change. Verify current pricing with Google's official Gemini API documentation before production budgeting.

This calculator provides estimates for planning and educational purposes. Actual API billing may vary according to model, pricing tier, token type, caching, batch processing, grounding, tools and other Google services.

Stay Updated with New Calculators

Get the latest AI tools and calculators directly in your inbox.