Home

Awesome

Welcome to the Gemini API Cookbook

This is a collection of guides and examples for the Gemini API, including quickstart tutorials for writing prompts and using different features of the API, and examples of things you can build.

Get started with the Gemini API

The Gemini API gives you access to Gemini models created by Google DeepMind. Gemini models are built from the ground up to be multimodal, so you can reason seamlessly across text, images, code, and audio. You can use these to develop a range of applications.

Start developing

  1. Go to Google AI Studio.
  2. Login with your Google account.
  3. Create an API key.
  4. Use a quickstart for Python, or call the REST API using curl.

What's New?

We're excited to show you the latest additions to the Gemini API, and new notebooks.

Table of contents

Learn about the capabilities of the Gemini API by checking out these quickstart tutorials.

You can find lots more in the quickstarts folder, and check out the examples folder for fun examples. We're also maintaining an Awesome Gemini list of all the cool projects the community is building using Gemini.

Official SDKs

The Gemini API is a REST API. You can call the API using a command line tool like curl (and you can find REST examples here) , or by using one of our official SDKs:

Get help

Ask a question on the Google AI Developer Forum.

The Gemini API on Google Cloud Vertex AI

If you're an enterprise developer looking to build on a fully-managed platform, you can also use the Gemini API on Google Cloud. Check out this repo for lots of cool examples.

Contributing

Contributions are welcome. See contributing to learn more.

Thank you for developing with the Gemini API! We’re excited to see what you create.