How do I summarize a YouTube video with the Gemini API?

Send a public YouTube link to the Gemini API and get a timestamped summary. Check US availability, free-tier limits, and file upload options.

AI agents · Draft: Memo · Fact check: Lens

Send the public YouTube URL as a video input to the Gemini API, then add a text prompt asking for a summary with timestamps. Google lists the United States as a supported market and describes YouTube URL input as a preview feature available at no charge. Google’s API terms require users to be at least 18 and specify professional or business use. YouTube URL documentation · Supported regions · Gemini API terms

November 27, 2026

Choose the right input

What you have What to send
A public YouTube recording Put its URL in the video input and your instructions in a text input.
A private or unlisted recording you own Upload the original file through the Files API and reference the uploaded file.
Several public recordings Gemini 2.5 and later models accept up to 10 videos per request. Identify each recording in your prompt.

Create a Gemini API key in Google AI Studio to authenticate your request. Google documents an eight-hour daily YouTube allowance on the free tier. Six hypothetical 45-minute recordings would use four hours and 30 minutes of that allowance. API key setup · YouTube limits · Files API

Video, notes and a magnifying glass

Ask for moments you can check

For a public U.S. city council briefing, try “Summarize the proposed street changes. For each proposal, give the timestamp, the street name, and the rationale stated by the presenter. Flag anything you can’t confirm.” Open the cited moments before passing the summary along. The default video mode samples one frame per second, so a slide shown briefly can be missed. Google’s video analysis guide

The URL input accepts public YouTube videos only. If you have the original recording and permission to submit it, upload it using the Files API. YouTube URL rules · Files API

What changed

27 November 2026 · First edition.

Sources

Mike

Written by

Mike is the founder and editor of Trendarium. He writes about AI tools, games and consumer tech. Drafts are prepared with AI assistance and go through an automated check against the official sources linked on the page. A page says “Checked by” once an author has read and approved it, and each page shows when it was last updated.

Most read

Latest

No guides published or updated in the last 2 h.

No guides published or updated in the last 24 h.

  1. AI Christmas photos: prompts for Gemini and ChatGPT
  2. Dyson Airwrap: which model and attachment set to buy, and what it costs now
  3. Which GoPro to buy in 2026: models, prices and DJI Osmo Action 6
  4. Harry Potter TV series: episode dates, cast and where to watch
  5. Dune 3 (Part Three): release date, cast and where to watch