{"version":1,"type":"story","url":"https://digestai.news/story/google-launches-native-file-slicing-controls-in-gemini-api","json":"https://digestai.news/story/google-launches-native-file-slicing-controls-in-gemini-api.json","markdown":"https://digestai.news/story/google-launches-native-file-slicing-controls-in-gemini-api.md","slug":"google-launches-native-file-slicing-controls-in-gemini-api","headline":"Google launches native file-slicing controls in Gemini API","summary":"Google added native file‑slicing controls to its Gemini API on November 23, 2026. The update lets developers request only specific pages, spreadsheet ranges or media segments from PDFs, Microsoft Office and OpenDocument files. Tokens are billed only for the content Gemini inspects, reducing prompt‑token usage and local processing. LiteLLM said slicing cut prompt tokens by 67 % for a PDF and 33 % for a workbook in its tests. Vercel reported that extracting text to skim a page used 14 times fewer tokens than rendering the whole PDF. Files can be uploaded once and reused across turns; the API stores uploads for 48 hours and is free where the Gemini API is available. Limits remain 50 MB per file, 1,000 pages per PDF, 2,000 pages or slides per Office/OpenDocument file, and 50,000 cells per spreadsheet sheet. The feature is available in Google AI Studio and Gemini for business, and works with Gemini 3 and Gemini 4 models.","keyPoints":["google adds native file‑slicing controls to gemini api, supporting PDFs, office, and opendocument files.","liteLLM reports slicing cuts prompt tokens by 67 % for PDFs and 33 % for workbooks in its testing.","files api uploads stored 48 hours, no cost where gemini api available, limits 50 MB per file, 1,000 pages per pdf."],"whyItMatters":"The feature lets developers cut token costs when processing large documents, improving efficiency for AI agents and businesses that use Gemini. It also sets a new standard for server‑side file handling in generative‑AI APIs, potentially lowering barriers for complex document workflows.","category":{"slug":"agents","name":"Agents & Tools","url":"https://digestai.news/category/agents"},"entities":{"companies":["Google","Vercel","LiteLLM"],"models":["Gemini 3","Gemini 4"],"people":[]},"firstPublishedAt":"2026-11-23T18:30:05Z","updatedAt":"2026-11-23T18:30:05Z","sourceCount":1,"hasPrimarySource":false,"sources":[{"outlet":"Unite.AI","title":"Google Adds File Slicing and Native Office Support to Gemini API","url":"https://unite.ai/google-adds-file-slicing-and-native-office-support-to-gemini-api","publishedAt":"2026-11-23T18:30:05Z","type":"press","primary":false,"lead":true}],"sourceNotes":null,"discussions":[],"thread":null,"cite":{"text":"Digest AI, \"Google launches native file-slicing controls in Gemini API\", 23 November 2026, https://digestai.news/story/google-launches-native-file-slicing-controls-in-gemini-api","publisher":"Digest AI","title":"Google launches native file-slicing controls in Gemini API","datePublished":"2026-11-23T18:30:05Z","url":"https://digestai.news/story/google-launches-native-file-slicing-controls-in-gemini-api"},"generatedBy":"Written by Digest AI's editorial model from the linked sources; the sources are the record.","license":"Headlines, digests and key points are written by Digest AI and may be quoted with a link to the story page. Linked articles belong to their publishers. Terms: https://digestai.news/terms#reuse"}