Google Gemini
Add AI to your application with Google Gemini.
Access Google Gemini AI through a single API with Puter.js.
AI Chat API
Massive 1M Token Context Window
Process entire codebases, lengthy documents, hours of video, or extended conversations in a single prompt.
Built-in Thinking & Reasoning
Advanced models reason step-by-step through complex problems in math, science, coding, and multi-step analysis.
True Multimodal Support
Natively understands and generates text, images, audio, video, and PDFs in one unified model architecture.
Agentic & Tool-Ready
Native support for function calling, Google Search grounding, and code execution for building AI agents.
Speed-to-Cost Flexibility
Choose from ultra-fast budget-friendly models to powerful Pro-tier options for any use case.
State-of-the-Art Image Generation
Conversational editing, character consistency, multi-image fusion, and up to 4K resolution with accurate text.
Gemini Models
Access all Google Gemini models through a single API.
Gemini 3 Flash
Latest fast model for quick responses with excellent quality-to-speed balance.
gemini-3-flash-preview
Gemini 3 Pro
Most capable model for complex reasoning, analysis, and advanced tasks.
gemini-3-pro-preview
Gemini 2.5 Pro
Powerful model with 1M context window for complex reasoning and long documents.
gemini-2.5-pro
Gemini 2.5 Flash
Fast and efficient model for everyday tasks with excellent performance.
gemini-2.5-flash
Gemini 2.5 Flash Lite
Ultra-lightweight model optimized for speed and cost-efficiency.
gemini-2.5-flash-lite
Gemini 2.0 Flash
Balanced model for general-purpose tasks with multimodal capabilities.
gemini-2.0-flash
Gemini 2.0 Flash Lite
Lightweight model for fast responses and resource-constrained environments.
gemini-2.0-flash-lite
Gemini 1.5 Flash
Efficient model with strong performance for a wide range of tasks.
gemini-1.5-flash
Gemini 3 Pro Image (Nano Banana Pro)
State-of-the-art image generation with sharp text rendering and deep reasoning capabilities.
gemini-3-pro-image-preview
Gemini 2.5 Flash Image (Nano Banana)
Low-latency image generation for quick experimentation and iteration.
gemini-2.5-flash-image-preview
Add AI Chat in Seconds
Add Google Gemini AI to your app with just a few lines of code.
No API keys, no backend, no configuration required.
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.chat("Explain quantum computing to a beginner", {
model: "gemini-3-flash-preview"
}).then(response => {
document.body.innerHTML = response.message.content;
});
</script>
</body>
</html>
Related Resources
Learn how to use Gemini and other AI models with Puter.js.