Connect a Gemini API key
Make a Gemini API key, save it in the app, turn on Timelines in the Media Library, and check what it costs with billing on.
By the end of this page, Gemini watches each video in your Media Library and writes a timeline of what happens and when, from its picture and its sound. You need a Gemini API key for it. Google bills the key's account.
Before you start
- A Google account, and the Google AI Studio open in your browser.
- A Media Library with footage in it.
Steps
- In Google AI Studio, press Get API key and create a key. A new key starts with
AQ.. Older keys start withAIza, and both work. - In Creator Toolset, open Settings → API keys, press Add key on the Gemini API row, and paste the key.
- Open Settings → AI by job, and check that Media Library descriptions uses a provider. The Gemini key does not replace it.
- Open Settings → Media Library. Under Search, turn on Shot descriptions if it is off. Timelines appears under it. Turn it on.
Timelines use Gemini 3.8 Flash. Gemini 3.5 Flash-Lite costs less and finds fewer moments: press Use on its row under Timelines to switch. Measured on an 11-minute test video with sound, with billing on, an hour of footage with 3.8 Flash costs about $0.29 at the Light detail level, $0.38 at Standard and $0.81 at Detailed. With Flash-Lite it costs $0.10, $0.14 and $0.22. 3.8 Flash's price doubles on 1 January 2027, to about $0.57, $0.76 and $1.61 an hour.
Check it worked
The Timelines row says Uses the Gemini API key. After a video is read, its timeline appears on the clip. Clicking a moment in the timeline plays the video from there. Search finds a moment by what happens in the video.
If something goes wrong
The Timelines row says Needs a Gemini API key. The key is not saved for this account. Repeat step 2.
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. 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). 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.
Timelines stop after a few clips. A key on Google's free tier allows about 20 calls a day with Gemini 3.8 Flash, and each call covers up to 10 minutes of footage, so a library uses it up within a day. The Timelines row then says the key is on Google's free tier. The app waits for the limit to reset and tries again. Turn on billing for the key's project in Google AI Studio to lift the limit.
Clips are not described yet. The library reads clips in the background, and the monthly budget can hold the reading back. Look at the budget under Shot detail on the same page.
Good to know
- Gemini receives a small copy of each video it watches.
- 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.
- Google's prices on the paid tier, from its pricing page checked on 2026-11-16, per million tokens: Gemini 3.8 Flash $0.75 input and $3.75 output until 31 December 2026, then $1.50 and $7.50 from 1 January 2027; Gemini 3.5 Flash-Lite $0.30 and $2.50. The free tier costs nothing and has daily limits. Google's pricing page is the source to check.
- The Gemini CLI signed in with a free Google account is refused by Google for this work. Use the API key, or Antigravity with your Google account for timelines from the picture only (Timelines).
Updated · This page as Markdown · Something wrong or missing? Tell us