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.
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.
Estimated cost for one API request
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.
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.
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.
Useful for classification, short answers and lightweight AI features.
Suitable for document summarization, extraction and question answering.
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.