You no longer have to choose between paying to tokenize a 200-page PDF / 12-tab Excel model in full or maintaining fragile server-side LibreOffice, ffmpeg, and openpyxl slicing glue. Google now performs range cropping and layer extraction server-side—and only bills you for the slice you ask for.
Before November 18, passing a 120-page slide deck or financial workbook into Gemini at default medium resolution (~560 tokens/page) cost roughly 67,200 input tokens per turn—and you still had to convert Office formats or parse XML yourself if you wanted only a single tab or formula table.
content_layers: ["page_text"] first, then sending a targeted follow-up request with content_layers: ["page_image"] and resolution: "high" (~1,120 tokens/page) solely for the 3–5 pages containing charts, schematics, or dense footnotes.spreadsheet_options, financial and operations teams can isolate sheet_index: 2 and visible_cells: "A1:H50" while requesting ["data", "formulas", "visual"]. You see both raw Excel formulas and the rendered chart snapshot without ingesting 49,000 unrelated rows from other tabs.function_result)When a tool returns a file inside a top-level function_result block using processing and resolution, Gemini automatically receives structural metadata—such as total page counts and worksheet names—without charging full-file rendering tokens. That means an agent investigating a 400-page hardware manual or multi-sheet workbook can inspect pages 1–3 (table of contents) or sheet names on Turn 1, then request pages 14–16 at "high" resolution on Turn 2.
content_layers: ["transcript"] on a 60-minute video bills only text tokens for the timestamped transcript. Once the model locates the incident at 1200s–1500s, a follow-up request fetches content_layers: ["frames"] at custom fps (up to 24) for that 5-minute window only.start_offset: "60s" and end_offset: "150s" on an uploaded audio block and pay strictly for the 90-second clip—eliminating server-side ffmpeg transcoding jobs.With interactions.authTokens and experimental interactions.connect over WebRTC and WebSocket in @google/genai / google-genai v3.5.0+, your backend mints a short-lived auth token and lets the browser or mobile client stream live audio/video directly to Gemini Interactions—while defer_loading: true on MCPServer in v3.6.0 keeps huge tool catalogs out of your system prompt until needed.
start_offset past the audio/video length or a sheet_index <= 0 (or above the workbook sheet count) returns 400 INVALID_ARGUMENT. An end_offset past the media duration clamps automatically to the end.interactions.connect and interactions.authTokens emit a one-time experimental SDK warning in v3.5–v3.6 and target v1beta—pin your SDK version and wrap client handlers behind an adapter interface.