24 guides

Gemini How-To Guides

Google Gemini setup and workflows. Covers connecting it to your Google tools, writing prompts, and getting consistent output.

Gemini CLI & API

Gemini
Beginner7 min

How to Install the Gemini CLI and Run Your First Prompt

Install Google's open-source Gemini CLI with npm, sign in, and run an interactive coding prompt from your terminal.

Gemini
Beginner6 min

How to Get a Gemini API Key from Google AI Studio

Create a free Gemini API key in Google AI Studio and store it safely as an environment variable.

Gemini
Beginner7 min

How to Call the Gemini API from Python

Install the google-genai SDK and generate text from Gemini in a few lines of Python.

Gemini
Intermediate6 min

How to Give Gemini CLI Project Context with a GEMINI.md File

Create a GEMINI.md memory file so the Gemini CLI knows your project conventions on every run.

Gemini
Beginner6 min

How to Choose the Right Gemini Model for Coding Tasks

Compare Gemini Flash and Pro models and pick the right one for speed, cost, or hard reasoning.

Gemini
Intermediate8 min

How to Fix a Bug in Your Codebase with the Gemini CLI

Use the Gemini CLI agent to locate, diagnose, and patch a real bug, then review the diff before accepting.

Gemini
Beginner7 min

How to Set Up Gemini Code Assist in VS Code

Install the Gemini Code Assist extension, sign in, and get inline completions and chat inside VS Code.

Gemini
Intermediate7 min

How to Stream Gemini Responses in Node.js

Use the JavaScript SDK to stream a Gemini answer token by token instead of waiting for the full reply.

Gemini
Intermediate9 min

How to Feed a Long Document into Gemini's Long Context

Use Gemini's large context window to analyze a whole book or a stack of PDFs in one prompt instead of chunking it.

Gemini
Intermediate6 min

How to Run the Gemini CLI Non-Interactively in Scripts

Pass a prompt with the -p flag and pipe input so the Gemini CLI works inside shell pipelines and CI.

Gemini
Intermediate11 min

How to Analyze a Video File with the Gemini API

Upload an MP4 to the Gemini API with the File API and ask the model to describe scenes, find moments, and pull timestamps.

Gemini
Advanced9 min

How to Connect an MCP Server to the Gemini CLI

Register a Model Context Protocol server in your Gemini CLI settings to give the agent new tools.

Gemini
Intermediate7 min

How to Fix Common Gemini CLI Authentication Errors

Diagnose and resolve the most frequent sign-in, API key, and quota errors in the Gemini CLI.

Gemini
Advanced10 min

How to Cache Long Context in the Gemini API to Cut Costs

Set up explicit context caching so repeated questions about the same large document cost a fraction of the price.

NotebookLM

Chat & Multimodal

Browse other categories