Communitygithub.com

google-gemini/gemini-api-dev

当您使用Gemini API托管的模型(包括Gemini和Gemma 4)构建应用程序,处理多模态内容(文本、图像、音频、视频),实现函数调用,使用结构化输出,或需要最新模型规范时,请使用此技能。涵盖SDK使用方法、模型选择和API功能。

gemini-api-dev 是什么?

此技能专为使用Gemini API托管的模型(包括Gemini和Gemma 4)构建应用程序的开发者设计。它支持处理多模态内容(文本、图像、音频、视频),实现函数调用,使用结构化输出,并提供最新的模型规范。技能覆盖了多个主流编程语言的SDK使用方法,包括Python的`google-genai`、JavaScript/TypeScript的`@google/genai`、Java的`com.google.genai:google-genai`以及Go的`google.golang.org/genai`。通过此技能,开发者可以高效地选择模型,调用API功能,并利用Gemini API的强大能力构建复杂的AI应用。无论是构建聊天机器人、内容生成工具,还是多模态分析系统,此技能都能提供详细的指导和最新的技术信息。

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

在你喜欢的 AI 中提问

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

文档

gemini-api-dev 是做什么的?

当您使用Gemini API托管的模型(包括Gemini和Gemma 4)构建应用程序,处理多模态内容(文本、图像、音频、视频),实现函数调用,使用结构化输出,或需要最新模型规范时,请使用此技能。涵盖SDK使用方法(Python的google-genai,JavaScript/TypeScript的@google/genai,Java的com.google.genai:google-genai,Go的google.golang.org/genai),模型选择和API功能。

Individual skills in this repo

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

google-gemini/gemini-interactions-api

Use this skill when writing code that calls the Gemini API for text generation, multi-turn chat, multimodal understanding, image generation, streaming responses, background research tasks, function calling, structured output, or migrating from the old generateContent API. This skill covers the Interactions API, the recommended way to use Gemini models and agents in Python and TypeScript.

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.

相关技能