Gemini API billing FAQs

This page provides answers to frequently asked questions about billing for the Gemini API. For pricing information, see the pricing page. For legal terms, see the terms of service.

What am I billed for?

Gemini API pricing is based on total token count, with different prices for input tokens and output tokens. For pricing information, see the pricing page.

Where can I view my quota?

You can view your quota and system limits in the Google Cloud console.

Is GetTokens billed?

Requests to the GetTokens API are not billed, and they don't count against inference quota.

Can I use 1M tokens in the free tier?

The free tier for Gemini API differs based on the model selected. For now, you can try the 1M token context window in the following ways:

  1. In AI Studio
  2. With pay-as-you-go plans
  3. With free-of-charge plans for select models

See the latest free-of-charge rate limits per model on the pricing page.

How is billing handled?

Billing for the Gemini API is handled by the Cloud Billing system.

Am I charged for failed requests?

If your request fails with a 400 or 500 error, you won't be charged for the tokens used.

Is there a charge for fine-tuning the models?

Model tuning is free, but inference on tuned models is charged at the same rate as the base models.

Where can I get help with billing?

To get help with billing, see Get Cloud Billing support.