PromptPriceCalculate

Google Gemini API pricing calculator

Gemini 3.1 Pro Pricing Calculator: Input and Output Token Costs

Estimate prompt, response, cached input, and volume costs for Gemini 3.1 Pro. Pricing verified 2026-06-25 from the provider source.

Quick estimate

No API key needed. Pick a model, paste your question, choose the answer length, and get a close cost estimate.

$2/M input$12/M output1,000,000 ctxCache pricingBatchFlexLong context

3. How long will the AI answer be?

Your estimate will appear here.

Paste a prompt, choose an answer length, and calculate.

Pricing table

Input: $2 per 1M tokens

Output: $12 per 1M tokens

Cached input: $0.2 per 1M tokens

Context window: 1,000,000 tokens

Source: https://ai.google.dev/gemini-api/docs/pricing

Example prompt costs

A 2,000 token prompt and 1,000 token answer costs about $0.016000 before tool add-ons.

Long-context general model placeholder.

How much does Gemini 3.1 Pro cost per 1M input tokens?

Gemini 3.1 Pro is seeded at $2 per 1M input tokens for the standard tier.

How much does Gemini 3.1 Pro cost per 1M output tokens?

Gemini 3.1 Pro is seeded at $12 per 1M output tokens.

Does Gemini 3.1 Pro support cached input pricing?

Yes. The cached input seed price is $0.2 per 1M tokens.