# Timelines: Gemini watches each clip

> Turn on Timelines with a Gemini API key so each video gets a list of what happens when, and check that it is running. Costs and what happens when Gemini is busy.

With a Gemini API key, each video in the library gets a timeline: a list of what happens, in order, with the second each thing happens. You can click an event to play the clip from that moment, and search finds the second as well as the clip.

## Before you start

- A Gemini API key from Google AI Studio.
- **Shot descriptions** turned on in the library's settings. The **Timelines** switch only appears when it is on.

## Turn it on

1. Open [aistudio.google.com/apikey](https://aistudio.google.com/apikey) and create a Gemini API key. Keys start with `AQ.` or `AIza`. Both work.
2. Open **Settings → API keys** and paste the key into the **Gemini API** row. Save it there.
3. Open **Settings → Media Library**, or the library's **Library settings**, and find the **Search** section.
4. Turn on **Timelines**.
5. Check the row. It should say **Uses the Gemini API key**.

The app sends each video to Gemini after its shot descriptions. A video longer than 10 minutes is sent in parts of 10 minutes, up to three parts at once, so the answer for each part stays whole. Gemini's answers come in beside the shot descriptions: other clips keep being read while one waits for Gemini.

## Check it worked

The **Timelines** row reads **Uses the Gemini API key**. Open a clip that has been read: its panel lists the events with their times. Pressing an event plays the clip from that second.

## Which model

The app uses Gemini 3.8 Flash. In a test on nine clips it found 42 of 44 moments, where Gemini 3.5 Flash-Lite found 34. To spend less, open the library's settings and press **Use** on **Gemini 3.5 Flash-Lite** under **Timelines**. Each model's row shows what an hour of footage costs at the library's detail level. The new model watches the videos read from then on; timelines already made stay as they are.

Google lists 3.8 Flash at $0.75 per million input tokens and $3.75 per million output tokens until 31 December 2026, and $1.50 and $7.50 from 1 January 2027. Flash-Lite is $0.30 and $2.50. Video, audio and text cost the same rate. This was read on Google's pricing page on 16 November 2026.

The app sends Gemini the same file the shot descriptions read: the library's proxy when it has one. A file kept on a Mac with nothing uploaded is copied to the server first, as a small copy made for this.

> **Costs money:** Gemini bills your key. On an 11-minute test video with sound, measured with billing on, an hour of footage with 3.8 Flash costs about $0.29 on Light, $0.38 on Standard and $0.81 on Detailed, and $0.10, $0.14 and $0.22 with Flash-Lite. 3.8 Flash's price doubles on 1 January 2027, to about $0.57, $0.76 and $1.61 an hour. The library's monthly budget counts these costs too.

### Antigravity: picture only, no key

The third row under **Timelines** is **Antigravity**, marked "Picture only, no sound". It uses Antigravity signed in with your Google account on your Mac, and no API key. It sees the picture only, so its timelines have no sound notes: nothing about what is said, retakes or when a sound starts. A Gemini API key stays the better setup and the default.

1. Set up Antigravity in the Mac app first: [Connect your AI](/docs/connect-your-ai) has the steps.
2. In the library's settings, press **Use** on **Antigravity** under **Timelines**.
3. The **Timelines** row says **Uses Antigravity**. Before Antigravity is set up it says **Needs Antigravity**, which opens **Settings → Providers**.

Each 10-minute part of a video goes to Antigravity as a small copy with no sound, made in the run's folder on your Mac and deleted with the run. Parts are watched one at a time. When Google says the quota is used up, the clips wait and are tried again later. The app never moves them to a Gemini key by itself. When you switch a library back to a Gemini model, the clips watched with Antigravity get their timelines made again, with sound.

## If something goes wrong

**The row says "Needs Antigravity".** Antigravity is picked under **Timelines** but is not installed, signed in or turned on for your account. Press the link, then **Install** and **Sign in** on the Antigravity row in **Settings → Providers** in the Mac app. Nothing is watched until then, and the shot descriptions run as before.

**The row says "Needs a Gemini API key".** The key is missing or in another row. Check that it is saved in **Settings → API keys**, in the **Gemini API** row. Then turn **Timelines** off and on again.

**Timelines stays waiting for a few minutes.** Google answers busy at peak times, and one answer can take over ten minutes. The app waits up to 30 minutes for each answer and asks again when Google is busy. Other clips keep being read. A watch that still gets no answer is tried again after six hours.

**The row says "The Gemini credit ran out; timelines wait until it is topped up in Google AI Studio".** The prepaid credit on the key's Google AI Studio account is used up. Google sends no warning before that, and the app can't read the balance, so check it at [aistudio.google.com/billing](https://aistudio.google.com/billing). Until it is topped up, the app makes no more Gemini calls on that key: the timelines wait and are tried again every 6 hours, and they carry on by themselves once the credit is back. The shot descriptions and the rest of the library keep running. You also get a notice, at most once a day: "Out of credit, so it stopped. Top it up at aistudio.google.com/billing". In the Mac app it shows as a Mac notification. **Home → Activity** shows a **Gemini API: out of credit** row under **Waiting on you**, saying "Media Library timelines wait · the rest carries on without Gemini". It goes away by itself once a call on the key works again. Its buttons are your choice for the meantime:

- **Top up** opens Google AI Studio's billing page.
- **Use Antigravity until then** shows when your Antigravity runs (see [Connect your AI](/docs/connect-your-ai)). The waiting timelines, and those of new videos, are made on Antigravity from the picture only. The row then says "Timelines are made on Antigravity, picture only, until it is topped up". Once a call on the key works again, videos go back to Gemini, and the ones watched on Antigravity are made again with sound.
- **Continue without** switches **Timelines** off in your libraries that have a video waiting on the credit, and the row goes. Turn **Timelines** back on in the library's settings after you top up.

Each person picks for themselves. On a key several people share, one person's pick moves only their own videos; the others keep the row and its buttons.

**Gemini stops answering for a while.** Your key has reached Google's quota. The app stops calling Gemini with that key until the wait Google gives has passed, and the other videos wait with it. Check your limits on [Google's pricing page](https://aistudio.google.com/docs/pricing) before a big library. When the key is on Google's free tier, the **Timelines** row says so: the free tier allows about 20 calls a day with 3.8 Flash. Turning on billing in Google AI Studio lifts the limit.

**A video has no timeline.** A failed watch is tried again after six hours. Open the clip to see the error that was kept.

## Good to know

- Timelines do not replace the shot descriptions. The shot descriptions still run without a Gemini key.
- The app does not name the people it hears. Speakers are numbered where they come up.
- A video with no sound track gets no sound notes: Gemini is told the video is silent, and any sound notes it writes anyway are left out.
