google-genai-sdk-python
Expert guidance for writing Python code using the official Google GenAI SDK (google-genai) for Gemini API and Vertex AI. Use for text generation, multimodal inputs, reasoning, tools, and media generation.
How do I install this agent skill?
npx skills add https://github.com/cnemri/google-genai-skills --skill google-genai-sdk-pythonIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The Google GenAI Python SDK Skill is a documentation and code-reference skill designed to assist in developing Python applications using the Gemini API. It contains comprehensive setup guides, code examples for text/multimodal generation, chat interfaces, and tool usage. All external references are to official Google-owned GitHub repositories, which are recognized as trusted sources. No malicious patterns, unauthorized command execution, or data exfiltration behaviors were detected.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerwarn
11/11 files flagged
What does this agent skill do?
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: Installation, auth, client initialization.
- Models: Recommended models (Flash, Pro, Lite, Imagen, Veo).
- Text Generation: Basic inference, streaming, system instructions, safety.
- Chat: Multi-turn conversations and history.
- Reasoning: Thinking config (
thinking_level/thinking_budget), thought signatures. - Structured Output: JSON schemas, Pydantic models, Enums.
- Multimodal Inputs: Images, audio, video, PDFs, media resolution.
- Tools: Function calling, code execution, Google Search grounding.
- Media Generation: Image generation/editing (Imagen), video generation (Veo).
- Source Code: Raw SDK source code for deep inspection.
Core Principles
- Unified SDK: Always use
google-genai. - Stateless Models: Use
client.modelsfor single requests. - Stateful Chats: Use
client.chatsfor conversations. - Types: Import from
google.genai.types.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/cnemri/google-genai-skills/google-genai-sdk-python">View google-genai-sdk-python on skillZs</a>