google-genai-sdk-python
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.
More from cnemri/google-genai-skills
google-adk-python
Expert guidance on the Google Agent Development Kit (ADK) for Python. Use this skill when the user asks about building agents, using tools, streaming, callbacks, tutorials, deployment, or advanced architecture with the Google ADK in Python.
273veo-use
Create and edit videos using Google's Veo 2 and Veo 3 models. Supports Text-to-Video, Image-to-Video, Reference-to-Video, Inpainting, and Video Extension. Available parameters: prompt, image, mask, mode, duration, aspect-ratio. Always confirm parameters with the user or explicitly state defaults before running.
123veo-build
Create and edit videos using Google's Veo 2 and Veo 3 models. Supports Text-to-Video, Image-to-Video, Inpainting, and Advanced Controls.
63deep-research
Perform autonomous, multi-step research using the Gemini Deep Research Agent (Interactions API). Supports web search, file/directory context, and resilient streaming.
60nano-banana-use
Generate, edit, and compose images using Gemini Nano Banana models via portable Python scripts. Handles authentication via API Key or Vertex AI environment variables. Available parameters: prompt, model, aspect-ratio, safety-filter-level. Always confirm parameters with the user or explicitly state defaults before running.
54google-developer-knowledge
Search and retrieve Google's developer documentation using the Developer Knowledge API. Query documentation chunks, get full document content, or batch retrieve multiple documents. Covers ai.google.dev, developer.android.com, docs.cloud.google.com, firebase.google.com, and more.
52