StreamingMemeStreamingMemeBuyers Guide
AboutLeaderboardsEventsSubmit News
Subscribe

Daily Brief

The streaming industry in your inbox every morning.

Daily Brief

The streaming industry in your inbox every morning.

StreamingMemeStreamingMeme

The independent buyers guide and news aggregator for the streaming technology industry.

Explore

Buyers GuideLeaderboardsEventsSubmit News

Stay updated

Weekly digest of new companies and streaming news.

Categories

Encoding & SoftwareVideo Delivery & CDNStreaming PlatformsAI for VideoProduction HardwareBusiness NewsMonetization & Ad TechRegulatory & Policy

© 2026 StreamingMeme. All rights reserved.

AboutPrivacy PolicyTermsContact
EncodingCDNPlatformsAI & VideoHardwareBusinessAd TechPolicy
← AI for Video
AI & VideoTechnical DevelopmentJuly 2, 2026

Google Cloud adds local token counting to Gemini Python SDK

Google Cloud adds local token counting to Gemini Python SDK
Google Cloud

Google has updated its GenAI Python SDK to include a LocalTokenizer class, enabling developers to estimate token counts for text and multimodal inputs offline. This feature helps streaming engineers optimize cost, latency, and rate limits for Gemini API requests by processing data locally before API transmission.

Key Takeaways

  • New LocalTokenizer class supports offline text and multimodal token estimation for Gemini 3.1 models
  • Audio tokenization is calculated at a fixed rate of 25 tokens per second of stream time
  • Video sampling defaults to 1 FPS, with frame budgets ranging from 70 to 280 tokens based on resolution
  • Local counting circumvents API rate limits and allows for pre-routing logic based on context size

Why It Matters

Local tokenization provides a critical cost-control mechanism for high-throughput video and audio pipelines. By calculating token payloads before transmission, engineers can dynamically route requests between cost-efficient models like Gemini 3.1 Flash-Lite—which costs $0.25 per million input tokens—and higher-tier models for complex reasoning. This development addresses the growing need for deterministic pricing and lower 'time-to-first-token' latency in real-time multimodal applications. As generative AI shifts toward 'agentic' workflows, local auditing becomes essential to manage the recursive token growth associated with chat histories and hidden system instructions. Watch for third-party benchmarking of local estimation accuracy versus actual API billing metadata in production streaming environments.

Additional Context

The introduction of local tokenization follows Google’s broader effort to unify its developer ecosystem under the second-generation 'google-genai' SDK. According to technical documentation from late June 2026, this SDK is now the exclusive home for Gemini 3 series features, including the 'computer use' tool in Gemini 3.5 Flash and high-fidelity temporal encoding for video. Per VentureBeat (June 2026), these architectural shifts prioritize 'speed-over-scale,' targeting low-latency tasks like real-time content moderation and automated asset generation. Industry pricing trends have further incentivized local pre-processing. As of July 2026, Gemini 3.1 Flash-Lite is positioned as the primary competitor to mid-tier models, maintaining a lower cost-per-million tokens than the legacy Gemini 2.5 Flash while improving reasoning performance. Per Google Cloud (May 2026), the general availability of Flash-Lite has enabled organizations like JetBrains to integrate faster AI-driven code completion, where token efficiency directly impacts the responsiveness of real-time developer interfaces. Competitively, the Gemini 3 family now supports a 1 million token context window, placing it in direct rivalry with high-context models from Anthropic and OpenAI. By offering LocalTokenizer, Google provides an advantage for enterprise security, allowing developers to audit sensitive data volumes without the exposure of a network round-trip. This move mirrors recent shifts in the AI infrastructure market where 'local-first' developer experience is increasingly viewed as a prerequisite for production-grade agentic systems.


Read full article at medium.com

Get this in your inbox → Subscribe

Enjoy our coverage?

Add StreamingMeme as a preferred source on Google to see more of our streaming news at the top of your Search results.

Add as preferred source

Related Articles

MarkTechPost: Induction Labs Photon-1 trains on 18 years of raw video
YouTube: NTT's LLMlet enables distributed LLM inference across browsers via WebRTC
BigGo: YouTube Ads engineers detail staged evaluation framework for LLM agents

Newest

1 day ago
Barchart: Cerebras and AMD partner on low-latency AI inference architecture
1 day ago
Light Reading: Charter sidesteps Starlink partnership rumors as Q2 broadband losses widen
1 day ago
GuruFocus: Fastly joins Experian to secure autonomous commerce at the edge
1 day ago
The BIG Newsletter: Nexstar and TEGNA Accused of Violating Judicial Order in $6.2 Billion Merger
1 day ago
AI Rights Brief: Google and Disney integrate AI provenance directly into programmatic ad workflows
1 day ago
Front Office Sports: World Cup afternoon ratings spark shift toward earlier U.S. game windows
1 day ago
Futurism: Meta and TikTok face backlash over deceptive AI-generated health ads
1 day ago
Wccftech: Qualcomm Adreno 850 GPU to debut AI Frame Fusion technology
1 day ago
Beet.TV: Brands must re-describe catalogs for AI agents to maintain discoverability
1 day ago
daily.dev: AVIF achieves universal browser support as Edge and Safari close gaps
1 day ago
Los Angeles Times: Disney, Netflix, and Amazon recruit AI talent to automate production workflows
1 day ago
Callaba: Callaba standardizes remote production workflows via SRT and NDI integration
1 day ago
Lib.rs: New zero-dependency Rust decoder vp9dec achieves bit-exact VP9 conformance
1 day ago
IT Brief UK: Fetch.ai and RedSquid TV launch first agentic AI television platform
1 day ago
Vocal: TeqBlaze challenges Epom with modular full-stack white-label ad tech suite
1 day ago
Euronews: EU Expert Panel Backs Age Restrictions and Addictive Feature Bans
1 day ago
Cord Cutters News: FCC chair signals scrutiny for potential streaming-exclusive 2030 World Cup rights
1 day ago
Audio Chocolate: Merging Technologies debuts Anubis Premium SPS for mission-critical broadcast audio
1 day ago
Cord Cutters News: Linear contraction accelerates as 14 cable networks vanish in five years
1 day ago
IPWatchdog: EC mandates Google share search data and Android features under DMA

Upcoming Events

Jul
29–30
Buffer-Free VideoSeattle
Aug
17–20
SET EXPOSao Paulo
Sep
11–14
IBCAmsterdam
Sep
13
SportsPro Streamtime Sports LiveAmsterdam
Sep
16–18
RTC.ONKrakow
View all events →

Top Sources

  1. 1.Sports Video Group104
  2. 2.SiliconANGLE91
  3. 3.YouTube63
  4. 4.Tech Times60
  5. 5.AdExchanger57
  6. 6.TechCrunch55
  7. 7.arXiv50
  8. 8.PPC Land48
Full leaderboards →

Newest

1 day ago
Barchart: Cerebras and AMD partner on low-latency AI inference architecture
1 day ago
Light Reading: Charter sidesteps Starlink partnership rumors as Q2 broadband losses widen
1 day ago
GuruFocus: Fastly joins Experian to secure autonomous commerce at the edge
1 day ago
The BIG Newsletter: Nexstar and TEGNA Accused of Violating Judicial Order in $6.2 Billion Merger
1 day ago
AI Rights Brief: Google and Disney integrate AI provenance directly into programmatic ad workflows
1 day ago
Front Office Sports: World Cup afternoon ratings spark shift toward earlier U.S. game windows
1 day ago
Futurism: Meta and TikTok face backlash over deceptive AI-generated health ads
1 day ago
Wccftech: Qualcomm Adreno 850 GPU to debut AI Frame Fusion technology
1 day ago
Beet.TV: Brands must re-describe catalogs for AI agents to maintain discoverability
1 day ago
daily.dev: AVIF achieves universal browser support as Edge and Safari close gaps
1 day ago
Los Angeles Times: Disney, Netflix, and Amazon recruit AI talent to automate production workflows
1 day ago
Callaba: Callaba standardizes remote production workflows via SRT and NDI integration
1 day ago
Lib.rs: New zero-dependency Rust decoder vp9dec achieves bit-exact VP9 conformance
1 day ago
IT Brief UK: Fetch.ai and RedSquid TV launch first agentic AI television platform
1 day ago
Vocal: TeqBlaze challenges Epom with modular full-stack white-label ad tech suite
1 day ago
Euronews: EU Expert Panel Backs Age Restrictions and Addictive Feature Bans
1 day ago
Cord Cutters News: FCC chair signals scrutiny for potential streaming-exclusive 2030 World Cup rights
1 day ago
Audio Chocolate: Merging Technologies debuts Anubis Premium SPS for mission-critical broadcast audio
1 day ago
Cord Cutters News: Linear contraction accelerates as 14 cable networks vanish in five years
1 day ago
IPWatchdog: EC mandates Google share search data and Android features under DMA

Upcoming Events

Jul
29–30
Buffer-Free VideoSeattle
Aug
17–20
SET EXPOSao Paulo
Sep
11–14
IBCAmsterdam
Sep
13
SportsPro Streamtime Sports LiveAmsterdam
Sep
16–18
RTC.ONKrakow
View all events →

Top Sources

  1. 1.Sports Video Group104
  2. 2.SiliconANGLE91
  3. 3.YouTube63
  4. 4.Tech Times60
  5. 5.AdExchanger57
  6. 6.TechCrunch55
  7. 7.arXiv50
  8. 8.PPC Land48
Full leaderboards →