Token导航 LogoToken导航

Agent Skill · 开发

gemini-3-pro-api(Gemini 3 专业版 API)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

gemini-3-pro-api 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,第三方扫描有未通过项,按安装量在开发类的 21,746 个 Skill 里排第 16,013。

总安装 541周安装 23GitHub Stars 9下载 190核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gemini-3-pro-api(Gemini 3 专业版 API)
来源仓库:https://github.com/adaptationio/skrillz
仓库路径:skills/gemini-3-pro-api
安装命令:
npx skills add https://github.com/adaptationio/skrillz --skill gemini-3-pro-api
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/adaptationio/skrillz --skill gemini-3-pro-api

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

此技能提供将 Gemini 3 Pro API 集成到您的应用程序中所需的一切: ✅ 快速设置(< 5 分钟) ✅ 生产就绪的聊天应用程序 ✅ 动态思维配置 ✅ 流式响应 ✅ 错误处理和重试逻辑 ✅ 成本优化策略 ✅ 监控和记录模式 有关多模态、图像生成和高级功能,请参阅配套技能。准备好建造了吗?

从工作流程 1 开始:上面的快速启动设置!每周安装量 23 存储库 适应/skrillz GitHub 之星 9 第一次看到 6 天前 安全审计 Gen 代理信任中心失败 套接字通行证 斯尼克通行证

来源仓库内路径:skills/gemini-3-pro-api

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/adaptationio/skrillz --skill gemini-3-pro-api;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

gemini-3-pro-api 怎么安装?

在终端执行 npx skills add https://github.com/adaptationio/skrillz --skill gemini-3-pro-api。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

gemini-3-pro-api 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

gemini-3-pro-api 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

gemini-3-pro-api 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

gemini-3-pro-api 用的人多吗?

公开数据是累计安装 541 次,近一周安装 23 次,下载 190 次,GitHub 9 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

gemini-3-pro-api 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
gemini-3-pro-api

Gemini 3 专业版 API · 本页

5419接触敏感数据MIT未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Gemini 3 Pro API Integration

Comprehensive guide for integrating Google's Gemini 3 Pro API/SDK into your applications. Covers setup, authentication, text generation, advanced reasoning with dynamic thinking, chat applications, streaming responses, and production deployment patterns.

Overview

Gemini 3 Pro (gemini-3-pro-preview) is Google's most intelligent model designed for complex tasks requiring advanced reasoning and broad world knowledge. This skill provides complete workflows for API integration using Python or Node.js SDKs.

Key Capabilities

  • Massive Context: 1M token input, 64k token output
  • Dynamic Thinking: Adaptive reasoning with high/low modes
  • Streaming: Real-time token delivery
  • Chat: Multi-turn conversations with history
  • Production-Ready: Error handling, retry logic, cost optimization

When to Use This Skill

  • Setting up Gemini 3 Pro API access
  • Building text generation applications
  • Implementing chat applications with reasoning
  • Configuring advanced thinking modes
  • Deploying production Gemini applications
  • Optimizing API usage and costs

Quick Start

Prerequisites

Python Quick Start

# Install SDK
pip install google-genai

# Basic usage
import google.generativeai as genai

genai.configure(api_key="YOUR_API_KEY")
model = genai.GenerativeModel("gemini-3-pro-preview")

response = model.generate_content("Explain quantum computing")
print(response.text)

Node.js Quick Start

// Install SDK
npm install @google/generative-ai

// Basic usage
import { GoogleGenerativeAI } from "@google/generative-ai";

const genAI = new GoogleGenerativeAI("YOUR_API_KEY");
const model = genAI.getGenerativeModel({ model: "gemini-3-pro-preview" });

const result = await model.generateContent("Explain quantum computing");
console.log(result.response.text());

Core Workflows

Workflow 1: Quick Start Setup

Goal: Get from zero to first successful API call in < 5 minutes.

Steps:

  1. Get API Key

- Visit Google AI Studio - Create or select project - Generate API key - Copy key securely

  1. Install SDK # Python pip install google-genai # Node.js npm install @google/generative-ai
  2. Configure Authentication # Python - using environment variable (recommended) import os import google.generativeai as genai genai.configure(api_key=os.getenv("GEMINI_API_KEY")) // Node.js - using environment variable (recommended) const genAI = new GoogleGenerativeAI(process.env.GEMINI_API_KEY);
  3. Make First API Call # Python model = genai.GenerativeModel("gemini-3-pro-preview") response = model.generate_content("Write a haiku about coding") print(response.text)
  4. Verify Success

- Check response received - Verify text output - Note token usage - Confirm API key working

Expected Outcome: Working API integration in under 5 minutes.


Workflow 2: Chat Application Development

Goal: Build a production-ready chat application with conversation history and streaming.

Steps:

  1. Initialize Chat Model # Python model = genai.GenerativeModel("gemini-3-pro-preview", generation_config={"thinking_level": "high", # Dynamic reasoning "temperature": 1.0, # Keep at 1.0 for best results "max_output_tokens": 8192})
  2. Start Chat Session chat = model.start_chat(history=[])
  3. Send Message with Streaming response = chat.send_message("Explain how neural networks learn", stream=True) # Stream tokens in real-time for chunk in response: print(chunk.text, end="", flush=True)
  4. Manage Conversation History # History is automatically maintained # Access it anytime print(f"Conversation turns: {len(chat.history)}") # Continue conversation response = chat.send_message("Can you give an example?")
  5. Handle Thought Signatures

- SDKs handle automatically in standard chat flows - No manual intervention needed for basic use - See references/thought-signatures.md for advanced cases

  1. Implement Error Handling import time from google.api_core import retry, exceptions @retry.Retry(predicate=retry.if_exception_type(exceptions.ResourceExhausted, exceptions.ServiceUnavailable)) def send_with_retry(chat, message): return chat.send_message(message) try: response = send_with_retry(chat, user_input) except exceptions.GoogleAPIError as e: print(f"API error: {e}")

Expected Outcome: Production-ready chat application with streaming, history, and error handling.


Workflow 3: Production Deployment

Goal: Deploy Gemini 3 Pro integration with monitoring, cost control, and reliability.

Steps:

  1. Setup Authentication (Production) # Use environment variables (never hardcode keys) import os from pathlib import Path # Option 1: Environment variable api_key = os.getenv("GEMINI_API_KEY") # Option 2: Secrets manager (recommended for production) # Use Google Secret Manager, AWS Secrets Manager, etc.
  2. Configure Production Settings model = genai.GenerativeModel("gemini-3-pro-preview", generation_config={"thinking_level": "high", # or "low" for simple tasks "temperature": 1.0, # CRITICAL: Keep at 1.0 "max_output_tokens": 4096, "top_p": 0.95, "top_k": 40}, safety_settings={# Configure content filtering as needed})
  3. Implement Comprehensive Error Handling from google.api_core import exceptions, retry import logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) def generate_with_fallback(prompt, max_retries=3): @retry.Retry(predicate=retry.if_exception_type(exceptions.ResourceExhausted, exceptions.ServiceUnavailable, exceptions.DeadlineExceeded), initial=1.0, maximum=10.0, multiplier=2.0, deadline=60.0) def _generate(): return model.generate_content(prompt) try: return _generate() except exceptions.InvalidArgument as e: logger.error(f"Invalid argument: {e}") raise except exceptions.PermissionDenied as e: logger.error(f"Permission denied: {e}") raise except Exception as e: logger.error(f"Unexpected error: {e}") # Fallback to simpler model or cached response return None
  4. Monitor Usage and Costs def log_usage(response): usage = response.usage_metadata logger.info(f"Tokens - Input: {usage.prompt_token_count}, " f"Output: {usage.candidates_token_count}, " f"Total: {usage.total_token_count}") # Estimate cost (for prompts ≤200k tokens) input_cost = (usage.prompt_token_count / 1_000_000) * 2.00 output_cost = (usage.candidates_token_count / 1_000_000) * 12.00 total_cost = input_cost + output_cost logger.info(f"Estimated cost: ${total_cost:.6f}") response = model.generate_content(prompt) log_usage(response)
  5. Implement Rate Limiting import time from collections import deque class RateLimiter: def __init__(self, max_requests_per_minute=60): self.max_rpm = max_requests_per_minute self.requests = deque() def wait_if_needed(self): now = time.time() # Remove requests older than 1 minute while self.requests and self.requests[0] < now - 60: self.requests.popleft() # Check if at limit if len(self.requests) >= self.max_rpm: sleep_time = 60 - (now - self.requests[0]) if sleep_time > 0: time.sleep(sleep_time) self.requests.append(now) limiter = RateLimiter(max_requests_per_minute=60) def generate_with_rate_limit(prompt): limiter.wait_if_needed() return model.generate_content(prompt)
  6. Setup Logging and Monitoring import logging from datetime import datetime # Configure logging logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', handlers=[logging.FileHandler('gemini_api.log'), logging.StreamHandler()]) logger = logging.getLogger(__name__) def monitored_generate(prompt): start_time = datetime.now() try: response = model.generate_content(prompt) duration = (datetime.now() - start_time).total_seconds() logger.info(f"Success - Duration: {duration}s, " f"Tokens: {response.usage_metadata.total_token_count}") return response except Exception as e: duration = (datetime.now() - start_time).total_seconds() logger.error(f"Failed - Duration: {duration}s, Error: {e}") raise

Expected Outcome: Production-ready deployment with monitoring, cost control, error handling, and rate limiting.


Thinking Levels

Dynamic Thinking System

Gemini 3 Pro introduces thinking_level to control reasoning depth:

thinking_level: "high" (default)

  • Maximum reasoning depth
  • Best quality for complex tasks
  • Slower first-token response
  • Higher cost
  • Use for: Complex reasoning, coding, analysis, research

thinking_level: "low"

  • Minimal reasoning overhead
  • Faster response
  • Lower cost
  • Simpler output
  • Use for: Simple questions, factual answers, quick queries

Configuration

# Python
model = genai.GenerativeModel(
    "gemini-3-pro-preview",
    generation_config={
        "thinking_level": "high"  # or "low"
    }
)
// Node.js
const model = genAI.getGenerativeModel({
  model: "gemini-3-pro-preview",
  generationConfig: {
    thinking_level: "high"  // or "low"
  }
});

Critical Notes

⚠️ Temperature MUST stay at 1.0 - Changing temperature can cause looping or degraded performance on complex reasoning tasks.

⚠️ Cannot combine thinking_level with legacy thinking_budget parameter.

See references/thinking-levels.md for detailed guide.


Streaming Responses

Python Streaming

response = model.generate_content(
    "Write a long article about AI",
    stream=True
)

for chunk in response:
    print(chunk.text, end="", flush=True)

Node.js Streaming

const result = await model.generateContentStream("Write a long article about AI");

for await (const chunk of result.stream) {
    process.stdout.write(chunk.text());
}

Benefits

  • Lower perceived latency
  • Real-time user feedback
  • Better UX for long responses
  • Can process tokens as they arrive

See references/streaming.md for advanced patterns.


Cost Optimization

Pricing (Gemini 3 Pro)

Context SizeInputOutput
≤ 200k tokens$2/1M$12/1M
> 200k tokens$4/1M$18/1M

Optimization Strategies

  1. Keep prompts under 200k tokens (50% cheaper)
  2. Use thinking_level: "low" for simple tasks (faster, lower cost)
  3. Implement context caching for reusable contexts (see gemini-3-advanced skill)
  4. Monitor token usage and set budgets
  5. Use Gemini 1.5 Flash for simple tasks (20x cheaper)

See references/best-practices.md for comprehensive cost optimization.


Model Selection

Gemini 3 Pro vs Other Models

ModelContextOutputInput PriceBest For
gemini-3-pro-preview1M64k$2-4/1MComplex reasoning, coding
gemini-1.5-pro1M8k$7-14/1MGeneral use, multimodal
gemini-1.5-flash1M8k$0.35-0.70/1MSimple tasks, cost-sensitive

When to Use Gemini 3 Pro

✅ Complex reasoning tasks ✅ Advanced coding problems ✅ Long-context analysis (up to 1M tokens) ✅ Large output requirements (up to 64k tokens) ✅ Tasks requiring dynamic thinking

When to Use Alternatives

  • Gemini 1.5 Flash: Simple tasks, cost-sensitive applications
  • Gemini 1.5 Pro: Multimodal tasks, general use
  • Gemini 2.5 models: Experimental features, specific capabilities

Error Handling

Common Errors

ErrorCauseSolution
ResourceExhaustedRate limit exceededImplement retry with backoff
InvalidArgumentInvalid parametersValidate input, check docs
PermissionDeniedInvalid API keyCheck authentication
DeadlineExceededRequest timeoutReduce context, retry

Production Error Handling

from google.api_core import exceptions, retry

@retry.Retry(
    predicate=retry.if_exception_type(
        exceptions.ResourceExhausted,
        exceptions.ServiceUnavailable
    ),
    initial=1.0,
    maximum=60.0,
    multiplier=2.0
)
def safe_generate(prompt):
    try:
        return model.generate_content(prompt)
    except exceptions.InvalidArgument as e:
        logger.error(f"Invalid argument: {e}")
        raise
    except exceptions.PermissionDenied as e:
        logger.error(f"Permission denied - check API key: {e}")
        raise
    except Exception as e:
        logger.error(f"Unexpected error: {e}")
        raise

See references/error-handling.md for comprehensive patterns.


References

Setup & Configuration

Features

Production

Official Resources


Next Steps

After Basic Setup

  1. Explore chat applications - Build conversational interfaces
  2. Add multimodal capabilities - Use gemini-3-multimodal skill
  3. Add image generation - Use gemini-3-image-generation skill
  4. Add advanced features - Use gemini-3-advanced skill (caching, tools, batch)

Common Integration Patterns

  • Simple Chatbot: This skill only
  • Multimodal Assistant: This skill + gemini-3-multimodal
  • Creative Bot: This skill + gemini-3-image-generation
  • Production App: All 4 Gemini 3 skills

Troubleshooting

Issue: API key not working

Solution: Verify API key in Google AI Studio, check environment variable

Issue: Rate limit errors

Solution: Implement rate limiting, upgrade to paid tier, reduce request frequency

Issue: Slow responses

Solution: Use thinking_level: "low" for simple tasks, enable streaming, reduce context size

Issue: High costs

Solution: Keep prompts under 200k tokens, use appropriate thinking level, consider Gemini 1.5 Flash for simple tasks

Issue: Temperature warnings

Solution: Keep temperature at 1.0 (default) - do not modify for complex reasoning tasks


Summary

This skill provides everything needed to integrate Gemini 3 Pro API into your applications:

✅ Quick setup (< 5 minutes) ✅ Production-ready chat applications ✅ Dynamic thinking configuration ✅ Streaming responses ✅ Error handling and retry logic ✅ Cost optimization strategies ✅ Monitoring and logging patterns

For multimodal, image generation, and advanced features, see the companion skills.

Ready to build? Start with Workflow 1: Quick Start Setup above!

平台分布

github-copilot

30.19%
按下载量换算57

Claude Code

22.95%
按下载量换算44

mcpjam

18.42%
按下载量换算35

qwen-code

12.38%
按下载量换算24

windsurf

8.13%
按下载量换算15

zencoder

3.47%
按下载量换算7

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills