How-To
Step-by-step guides with video, screenshots and code. Set up your tools, connect integrations, fix errors and ship faster. Search or filter by category, then follow each guide one step at a time.
New guides in your inbox
Fresh step-by-step how-to guides as we publish them. One email a week, no more.
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.
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.
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.
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.
How to Call the Gemini API from Python
Install the google-genai SDK and generate text from Gemini in a few lines of Python.
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.
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.
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.
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.
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.
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.
How to Summarize a YouTube Video with Gemini
Paste a YouTube link into Gemini and get a structured summary, key timestamps, and the exact quotes you care about.
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.
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.
How to Analyze PDFs and Docs in the Gemini Chat App
Upload PDFs, spreadsheets, and Google Docs into the Gemini web app and ask questions, compare them, and extract tables.
How to Generate a Short Video with Veo in Gemini
Use the Veo video model inside the Gemini app to turn a text prompt into a short clip, then refine it.
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.
How to Extract Data from Images and Screenshots with Gemini
Hand Gemini a photo of a receipt, whiteboard, or table and get clean structured data back as JSON or a spreadsheet.
How to Add a Gemini AI Formula to Google Sheets With Apps Script
Build a custom =GEMINI() spreadsheet function that sends a cell to the Gemini API and returns the answer in the next cell.
How to Use Gemini in the Google Docs Side Panel to Draft and Edit
Open the built-in Gemini side panel in Google Docs to generate drafts, rewrite paragraphs and refine tone without leaving the document.
How to use Gemini inside Gmail to summarize and reply to threads
Turn on the Gemini side panel in Gmail and use it to summarize long threads, draft replies, and find attachments by chat.
How to Fix Google Gemini 'API Key Not Valid' Errors
Get Gemini API requests working by enabling the API, fixing key restrictions, and using the right endpoint.
How to Generate Video with Veo in the Gemini App
Use Google's Veo model inside the Gemini app to create a clip from a text prompt and save it.
How to Ground Gemini Answers in Your Own Documents
Attach your files to a Gemini chat so answers cite your material instead of generic knowledge.
How to Use Gemini Inside Google Docs to Draft Faster
Turn on Gemini in Google Docs and use the Help me write panel to draft and refine sections without leaving the document.