gemini-sdk

Access Google Gemini models with function calling and structured outputs.

3|Updated Oct 27, 2025
One-click install
npx skills add https://github.com/eco2-team/backend --skill gemini-sdk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini-sdk
Source: https://github.com/eco2-team/backend/tree/main/.claude/skills/gemini-sdk
Command: npx skills add https://github.com/eco2-team/backend --skill gemini-sdk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a practical guide to using the Google Gemini SDK (google-genai) to access Gemini models, enable structured outputs, function calling, Google Search grounding, and image generation capabilities.

Core Features & Use Cases

  • Access Gemini models (gemini-3-pro/flash; gemini-2.0/1.5 variants).
  • Enable Function Calling and Structured Output to build composable AI apps.
  • Ground real-time information with Google Search grounding.
  • Generate images with Gemini models and inline results.

Quick Start

Install the google-genai package via pip and initialize a client with your API key. Example:

from google import genai client = genai.Client(api_key="GOOGLE_API_KEY")

Or use environment variable

import os client = genai.Client(api_key=os.environ["GOOGLE_API_KEY"])

Frequently Asked Questions about gemini-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use the Gemini SDK for structured outputs and function calling in Python?

Use the google-genai library to access Gemini models and enable structured outputs and function calling for building composable AI applications. You initialize a client with your API key, then configure requests to return structured data or route to defined functions.

What is Google Search grounding with Gemini and how does it work?

Google Search grounding allows Gemini models to retrieve real-time web information during generation. By enabling this feature in the Gemini SDK, your AI workflows access current data, ensuring responses are factually grounded in live search results.

Can I generate images using the Gemini SDK and return inline results?

Yes, the Gemini SDK supports image generation capabilities using models like gemini-3-pro and gemini-2.0 variants. You can request image generation and receive inline image results directly within your Python application workflow.

Do I need a specific API key or library to start using Google Gemini models?

Yes, you need to install the google-genai Python package and provide a Google API key. You can initialize the client by passing the API key directly or loading it from an environment variable to access Gemini models.

Which Gemini model variants are available through the google-genai SDK?

The SDK provides programmatic access to Gemini models including gemini-3-pro, gemini-3-flash, and gemini-2.0/1.5 variants. These models support features like structured outputs, function calling, and live web grounding.