Comprehensive guides, API references, and tutorials to master Google's most advanced AI model for all your creative and technical needs.
Start LearningInstall the Gemini CLI and SDK with our 2-minute setup guide. Supports Windows, macOS, and Linux with NVIDIA/AMD/Intel GPUs.
Install GemsGet a free API key from the developer console and validate it with a single CLI command. No credit card required.
Security SetupUse the command `gemini run` or test in the web interface to generate your first code, image, or content creation.
First PromptConvert natural language prompts into production-grade code. Learn to describe requirements clearly for accurate results.
{`Prompt: "Create a React component that toggles dark mode." Response: import { useState } from 'react'; function DarkModeToggle() { // ...`}Read Tutorial ➡️
Master text-to-image prompts for generating photorealistic images, illustrations, and concept art.
{`Prompt: "Cyberpunk cityscape at night with neon lights, 8K resolution" Response: [Image with ID generated]`}Start with Images ➡️
Use Gemini for content creation, translation, summarization, and multi-step reasoning tasks across 100 languages.
{`Prompt: "Summarize this article in 100 words" [Uploads 2000-word document]`}Language Tutorials ➡️
Explore extended capabilities: batch processing, image input, code debugging, and multi-modal prompts.
{`curl -X POST https://api.gemini.com/v1/images --data-binary @photo.jpg --data '{"prompt":"What year was this photo taken?"}'`}Advanced Docs ➡️
Endpoint | Method | Description |
---|---|---|
/v1/code | POST | Convert natural language to code |
/v1/images | POST | Generate and edit images |
/v1/complete | POST | Language modeling for text completion |
{`curl -X POST https://api.gemini.com/v1/code \\
-H "Authorization: Bearer YOUR_API_KEY" \\
-H "Content-Type: application/json" \\
-d '{"prompt":"Create a Node.js server"}'`}
Get your API key from the Developer Console.
Instead of "Make a website", specify: "Create a responsive React landing page with hero section, testimonials, and call-to-action buttons using TailwindCSS".
Start with a basic prompt, review the output, then ask specific follow-up questions to improve the result.
For code generation, always test with different input sizes, invalid data, and edge conditions to ensure robustness.
Always validate model outputs for security vulnerabilities, especially when using code generation features.
Gemini is a multimodal transformer-based model with 12B parameters trained on 100TB of diverse data. Supports:
Search our complete documentation for code examples, API parameters, and technical guides.