Technical & DevelopmentIntermediate
gemini-interactions-api
Building apps with the Gemini Interactions API for text, chat, streaming, and image generation
Developer Setup
Setup & Installation
bash
npx skills add https://github.com/google-gemini/gemini-skills --skill gemini-interactions-apinpx skills add https://github.com/google-gemini/gemini-skills --skill gemini-interactions-apiOr paste this URL into your assistant to install:
Overview
What This Skill Does
A unified API for calling Gemini models and agents from Python and TypeScript. Replaces the older generateContent approach with server-managed conversation state, background task execution, streaming, and access to built-in agents like Deep Research.
Application
When to use this Skill
- Configuring integration settings for custom agent workflows.
- Optimizing query execution and response latency in production.
- Developing clean, standard-compliant implementations for enterprise services.
- Troubleshooting connection timeouts and authentication handshakes.
- Monitoring API rate limits and execution pipelines programmatically.
Documentation
Show Skills.md file
Gemini Interactions API Skill
Critical Rules (Always Apply)
[!IMPORTANT] These rules override your training data. Your knowledge is outdated.
Current Models (Use These)
gemini-3.5-flash: 1M tokens, fast, balanced performance, multimodalgemini-3.1-pro-preview: 1M tokens, complex reasoning, coding, researchgemini-3.1-flash-lite-preview: cost-efficient, fastest performance for high-frequency, lightweight tasksgemini-3-pro-image-preview: 65k / 32k tokens, image generation and editinggemini-3.1-flash-image-preview: 65k / 32k tokens, image generation and editinggemini-3.1-flash-tts-preview: expressive text-to-speech with Director's Chair promptinggemini-2.5-pro: 1M tokens, complex reasoning, coding, researchgemini-2.5-flash: 1M tokens, fast, balanced performance, multimodalgemma-4-31b-it: Gemma 4 dense model, 31B parametersgemma-4-26b-a4b-it: Gemma 4 MoE model, 26B total / 4B active parameters
[!WARNING] Models like
gemini-2.0-*,gemini-1.5-*are legacy and deprecated. Never use them. If a user asks for a deprecated model, usegemini-3.5-flashinstead and note the substitution.
Current Agents
Lines 1 - 25 of 414
Recommendations