llm-gemini-youtube
LLM plugin for agentic YouTube video understanding with Gemini.
The plugin uses the Gemini Interactions API and enables agentic processing for every video. Gemini can selectively inspect the frames, audio, and transcript needed to answer the prompt instead of processing the whole video at a fixed frame rate.
Project history
- The 0.0.x series provided server-side YouTube URL processing. That capability was later adopted upstream by
simonw/llm-geminiin PR #112: Add support for media_resolution and processing Youtube URLs server-side. - Starting with the 0.1.x series, this project was rebooted to focus exclusively on Google's agentic video understanding with Gemini.
Installation
Install this plugin in the same environment as LLM.
llm install llm-gemini-youtube
Usage
llm -m gemini-3.7-flash-yt -a 'https://www.youtube.com/watch?v=9hE5-98ZeCg' 'Can you summarize this video?'
llm -m gemini-3.6-flash-yt -a 'https://www.youtube.com/watch?v=9hE5-98ZeCg' 'What are the examples given at 01:05 and 01:19 supposed to show us?'
llm -m gemini-3.5-flash-lite-yt -a 'https://www.youtube.com/watch?v=9hE5-98ZeCg' 'Transcribe the audio from this video, giving timestamps for salient events in the video. Also provide visual descriptions.'
Supported models are gemini-3.7-flash-yt, gemini-3.6-flash-yt, and gemini-3.5-flash-lite-yt. Configure the API key using LLM's standard key mechanism:
llm keys set gemini
Google Cloud
The Google Gen AI SDK can route requests through Gemini Enterprise Agent Platform using its standard environment variables:
export GOOGLE_GENAI_USE_ENTERPRISE=1
export GOOGLE_CLOUD_PROJECT='your-project-id'
export GOOGLE_CLOUD_LOCATION='us-central1'
gcloud auth application-default login
The Gemini key must still be configured for LLM. When the Enterprise variables include a project and location, the SDK selects Google Cloud credentials instead of the API key.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-gemini-youtube
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
python -m pip install -e '.[test]'
To run the tests:
python -m pytest
Release files for llm-gemini-youtube 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llm_gemini_youtube-0.1.0.tar.gz | 9.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_gemini_youtube-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.3 kB
Release files / llm_gemini_youtube-0.1.0.tar.gz
| Download URL | llm_gemini_youtube-0.1.0.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9fdee02014e72aca90034ca4cae4fb996d18edac464aad63bb0fb5574174abb
|
|
BLAKE2b-256 checksum How to use checksums |
5d5f5b76c648934726fa9f159d48f27c6b8a62c7162c43247850cd7ebd76c2fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logRelease files / llm_gemini_youtube-0.1.0-py3-none-any.whl
| Download URL | llm_gemini_youtube-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
841849037fcf48abfd096f792efeedfd02408e6d70b37862c11faa82cae78e43
|
|
BLAKE2b-256 checksum How to use checksums |
6cb31c5b0a2a9c703b35dc6192e0fd4565bc7fd74d3dbb7dcd966604dbe507fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency log