“gemini-api”
Prompt Caching for Agentic Loops: Cutting Costs in Multi-Turn Systems
Reduce LLM API costs in multi-turn agent systems with prompt caching strategies. Learn to cache system instructions, tool definitions, and conversation context for agentic workflows.
Context Engineering: Managing What the Agent Sees
Master context engineering for LLM agents. Learn to control what information reaches the model, manage token budgets, and optimize context windows for better agent performance and lower costs.
Image Generation APIs and Structured Prompts
Turn image generation from a coin flip into a repeatable pipeline. Structure your prompt, set aspect ratio and size, ground with search, and wire it into code with Gemini image models.
Multimodal Pipelines: Images, Audio, and Video in LLMs
Stop reducing your data to text before the model sees it. Send images, audio, and video natively to Gemini and build one pipeline that understands them together.
Streaming Gemini Interactions: SSE Events, Tools, Thinking, and Agents
A complete guide to streaming Gemini Interactions API responses with server-sent events - understanding step-based event flow, streaming with tools, function calling, thinking summaries, agents, and multimodal image generation.
Gemini File Input Methods: Inline Data, File API, GCS, and URLs Compared
Compare the four ways to include media files in Gemini Interactions API requests - inline base64 data, File API upload, GCS URI registration, and external URLs - with size limits, persistence, and code examples for each.
Mastering the Gemini File API: Upload, Manage, and Prompt With Media Files
A practical guide to the Gemini File API - uploading images, audio, video, and documents up to 2GB, managing file lifecycles, and using them in multimodal prompts with best practices for getting reliable outputs.
How to Run Long-Running AI Tasks With Gemini Background Execution
Learn how to use Gemini Interactions API background execution to run deep research, complex reasoning, and multi-step agent tasks asynchronously, with polling, streaming reconnection, multi-turn chaining, and cancellation patterns.
Building with the Gemini Interactions API: A Developer's Guide to the New Standard
Learn how to build AI applications with the Gemini Interactions API - the new universal interface for Gemini models and agents, covering server-side state management, background execution, migration from generateContent, and best practices.
Build an AI-Powered Code Documentation Bot with the Gemini API
A hands-on tutorial showing how to use the Gemini API and Python to automate the tedious task of writing code documentation.