◉GEMINI LABJP
●CLI 0.71 — The stable CLI is now v0.71.0, with a v0.71.1 patch out the same day (11/24)●CARBON — Gemini 4 Carbon launch pricing ends 11/30, 5 days left●CANCEL — Report: pressing Ctrl-C during an MCP tool call tells the model the operation was cancelled when it wasn't●2.5 ROUTE — From 12/1, gemini-2.5-pro reroutes to 3.8 Flash and 2.5-flash to 3.5 Flash-Lite. 6 days left●OMNI 1.2 — On 12/3, gemini-omni-1.1-flash switches to 1.2 automatically. 8 days left●IMAGE — Gemini says it can't see your image? Check the format, then the size, then how you sent it●CLI 0.71 — The stable CLI is now v0.71.0, with a v0.71.1 patch out the same day (11/24)●CARBON — Gemini 4 Carbon launch pricing ends 11/30, 5 days left●CANCEL — Report: pressing Ctrl-C during an MCP tool call tells the model the operation was cancelled when it wasn't●2.5 ROUTE — From 12/1, gemini-2.5-pro reroutes to 3.8 Flash and 2.5-flash to 3.5 Flash-Lite. 6 days left●OMNI 1.2 — On 12/3, gemini-omni-1.1-flash switches to 1.2 automatically. 8 days left●IMAGE — Gemini says it can't see your image? Check the format, then the size, then how you sent it
TAG

countTokens

2 articles
← Back to all tags
Related:
gemini-api1multilingual1cost design1python1Gemini API1Cost Management1Batch Processing1Production1
⬡ Gemini Advanced/2026-07-16Advanced

What language should your system instruction be in? Measuring three approaches when most prompts arrive in the user's language

Keep the system instruction in English, or translate it into the user's language? I measured input tokens per language with countTokens, then lined up output-language match and schema compliance to find where nine tokens is enough.

◈ Gemini API/2026-06-18Advanced

Stop a Batch Before It Overspends — A Budget Gate Built on countTokens That Survives a Default-Model Swap

Nightly batches overspend because you only learn the cost after billing. Starting from countTokens, this guide builds a budget gate that folds in thinking tokens and keeps your estimate intact even when the default model changes underneath you.