Google Gemini
Google Gemini models — including the 3.1, 2.5, 2.0 series and Imagen 4 — are fully supported by TokenSense with native format detection.
Connect Gemini to TokenSense
Already have a TokenSense account? Here's how to start tracking Gemini costs:
Step 1: Go to your dashboard → Provider Keys → Add your Google AI API key (from Google AI Studio or your GCP project).
Step 2:In your workflow, point requests at your TokenSense endpoint using Gemini's native format. TokenSense identifies Gemini requests by the model name and routes them correctly.
Step 3: Authenticate with your TokenSense API key. Costs appear in your dashboard within seconds of each request.
Native Gemini support.TokenSense handles Google's Gemini API format directly. No need to translate requests through an OpenAI compatibility layer — accurate token counting and full feature support.
Current models
All pricing is per 1 million tokens (USD).
| Model | Input (per 1M tokens) | Output (per 1M tokens) |
|---|---|---|
| gemini-3.1-pro-preview | $2.00 | $12.00 |
| gemini-3-flash-preview | $0.50 | $3.00 |
| gemini-3.1-flash-lite-preview | $0.25 | $1.50 |
Retiring models
These models are still supported but have announced retirement dates. Migrate to 3.x models when possible.
| Model | Input (per 1M tokens) | Output (per 1M tokens) | Status |
|---|---|---|---|
| gemini-2.5-pro | $1.25 | $10.00 | Retiring June 17, 2026 |
| gemini-2.5-flash | $0.30 | $2.50 | Retiring June 17, 2026 |
| gemini-2.5-flash-lite | $0.10 | $0.40 | Retiring July 22, 2026 |
| gemini-2.0-flash | $0.10 | $0.40 | Shutting down June 1, 2026 |
| gemini-2.0-flash-lite | $0.075 | $0.30 | Shutting down June 1, 2026 |
Legacy / shut down
| Model | Input (per 1M tokens) | Output (per 1M tokens) | Status |
|---|---|---|---|
| $0.50 | $3.00 | Shut down March 9, 2026 | |
| gemini-1.5-pro | $1.25 | $5.00 | Legacy |
| gemini-1.5-flash | $0.075 | $0.30 | Legacy |
Imagen 4 — image generation
Google's image generation models are priced per image.
| Model | Cost per image | Notes |
|---|---|---|
| imagen-4-ultra | $0.060 | Highest quality |
| imagen-4 | $0.040 | Standard quality |
| imagen-4-fast | $0.020 | Fast generation, lower cost |
Using Gemini in your workflows
TokenSense works with any tool that can make HTTP requests:
n8n: The TokenSense n8n node supports Gemini models. Select a Gemini model in the node configuration.
Make / Zapier: Use an HTTP module pointed at your TokenSense endpoint. Send requests in Gemini's native format. See the Make & Zapier guide.
Custom code: Replace your Gemini API endpoint with your TokenSense endpoint. See the API reference.
