Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 91
  • 51k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-api

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install gemini-interactions-api in Claude Code

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

A

No 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 →

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.

gemini-interactions-api Install

Add to stack

Loading.