Community研究与数据分析github.com

google-gemini/gemini-interactions-api

在编写调用 Gemini API 进行文本生成、多轮对话、多模态理解、图像生成、流式响应、后台研究任务、函数调用、结构化输出或从旧的 generateContent API 迁移的代码时使用此技能。此技能涵盖了 Interactions API,这是在 Python 和 TypeScript 中使用 Gemini 模型和代理的推荐方式。

gemini-interactions-api 是什么?

此技能旨在帮助开发者和 AI 代理高效地使用 Google Gemini 的 Interactions API。它涵盖了从核心的文本生成和多轮对话,到高级的多模态理解(如处理图像和视频)、图像生成、实时流式响应以及复杂的后台研究任务等所有功能。该技能还专门指导如何实现函数调用以连接外部工具、生成符合特定模式的结构化输出,以及从旧的 generateContent API 平滑迁移。通过专注于 Python 和 TypeScript 这两种主流语言,它提供了最直接的实践指南,确保开发者能利用 Gemini 模型的最新能力构建各种 AI 应用,是使用 Gemini 系列模型(包括推理模型)的官方推荐入口。

兼容平台~Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/google-gemini/gemini-skills/tree/main/skills/gemini-interactions-api

Installed? Explore more 研究与数据分析 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

gemini-interactions-api 是做什么的?

在编写调用 Gemini API 进行文本生成、多轮对话、多模态理解、图像生成、流式响应、后台研究任务、函数调用、结构化输出或从旧的 generateContent API 迁移的代码时使用此技能。此技能涵盖了 Interactions API,这是在 Python 和 TypeScript 中使用 Gemini 模型和代理的推荐方式。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

google-gemini/gemini-api-dev

Use this skill when building applications with Gemini API hosted models, including Gemini and Gemma 4, working with multimodal content (text, images, audio, video), implementing function calling, using structured outputs, or needing current model specifications. Covers SDK usage (google-genai for Python, @google/genai for JavaScript/TypeScript, com.google.genai:google-genai for Java, google.golang.org/genai for Go), model selection, and API capabilities.

google-gemini/gemini-live-api-dev

Use this skill when building real-time, bidirectional streaming applications with the Gemini Live API. Covers WebSocket-based audio/video/text streaming, voice activity detection (VAD), native audio features, function calling, session management, ephemeral tokens for client-side auth, live translation, and all Live API configuration options. SDKs covered - google-genai (Python), @google/genai (JavaScript/TypeScript).

google-gemini/gemini-skills

Use this skill for generative video editing, text-to-video, image-referenced video generation, first-frame-to-video, first-and-last-frame transitions, and video extensions using Gemini Omni 1.1 Flash (gemini-omni-1.1-flash) via the official google-genai SDK. Includes workflows for pre-processing/optimizing high-resolution or long source videos with ffmpeg, stripping audio for full sound regeneration, and handling turn-by-turn video editing and parallel execution.

google-gemini/vertex-ai-api-dev

Guides the usage of Gemini API on Google Cloud Vertex AI with the Gen AI SDK. Use when the user asks about using Gemini in an enterprise environment or explicitly mentions Vertex AI. Covers SDK usage (Python, JS/TS, Go, Java, C#), capabilities like Live API, tools, multimedia generation, caching, and batch prediction.

相关技能