Note: Calculation is approximate based on public data. Prices may change, check official websites.
This calculator helps estimate the cost of using Google Gemma 3 4B, a powerful language model. Understanding the pricing structure based on input and output tokens is crucial for managing your AI project expenses effectively.
Key Features:
- Model: Google Gemma 3 4B
- Context Window: 131,072 tokens
- Input Token Cost: $0.02 per 1 Million tokens
- Output Token Cost: $0.04 per 1 Million tokens
- Supports calculation in both USD and EUR.
Formula:
Total Cost = (Number of Input Tokens * Input Cost per Token) + (Number of Output Tokens * Output Cost per Token)
For example:
If you process 100,000 input tokens and generate 50,000 output tokens in a single request:
Input Cost = (100,000 / 1,000,000) * $0.02 = $0.002
Output Cost = (50,000 / 1,000,000) * $0.04 = $0.002
Total Cost = $0.002 + $0.002 = $0.004
Note: Calculations are approximate. Always refer to official Google Cloud pricing for the most up-to-date information.