gemini-interactions-api

gemini-interactions-api is a skill for Claude Code, Codex from pinkpixel-dev/imaginate-mcp. It costs 80 tokens per session (4,514 once invoked), scanned A, a copy of gemini-interactions-api, Apache-2.0.

A coding reference for using Google's Gemini Interactions API to build applications with text, chat, images, video, audio, streaming, background tasks, function calls, and structured results.

In plain words
What is it for?
Use it when writing or updating code that calls Gemini for generation, multimodal input, image or video work, streaming, background research, function calling, or structured output.
Why use it?
It helps developers choose the documented API patterns and models for Gemini features, including when moving from the older generateContent API.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/pinkpixel-dev/imaginate-mcp/gemini-interactions-api
Any agent
npx skills add pinkpixel-dev/imaginate-mcp --skill gemini-interactions-api
Clone the repo
git clone --depth 1 https://github.com/pinkpixel-dev/imaginate-mcp

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/pinkpixel-dev/imaginate-mcp/gemini-interactions-api.svg)](https://agentmods.dev/skills/pinkpixel-dev/imaginate-mcp/gemini-interactions-api)
Your own site
<a href="https://agentmods.dev/skills/pinkpixel-dev/imaginate-mcp/gemini-interactions-api"><img src="https://agentmods.dev/badge/skills/pinkpixel-dev/imaginate-mcp/gemini-interactions-api.svg" alt="Measured on agentmods" 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,514 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 94% 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 $0.00080 $0.04514
Opus 5 $0.00040 $0.02257
Sonnet 5 $0.00016 $0.00903
Haiku 4.5 $0.00008 $0.00451

Measured 3d ago against content hash c87556a0c5a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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

94% identical to gemini-interactions-api — 26 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.

.agents/skills/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.7-flash: 1M tokens, fast, balanced performance for agentic and multimodal tasks
  • gemini-3.5-flash-lite: 1M tokens, fastest, lowest-cost 3.5 model for high-throughput execution
  • 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.7-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

Read the full file on GitHub · 425 lines

Files

What ships with it

1 file 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. 3d ago First seen · 425 lines · 80 tokens per session scan A c87556a0c5a2

Subscribe to this mod's changes

gemini-interactions-api is a skill published in the GitHub repository pinkpixel-dev/imaginate-mcp (1 stars, last pushed 9d ago), licensed Apache-2.0. It adds 80 tokens to every session and 4,514 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 94% identical to gemini-interactions-api, differing in 26 lines, and is treated as a copy.

Related

Other skills, from other repositories

replicate-images

Use when generating or editing images through the Replicate API, or when a modern image model keeps ignoring the prompt — choosing aspect ratio, resolution, seed and output format, image-to-image, multi-reference composition, text-driven inpainting, readable text inside a generated image, and structuring prompts per…

ericrisco/rsc-harness · 84 tokens

flux-3-product-ads

Use when building a finished product ad from FLUX 3 - shot design, voiceover, action-to-word sync, evidence-gated copy, deterministic assembly, and QC gates that catch clipped audio, floating products, off-model plates, and reports that claim a pass the build did not give.

black-forest-labs/skills · 66 tokens

bfl-api

BFL FLUX API integration guide covering endpoints, async polling patterns, rate limiting, error handling, webhooks, and regional endpoints with Python and TypeScript code examples.

black-forest-labs/skills · 38 tokens

flux-3-archival-formats

Use when a FLUX 3 video needs a period or archival look. Covers naming a recording format instead of a mood, per-format artifacts, and templates.

black-forest-labs/skills · 41 tokens

flux-3-keyframes-continuation

Use when a FLUX 3 video must be built from supplied images or video. Covers keyframes (i2v) and continuation (v2v).

black-forest-labs/skills · 41 tokens

flux-3-prompt-doctor

Use when diagnosing a FLUX 3 brief before generation. Resolve missing, conflicting, or schema-changing requirements.

black-forest-labs/skills · 30 tokens