gemini-interactions-api
Skill by sickn33
Helps an AI assistant write code that calls the Gemini Interactions API. It is for developers building text, chat, multimodal, streaming and agent features with Gemini models.
Install gemini-interactions-api
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/gemini-interactions-api ~/.claude/skills/gemini-interactions-apiRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install gemini-interactions-api in Claude Code
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/gemini-interactions-api ~/.gemini/antigravity-cli/skills/gemini-interactions-apiAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install gemini-interactions-api in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill helps an AI assistant write code that calls the Gemini Interactions API. It covers text generation, multi-turn chat, multimodal understanding, image and video generation, streaming, function calling and structured output. It also covers migrating existing code from generateContent.
The skill includes Python and JavaScript/TypeScript examples for single requests, stateful conversations, a Deep Research agent that runs in the background, the Antigravity managed agent, and custom agents. It lists current models, agents and SDK versions, and tells the assistant to read the official docs before writing code. It is aimed at developers building apps with Gemini.
Written from the project's SKILL.md and checked against it.
What it can do
- Text and chat generationGenerates text and keeps multi-turn conversation state with previous_interaction_id.
- StreamingStreams responses as server-sent events with step deltas.
- Deep Research agentRuns background research tasks with the deep-research-preview-04-2026 agent.
- Antigravity managed agentRuns code, manages files and browses the web in a sandboxed Linux environment.
- Custom agentsCreates agents with client.agents.create() based on a base agent.
- Multimodal and media generationCovers multimodal understanding, image generation and video generation with Gemini models.
- Function callingCovers function calling in Gemini Interactions requests.
- Structured outputCovers structured output in Gemini Interactions responses.
- Response helpersReads output_text, output_image and output_audio from interaction responses.
- generateContent migrationGuides migration from generateContent with a checklist in references/migration.md.
What you need
- google-genai Python SDK version 2.3.0 or later
- @google/genai npm package version 2.3.0 or later
Try asking
- Write a Python script that calls Gemini with the Interactions API and streams the reply.
- Run a Deep Research task in the background and poll until it completes.
- Migrate this generateContent call to the Gemini Interactions API.
Good to know
- Interactions are stored by default. Free tier keeps them for 1 day and paid tier for 55 days.
- Setting store=false disables previous_interaction_id and background=true.
- The legacy google-generativeai and @google/generative-ai SDKs are deprecated and should not be used.
- Managed agents need environment set to remote to provision a sandbox.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/gemini-interactions-api/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md20 KB -
references/migration.md8 KB
Alternatives to gemini-interactions-api
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
gemini-interactions-api: common questions
Which SDK versions does this skill use?
It uses google-genai 2.3.0 or later for Python and @google/genai 2.3.0 or later for JavaScript and TypeScript. SDK versions 2.0.0 and later use the new steps schema.
Does the skill use the older Gemini SDKs?
No. The source says the legacy google-generativeai and @google/generative-ai SDKs are deprecated and must never be used.
Are the model names in the skill current?
The source says to verify model availability and lifecycle before use. Deprecated models such as gemini-2.0-* and gemini-1.5-* must be replaced.
How do I install gemini-interactions-api?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is gemini-interactions-api free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is gemini-interactions-api safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to gemini-interactions-api?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
