Gemini API adds file slicing controls: load only chosen pages, cells, time ranges or content layers, and pay only for tokens the model inspects
Long PDFs, spreadsheets and videos no longer need to go into context whole; slicing happens server-side, and agents can specify slices in function responses.
// Key points
- Works across all Gemini 4 models in Google AI Studio and the Gemini platform (Vertex AI), alongside new native uploads for Microsoft Office and OpenDocument formats; existing file size and page limits still apply
- Documents and slides slice by page range (start_page, end_page), resolution (low, medium or high) and content layer (page_text or page_image); spreadsheets by tab (sheet_index), cell range (visible_cells) and data, formulas or visuals
- Video slices by time interval, fps, resolution and layer (transcript, frames or audio), audio by time interval; a file uploaded once to the Files API can be reused across turns and tool calls by URI
- Partner results: Vercel used 14x fewer tokens skimming one page's text than rendering the whole PDF; LiteLLM cut prompt tokens by 67% for a PDF and 33% for a workbook
Builder's takeThis bears directly on AI Cloud Drive's costs: when a user asks about one clause in a 200-page contract, you shouldn't feed the whole PDF as images every time. I'd have the agent skim with page_text first to locate pages, then request page_image only for the few pages where layout matters. It's the same direction as Tool Retrieval on 11-19: Google is cutting, piece by piece, the context each request has to carry.
// Background · from #Google
Full timeline →- Nov 24 Google publishes AgentDojo results for Semantic governance policies: attack success falls from 48.7% to 0.9%, while clean utility drops 2.6 points
- Nov 24 Google Search connects Wallet to Personal Intelligence in AI Mode, with Drive and the Gemini app to follow in the coming weeks
- Nov 23 Google's Agent Anomaly Detection reaches other clouds: it reads traces and logs from agents on AWS, Azure and on-premises, and flagged all four refund-abuse sessions in testing