Mantieni tutto organizzato con le raccolte Salva e classifica i contenuti in base alle tue preferenze.
Fai clic sul tuo fornitore Gemini API per visualizzare i contenuti e il codice specifici del fornitore in questa pagina.
Il prezzo e la necessità di utilizzare il piano tariffario Blaze con pagamento a consumo per il tuo progetto Firebase dipendono dal fornitore Gemini API che hai scelto e dalle funzionalità di Firebase AI Logic che utilizzi.
L'utilizzo di Firebase AI Logic è senza costi.
Tuttavia, potresti sostenere costi quando utilizzi altri prodotti in combinazione con Firebase AI Logic.
Altri prodotti Firebase potrebbero comportare costi. Per i dettagli, consulta la pagina dei prezzi.
Utilizzo di alcuni dei fornitori di attestazione supportati da Firebase App Check.
Utilizzo del monitoraggio dell'AI nella console Firebase.
Utilizzo di Cloud Storage for Firebase per inviare file nelle richieste multimodali.
Utilizzo del livello a pagamento di Firebase Authentication.
Utilizzo del livello a pagamento di uno dei prodotti di database di Firebase.
Il provider Gemini API che hai scelto potrebbe comportare dei costi. Per i dettagli, consulta i prezzi di Vertex AI Gemini API.
I prezzi si basano in gran parte sul modello e sulle funzionalità che utilizzi.
Requisiti del piano tariffario di Firebase per il fornitore di API scelto
L'utilizzo di Vertex AI Gemini API richiede che il tuo progetto sia collegato a un account Cloud Billing. Ciò significa che il tuo progetto Firebase è incluso nel piano tariffario Blaze con pagamento a consumo.
Abilita il monitoraggio AI per visualizzare le dashboard nella console Firebase con informazioni sulle tue richieste. Il monitoraggio dell'IA nella console Firebase richiede che il tuo progetto Firebase sia collegato a un account Cloud Billing (ovvero che utilizzi il piano Blaze).
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-08-19 UTC."],[],[],null,["\u003cbr /\u003e\n\n\n|-------------------------------------------------------------------------------------------------------------------------------------|\n| *Click your Gemini API provider to view provider-specific content and code on this page.* Gemini Developer API Vertex AI Gemini API |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPricing and whether your Firebase project needs to be on the\n[pay-as-you-go Blaze pricing plan](/pricing) depends on your chosen Gemini API provider and the\nfeatures of Firebase AI Logic that you use.\n\n**Using Firebase AI Logic is free-of-charge.**\n\nHowever, you might incur costs when you use other products in conjunction with\nFirebase AI Logic.\n\n- **Other Firebase products may incur costs.**\n For details, see the [Pricing page](/pricing).\n\n - Using some of the attestation providers supported by Firebase App Check.\n\n \u003c!-- --\u003e\n\n - Using the paid tier of Firebase Authentication.\n\n - Using the paid tier of one of Firebase's database products.\n\n- **Your chosen Gemini API provider may incur costs.**\n For details, see [Gemini Developer API pricing](https://ai.google.dev/gemini-api/docs/pricing).\n\n - Pricing is largely based on the model and features that you use.\n\n - Using some models (especially preview models) might require billing.\n\n| **Tip:** If you're new to Firebase and Google Cloud, check if you're eligible for [$300 of credits](/support/faq#pricing-free-trial) and a Free Trial Cloud Billing account.\n\nFirebase pricing plan requirements for your chosen API provider\n\nThe Gemini Developer API offers different tiers for its pricing:\n\n- **Gemini Developer API \"free tier\"** :\n This tier requires that your project is *not* linked to a\n Cloud Billing account. This means your Firebase project is on the\n no-cost Spark pricing plan.\n\n- **Gemini Developer API \"paid tiers\"** :\n These tiers require that your project is linked to a\n Cloud Billing account. This means your Firebase project is on the\n pay-as-you-go Blaze pricing plan.\n\n| **Important:** If your project is linked to a Cloud Billing account (which means it's on the Blaze plan), then the Gemini Developer API makes all usage of its API be pay-as-you-go pricing (including any usage through the Firebase AI Logic SDKs).\n\nLearn about the\n[Gemini Developer API pricing](https://ai.google.dev/gemini-api/docs/pricing)\nin its documentation.\n\nRecommendations to manage costs\n\nWe recommend doing the following to help manage your costs:\n\n- When using Gemini models, get an estimate of the\n [token size](/docs/ai-logic/count-tokens)\n of your requests using the Count Tokens API.\n\n- Avoid surprise bills by\n [monitoring your costs and usage](/docs/ai-logic/monitoring) and\n [setting up budget alerts](/docs/projects/billing/avoid-surprise-bills#set-up-budget-alert-emails)."]]