Understand pricing

Click your Gemini API provider to view provider-specific content and code on this page.


Pricing and whether your Firebase project needs to be on the pay-as-you-go Blaze pricing plan depends on your chosen Gemini API provider and the features of Firebase AI Logic that you use.

Using Firebase AI Logic is free-of-charge.

However, you might incur costs when you use other products in conjunction with Firebase AI Logic.

  • Other Firebase products may incur costs. For details, see the Pricing page.

    • Using some of the attestation providers supported by Firebase App Check.
    • Using the paid tier of Firebase Authentication.

    • Using the paid tier of one of Firebase's database products.

  • Your chosen Gemini API provider may incur costs. For details, see Gemini Developer API pricing.

    • Pricing is largely based on the model and features that you use.

    • Using some models (especially preview models) might require billing.

Firebase pricing plan requirements for your chosen API provider

The Gemini Developer API offers different tiers for its pricing:

  • Gemini Developer API "free tier": This tier requires that your project is not linked to a Cloud Billing account. This means your Firebase project is on the no-cost Spark pricing plan.

  • Gemini Developer API "paid tiers": These tiers require that your project is linked to a Cloud Billing account. This means your Firebase project is on the pay-as-you-go Blaze pricing plan.

Learn about the Gemini Developer API pricing in its documentation.

Recommendations to manage costs

We recommend doing the following to help manage your costs: