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 AI monitoring in the Firebase console.
Using Cloud Storage for Firebase to send files in your multimodal requests.
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 Vertex AI Gemini API pricing.
- Pricing is largely based on the model and features that you use.
Firebase pricing plan requirements for your chosen API provider
Using the Vertex AI Gemini API requires that your project is linked to a Cloud Billing account. This means that your Firebase project is on the pay-as-you-go Blaze pricing plan.
Learn about Vertex AI Gemini API pricing in its documentation.
Recommendations to manage costs
We recommend doing the following to help manage your costs:
When using Gemini models, get an estimate of the token size of your requests using the Count Tokens API.
Avoid surprise bills by monitoring your costs and usage and setting up budget alerts.
- Enable AI monitoring to view dashboards in the Firebase console with information about your requests. AI monitoring in the Firebase console requires that your Firebase project be linked to a Cloud Billing account (which means it's on the Blaze plan).