[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-73977":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":16,"starSnapshotCount":16,"syncStatus":32,"lastSyncTime":33,"discoverSource":34},73977,"cookbook","google-gemini\u002Fcookbook","google-gemini","Examples and guides for using the Gemini API","https:\u002F\u002Fai.google.dev\u002Fgemini-api\u002Fdocs",null,"Jupyter Notebook",17396,2660,202,35,0,23,70,187,69,120,"Apache License 2.0",false,"main",true,[27,28],"gemini","gemini-api","2026-06-12 04:01:12","# Welcome to the Gemini API Cookbook\r\n\r\nThis cookbook provides a structured learning path for using the Gemini API, focusing on hands-on tutorials and practical examples.\r\n\r\n**For comprehensive API documentation, visit [ai.google.dev](https:\u002F\u002Fai.google.dev\u002Fgemini-api\u002Fdocs).**\r\n\u003Cbr>\u003Cbr>\r\n**For Gemma quickstarts and examples, check out the [Gemma cookbook](https:\u002F\u002Fgithub.com\u002Fgoogle-gemma\u002Fcookbook).**\r\n\u003Cbr>\u003Cbr>\r\n\r\n---\r\n> **Gemini 3**: For the most recent updates on our latest generation, please check the [Get Started](.\u002Fquickstarts\u002FGet_started.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGet_started.ipynb#gemini3) and the [thinking](.\u002Fquickstarts\u002FGet_started_thinking.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGet_started_thinking.ipynb#gemini3) guides who include [migration guides](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGet_started.ipynb#gemini3migration).\r\n> \r\n> **🍌 Nano-Banana 2**: Go bananas with our latest image generation model: **Nano-Banana 2**. Get started [here](.\u002Fquickstarts\u002FGet_Started_Nano_Banana.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGet_Started_Nano_Banana.ipynb#nano-banana-pro) with 512px, thinking, search and image grounding, and a ton of examples!\r\n> \r\n> **🎶 Lyria 3**: Channel your inner composer with **Lyria 3**. Get started [here](.\u002Fquickstarts\u002FGet_started_Lyria.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGet_started_Lyria.ipynb) with 30s clips and full song generation, image-to-music, and a ton of examples!\r\n---\r\n\r\n## Navigating the Cookbook\r\n\r\nThis cookbook is organized into two main categories:\r\n\r\n1.  **[Quick Starts](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fcookbook\u002Ftree\u002Fmain\u002Fquickstarts\u002F):**  Step-by-step guides covering both introductory topics (\"[Get Started](.\u002Fquickstarts\u002FGet_started.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGet_started.ipynb)\") and specific API features.\r\n2.  **[Examples](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fcookbook\u002Ftree\u002Fmain\u002Fexamples\u002F):** Practical use cases demonstrating how to combine multiple features.\r\n\r\nWe also showcase **Demos** in separate repositories, illustrating end-to-end applications of the Gemini API.\r\n\u003Cbr>\u003Cbr>\r\n\r\n## What's New?\r\n\r\nHere are the recent additions and updates to the Gemini API and the Cookbook: \r\n* **Webhooks**: Get real-time notifications for async operations like batch jobs and video generation with the [Webhooks quickstart](.\u002Fquickstarts\u002FWebhooks.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FWebhooks.ipynb).\r\n\r\n* **Inference tiers**: Learn how to use the Priority and Flex tiers in the [Inference tiers guide](.\u002Fquickstarts\u002FInference_tiers.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FInference_tiers.ipynb) to help you balance speed, cost, and reliability.\r\n* **🎶 Lyria 3**: Convert your ideas into [songs](.\u002Fquickstarts\u002FGet_Started_Lyria.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGet_Started_Lyria.ipynb) with full control over the music structure and more!\r\n* **🍌 Nano-Banana 2 & Pro:** Use [Gemini's native image generation](.\u002Fquickstarts\u002FGet_Started_Nano_Banana.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGet_Started_Nano_Banana.ipynb) capabilities to edit images with high consistency or generate visual stories. Experience **Nano-Banana 2** for high speed or **Nano-Banana Pro** for 4K quality—both now with thinking and search grounding!\r\n* **File Search:** Discover how to ground generations in your own data in a hosted RAG system with the [File Search quickstart](.\u002Fquickstarts\u002FFile_Search.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FFile_Search.ipynb). \r\n* **Grounding with Google Maps:** Get started using factual geographical data from 📍 Google Maps in your apps! See the Google Maps section of the [Grounding Guide](.\u002Fquickstarts\u002FGrounding.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGrounding.ipynb).\r\n* **Veo 3.1**: Get started with our video generation model with this [Veo guide](.\u002Fquickstarts\u002FGet_started_Veo.ipynb), including image-to-videos and video extension! [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGet_started_Veo.ipynb)\r\n* **Gemini Robotics-ER 1.5**: Learn about this new Gemini model specifically for spatial understanding and reasoning for [robotics applications](.\u002Fquickstarts\u002Fgemini-robotics-er.ipynb). [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002Fgemini-robotics-er.ipynb)\r\n* **Lyria and TTS**: Get started with podcast and music generation with the [TTS](.\u002Fquickstarts\u002FGet_started_TTS.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGet_started_TTS.ipynb) and [Lyria RealTime](.\u002Fquickstarts\u002FGet_started_LyriaRealTime.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGet_started_LyriaRealTime.ipynb) models.\r\n* **LiveAPI**: Get started with the [multimodal Live API](.\u002Fquickstarts\u002FGet_started_LiveAPI.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGet_started_LiveAPI.ipynb) and unlock new interactivity with Gemini. \r\n* **Recently Added Guides:**\r\n  * [Grounding](.\u002Fquickstarts\u002FGrounding.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGrounding.ipynb): Discover different ways to ground Gemini's answer using different tools, from Google Search to Youtube and URLs and the new [**Maps grounding**](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGrounding.ipynb#maps_grounding) tool. \r\n  * [Batch API](.\u002Fquickstarts\u002FBatch_mode.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FBatch_mode.ipynb): Use Batch API to send large volume of non-time-sensitive requests to the model and get up to 90% discount. \r\n  * [Logs and datasets](.\u002Fexamples\u002FDatasets.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fexamples\u002FDatasets.ipynb): Process and evaluate your collected logs using the Batch API.\r\n  \r\n\u003Cbr>\u003Cbr>\r\n\r\n## 1. Quick Starts\r\n\r\nThe [quickstarts section](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fcookbook\u002Ftree\u002Fmain\u002Fquickstarts\u002F) contains step-by-step tutorials to get you started with Gemini and learn about its specific features.\r\n\r\n**To begin, you'll need:**\r\n\r\n1.  A Google account.\r\n2.  An API key (create one in [Google AI Studio](https:\u002F\u002Faistudio.google.com\u002Fapp\u002Fapikey)).\r\n\u003Cbr>\u003Cbr>\r\n\r\nWe recommend starting with the following:\r\n\r\n*   [Authentication](.\u002Fquickstarts\u002FAuthentication.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FAuthentication.ipynb): Set up your API key for access.\r\n*   [**Get started**](.\u002Fquickstarts\u002FGet_started.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGet_started.ipynb): Get started with Gemini models and the Gemini API, covering basic prompting and multimodal input.\r\n\u003Cbr>\u003Cbr>\r\n\r\nThen, explore the other quickstarts tutorials to learn about individual features:\r\n*  [Get started with Live API](.\u002Fquickstarts\u002FGet_started_LiveAPI.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGet_started_LiveAPI.ipynb): Get started with the live API with this comprehensive overview of its capabilities\r\n*  [Get started with Veo](.\u002Fquickstarts\u002FGet_started_Veo.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGet_started_Veo.ipynb): Get started with our video generation capabilities \r\n*  [Get started with Imagen](.\u002Fquickstarts\u002FGet_started_imagen.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGet_started_imagen.ipynb) and [Native image generation](.\u002Fquickstarts\u002FGet_Started_Nano_Banana.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGet_Started_Nano_Banana.ipynb): Get started with our image generation capabilities \r\n*  [Grounding](.\u002Fquickstarts\u002FGrounding.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FGrounding.ipynb): use Google Search for grounded responses\r\n*  [Code execution](.\u002Fquickstarts\u002FCode_Execution.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fquickstarts\u002FCode_Execution.ipynb): Generate and run Python code to solve complex tasks and even output graphs\r\n*  And [many more](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fcookbook\u002Ftree\u002Fmain\u002Fquickstarts\u002F)\r\n\u003Cbr>\u003Cbr>\r\n\r\n## 2. Examples (Practical Use Cases)\r\n\r\nThese examples demonstrate how to combine multiple Gemini API features or 3rd-party tools to build more complex applications.\r\n*  [Browser as a tool](.\u002Fexamples\u002FBrowser_as_a_tool.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fexamples\u002FBrowser_as_a_tool.ipynb): Use a web browser for live and internal (intranet) web interactions\r\n*  [Illustrate a book](.\u002Fexamples\u002FBook_illustration.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fexamples\u002FBook_illustration.ipynb): Use Gemini to create illustration for an open-source book\r\n*  [Animated Story Generation](.\u002Fexamples\u002FAnimated_Story_Video_Generation_gemini.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fexamples\u002FAnimated_Story_Video_Generation_gemini.ipynb): Create animated videos by combining Gemini's story generation, Imagen, and audio synthesis\r\n*  [Plotting and mapping Live](.\u002Fexamples\u002FLiveAPI_plotting_and_mapping.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fexamples\u002FLiveAPI_plotting_and_mapping.ipynb): Mix *Live API* and *Code execution* to solve complex tasks live\r\n*  [3D Spatial understanding](.\u002Fexamples\u002FSpatial_understanding_3d.ipynb) [![Colab](https:\u002F\u002Fstorage.googleapis.com\u002Fgenerativeai-downloads\u002Fimages\u002Fcolab_icon16.png)](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgoogle-gemini\u002Fcookbook\u002Fblob\u002Fmain\u002Fexamples\u002FSpatial_understanding_3d.ipynb): Use Gemini *3D spatial* abilities to understand 3D scenes\r\n*  [Gradio and live API](.\u002Fexamples\u002Fgradio_audio.py): Use gradio to deploy your own instance of the *Live API*\r\n*  And [many many more](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fcookbook\u002Ftree\u002Fmain\u002Fexamples\u002F)\r\n\u003Cbr>\u003Cbr>\r\n\r\n## 3. Demos (End-to-End Applications)\r\n\r\nThese fully functional, end-to-end applications showcase the power of Gemini in real-world scenarios. \r\n\r\n*   [Gemini CLI](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fgemini-cli): Open-source AI agent that brings the power of Gemini directly into your terminal\r\n*   [Gemini API quickstart](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fgemini-api-quickstart): Python Flask App running with the Google AI Gemini API, designed to get you started building with Gemini's multi-modal capabilities\r\n*   [Multimodal Live API Web Console](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fmultimodal-live-api-web-console): React-based starter app for using the Multimodal Live API over a websocket\r\n*   [Fullstack Langgraph Quickstart](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fgemini-fullstack-langgraph-quickstart): A fullstack application using a React frontend and a LangGraph-powered backend agent\r\n*   [Google AI Studio Starter Applets](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fstarter-applets): A collection of small apps that demonstrate how Gemini can be used to create interactive experiences\r\n\u003Cbr>\u003Cbr>\r\n\r\n\r\n## Official SDKs\r\n\r\nThe Gemini API is a REST API. You can call it directly using tools like `curl` (see [REST examples](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fcookbook\u002Ftree\u002Fmain\u002Fquickstarts\u002Frest\u002F) or the great [Postman workspace](https:\u002F\u002Fwww.postman.com\u002Fai-on-postman\u002Fgoogle-gemini-apis\u002Foverview)), or use one of our official SDKs:\r\n* [Python](https:\u002F\u002Fgithub.com\u002Fgoogleapis\u002Fpython-genai)\r\n* [Go](https:\u002F\u002Fgithub.com\u002Fgoogleapis\u002Fgo-genai)\r\n* [Node.js](https:\u002F\u002Fgithub.com\u002Fgoogleapis\u002Fjs-genai)\r\n* [Java](https:\u002F\u002Fgithub.com\u002Fgoogleapis\u002Fjava-genai)\r\n* [C#](https:\u002F\u002Fgithub.com\u002Fgoogleapis\u002Fdotnet-genai\u002F)\r\n\u003Cbr>\u003Cbr>\r\n\r\n## Get Help\r\n\r\nAsk a question on the [Google AI Developer Forum](https:\u002F\u002Fdiscuss.ai.google.dev\u002F).\r\n\r\n## The Gemini API on Google Cloud Vertex AI\r\n\r\nFor enterprise developers, the Gemini API is also available on Google Cloud Vertex AI. See [this repo](https:\u002F\u002Fgithub.com\u002FGoogleCloudPlatform\u002Fgenerative-ai) for examples.\r\n\r\n## Contributing\r\n\r\nContributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for details.\r\n\r\nThank you for developing with the Gemini API! We're excited to see what you create.\r\n\r\n\r\n\r\n\r\n","该项目是用于学习和使用Gemini API的示例代码和指南集合。它通过一系列动手教程和实际案例，帮助开发者快速上手Gemini API，涵盖文本生成、图像生成以及音乐创作等多个领域，并支持最新的Gemini 3、Nano-Banana 2和Lyria 3模型。项目采用Jupyter Notebook编写，便于在Google Colab等平台上直接运行实验。适用于需要利用先进AI技术进行自然语言处理、图像生成或音频合成的应用场景，如内容创作工具、智能助手及多媒体应用开发。",2,"2026-06-11 03:48:12","high_star"]