gemini-interactions-api

gemini-interactions-api is a skill for Claude Code, Codex from hamzabellouch/agent-skills. It costs 80 tokens per session (4,497 once invoked), scanned A, a copy of gemini-interactions-api, MIT.

A guide for writing applications that use Google’s Gemini Interactions API for conversations, media generation, streaming, research tasks, function calls, and structured results.

In plain words
What is it for?
It is for implementing text and multimodal generation, chat, image or video creation, streaming, background research, function calling, structured JSON output, and API migrations.
Why use it?
It gives developers current model and API guidance when building Gemini integrations or moving away from the older generateContent interface.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for implementing text and multimodal generation, chat, image or video creation, streaming, background research, function calling, structured JSON output, and API migrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamzabellouch/agent-skills/gemini-interactions-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hamzabellouch/agent-skills --skill gemini-interactions-api
Clone the repo
git clone --depth 1 https://github.com/hamzabellouch/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gemini-interactions-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/gemini-interactions-api/github.svg)](https://agentmods.dev/skills/hamzabellouch/agent-skills/gemini-interactions-api)
Your own site
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/gemini-interactions-api"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/gemini-interactions-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gemini-interactions-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/gemini-interactions-api"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/gemini-interactions-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,497 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 88% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00080 $0.04497
Opus 5 $0.00040 $0.02249
Sonnet 5 $0.00016 $0.00899
Haiku 4.5 $0.00008 $0.00450

Measured 8d ago against content hash 5661e1f7781b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

gemini-interactions-api scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

88% identical to gemini-interactions-api — 110 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

AI API and Agent Platform/gemini-interactions-api/SKILL.md · 425 lines

How it starts

The opening of the file, as written. The whole thing — 425 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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, multimodal
  • gemini-3.1-pro-preview: 1M tokens, complex reasoning, coding, research
  • gemini-3.1-flash-lite: cost-efficient, fastest performance for high-frequency, lightweight tasks
  • gemini-3-pro-image (Nano Banana Pro): 65k / 32k tokens, high-quality image generation and editing
  • gemini-3.1-flash-image (Nano Banana 2): 65k / 32k tokens, fast, efficient image generation and editing
  • gemini-3.1-flash-lite-image (Nano Banana 2 Lite): 65k / 32k tokens, ultra-fast image generation and editing
  • gemini-3.1-flash-tts-preview: expressive text-to-speech with Director's Chair prompting
  • gemini-omni-flash-preview: video generation, image-referenced video generation, first-frame-to-video, and video editing
  • gemma-4-31b-it: Gemma 4 dense model, 31B parameters
  • gemma-4-26b-a4b-it: Gemma 4 MoE model, 26B total / 4B active parameters

[!WARNING] Models like gemini-2.5-*, gemini-2.0-*, gemini-1.5-* are legacy and deprecated. Never use them. If a user asks for a deprecated model, use gemini-3.5-flash instead and note the substitution.

Current Agents

  • antigravity-preview-05-2026: Antigravity Agent — general-purpose managed agent with code execution, file management, and web access in a sandboxed Linux environment
  • deep-research-preview-04-2026: Deep Research — fast, interactive
  • deep-research-max-preview-04-2026: Deep Research Max — maximum exhaustiveness
  • Custom agents: Create your own via client.agents.create()

Current SDKs

  • Python: google-genai >= 2.3.0pip install -U google-genai
  • JavaScript/TypeScript: @google/genai >= 2.3.0npm install @google/genai

[!NOTE] SDK versions ≥ 2.0.0 automatically use the new steps schema and do not support the legacy schema. Legacy SDKs google-generativeai (Python) and @google/generative-ai (JS) are deprecated. Never use them.

Read the full file on GitHub · 425 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 425 lines · 80 tokens per session scan A 5661e1f7781b

Subscribe to this mod's changes

gemini-interactions-api is a skill published in the GitHub repository hamzabellouch/agent-skills (4 stars, last pushed 1mo ago), licensed MIT. It adds 80 tokens to every session and 4,497 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to gemini-interactions-api, differing in 110 lines, and is treated as a copy.