Gemini API adds server-side file slicing and Office support
Brief
The Gemini API can now inspect selected portions of supported files server-side, helping keep context focused and token costs down.
What’s available
- Select document pages, spreadsheet tabs and cell ranges, or audio and video time intervals; configure resolution and content layers where supported.
- Native upload support includes Microsoft Office and OpenDocument formats, alongside PDFs, audio, and video.
- Available now in Google AI Studio and the Gemini platform across Gemini 4 models. Existing file size and page limits still apply.
How it works
- Upload a file once with the Files API and reuse its URI across turns and tool calls.
- Agents can request file slices through a function response; billing covers only the content Gemini inspects.
Generated by AI from the original article. Check the source for full details.