Google AI Studio / Gemini APIVerified 2026-11-12
Gemini 3.8 Flash API Pricing & Cost Rules
API Model ID: gemini-3.8-flash · Context Window: 1,048,576 tokens · Max Output: 65,536 tokens
Promotional Rate Alert: Current pricing expires on 2026-12-31. Confirm post-promotional rates before locking long-term production budgets.
Context Tiers & Token Rate Card (USD per 1M Tokens)
| Tier | Std Input | Std Output | Cache Read | Write (Short) | Write (Long) |
|---|---|---|---|---|---|
| Intro Promo (<= 1M, thru 2026-12-31) | $0.75 | $3.75 | $0.075 | $0.75 | N/A |
Prompt Caching Rules
Supported: Yes (explicit)
Minimum Cacheable Prefix: 4,096 tokens
Hourly Cache Storage: $0.50 / 1M tokens / hr
Supports both implicit and explicit caching (min 4,096 tokens). Explicit storage = $0.50/1M/hr thru 2026-12-31 ($1.00/1M/hr starting 2027-01-01).
Batch API & Hosting Notes
Batch Supported: Yes (50% discount · Up to 24h)
Caching in Batch: Allowed + Batch discount stacks onto cache reads
50% off input ($0.375), output ($1.875), and cache read ($0.0375); storage stays $0.50/1M/hr thru 2026-12-31.
Free tier available; Priority tier = 1.8x ($1.35/$6.75/$0.135 thru Dec 31).