Communitygithub.com

google-gemini/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-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 生態系統中進行開發時的完整參考指南。

相容平台~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.

相關技能