正在加载项目…
正在加载项目…
正在读取官方项目说明…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
This cookbook provides a structured learning path for using the Gemini API, focusing on hands-on tutorials and practical examples.
For comprehensive API documentation, visit ai.google.dev.
For Gemma quickstarts and examples, check out the Gemma cookbook.
Gemini 3.8 Flash: Our most intelligent Flash model, engineered for long-horizon software engineering, autonomous agents, and complex enterprise workflows. Get started with the Get Started
and the thinking
guides.
🎙️ Gemini 3.8 TTS & Custom Voices: Generate expressive single- and multi-speaker speech with Gemini 3.8 TTS
, and design custom voices from text or replicate voices from audio with the new Voices guide
!
Omni Flash: The Nano Banana of video editing is here! Learn how to call the model using the interactions API, edit videos with natural language and more here
!
🍌 Nano-Banana 2: Go bananas with our latest image generation model: Nano-Banana 2. Get started here
with 512px, thinking, search and image grounding, and a ton of examples!
🎶 Lyria 3.5: Channel your inner composer with Lyria 3.5. Get started here
with full song generation, image-to-music, and a ton of examples!
Agents API: Create and run your custom agents using the new Antigravity agent
!
This cookbook is organized into two main categories:
We also showcase Demos in separate repositories, illustrating end-to-end applications of the Gemini API.
Here are the recent additions and updates to the Gemini API and the Cookbook:
The quickstarts section contains step-by-step tutorials to get you started with Gemini and learn about its specific features.
To begin, you'll need:
We recommend starting with the following:
Then, explore the other quickstarts tutorials to learn about individual features:
These examples demonstrate how to combine multiple Gemini API features or 3rd-party tools to build more complex applications.
These fully functional, end-to-end applications showcase the power of Gemini in real-world scenarios.
The Gemini API is a REST API. You can call it directly using tools like curl (see REST examples or the great Postman workspace), or use one of our official SDKs:
Ask a question on the Google AI Developer Forum.
For enterprise developers, the Gemini API is also available on Google Cloud Vertex AI. See this repo for examples.
Contributions are welcome! See CONTRIBUTING.md for details.
Thank you for developing with the Gemini API! We're excited to see what you create.