Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
cnemri avatar

Google Genai Sdk Python

  • 94 installs
  • 124 repo stars
  • Updated February 6, 2026
  • cnemri/google-genai-skills

Guides writing idiomatic Python with the official google-genai SDK for Gemini and Vertex AI: text, chat, reasoning, structured output, multimodal, and tools.

About

Provides reference guidance for building with the google-genai Python SDK across text, chat, reasoning, tools, and media. A developer uses it when writing Gemini or Vertex AI code in Python.

  • Covers client setup, streaming, structured output, and function calling
  • Stateless client.models vs stateful client.chats patterns

Google Genai Sdk Python by the numbers

  • 94 all-time installs (skills.sh)
  • Ranked #4,644 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Jul 29, 2026 (Skillselion catalog sync)
npx skills add https://github.com/cnemri/google-genai-skills --skill google-genai-sdk-python

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs94
repo stars124
Last updatedFebruary 6, 2026
Repositorycnemri/google-genai-skills

What it does

Guides writing idiomatic Python with the official google-genai SDK for Gemini and Vertex AI: text, chat, reasoning, structured output, multimodal, and tools.

Files

SKILL.mdMarkdownGitHub ↗

Google GenAI Python SDK Skill

Use this skill to write high-quality, idiomatic Python code for the Gemini API.

Reference Materials

Identify the user's task and refer to the relevant file:

  • [Setup & Client](references/setup.md): Installation, auth, client initialization.
  • [Models](references/models.md): Recommended models (Flash, Pro, Lite, Imagen, Veo).
  • [Text Generation](references/text_generation.md): Basic inference, streaming, system instructions, safety.
  • [Chat](references/chat.md): Multi-turn conversations and history.
  • [Reasoning](references/reasoning.md): Thinking config (thinking_level / thinking_budget), thought signatures.
  • [Structured Output](references/structured_output.md): JSON schemas, Pydantic models, Enums.
  • [Multimodal Inputs](references/multimodal_inputs.md): Images, audio, video, PDFs, media resolution.
  • [Tools](references/tools.md): Function calling, code execution, Google Search grounding.
  • [Media Generation](references/media_generation.md): Image generation/editing (Imagen), video generation (Veo).
  • [Source Code](references/source_code.md): Raw SDK source code for deep inspection.

Core Principles

1. Unified SDK: Always use google-genai. 2. Stateless Models: Use client.models for single requests. 3. Stateful Chats: Use client.chats for conversations. 4. Types: Import from google.genai.types.

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.