Code & Chain · Signal Desk

Google Adds Gemini API File Slicing Controls for On-Demand Pages, Cells, and Media Clips

Original sourceblog.google

Summary

Google added native file slicing controls to the Gemini API, enabling server-side extraction of specified pages, cells, and media clips. Developers can specify page ranges in PDFs and Office documents, sheet and cell ranges in spreadsheets, and segments of video and audio, reducing token usage. In…

Key points

  • Developers handling large documents and media can significantly cut token costs and local processing needs by reading only relevant segments when needed.
  • Precise server-side slicing markedly improves the cost structure of long-document and multimedia workflows.
  • Developers can first skim content via summaries or previews, then dig into key passages, reducing latency and cost.

Editorial note

This page is Code & Chain's editorial summary of public sources. It may be prepared with AI assistance and published through an automated workflow. Refer to the original sources; this content is not investment, legal, or tax advice.