Google Gen AI Python SDK
Build powerful generative AI applications with Google’s Gemini models. Support for both the Gemini Developer API and Vertex AI with a unified Python interface.
Quick start
Get up and running with the Google Gen AI SDK in just a few steps.
Key features
Everything you need to build production-ready generative AI applications.
Multimodal generation
Generate text, images, and videos with state-of-the-art Gemini models
Function calling
Let models interact with your APIs and tools through automatic function orchestration
Streaming support
Stream responses in real-time for interactive user experiences
Multi-turn conversations
Build chatbots with context-aware chat sessions
Fine-tuning
Customize models with your own training data
Context caching
Reduce costs and latency by caching large contexts
Explore by capability
Deep dive into specific features and use cases.
Multimodal inputs
Process text, images, audio, video, and PDFs in a single request
Learn more →
Image generation
Create and edit images with Imagen models
Learn more →
Video generation
Generate videos from text and images with Veo models
Learn more →
Structured output
Generate JSON with schema validation using Pydantic models
Learn more →
Ready to get started?
Follow the quickstart guide to build your first AI application in minutes.
View Quickstart