Gemini API Adds File Slicing: How Much Can Token Costs Be Saved by Reading Only Needed File Content? Real Calculations for 4 File Types
Short answer: savings depend on how much you don’t read. Based on the Token units Google officially publishes: when you read only 5 pages of a 100-page PDF, file input Tokens drop by roughly 95%; trimming a 60-minute video to 5 minutes cuts them by about 91.7%; trimming 30 minutes of audio to 90 seconds … Read more