Skip to content

Latest commit

 

History

History

quickstarts

Gemini API Tutorials

Table of contents

Learn about the capabilities of the Gemini API by checking out these quickstarts. They walk you through how to use a feature of the Gemini API with complete end to end code.

  • Authentication: Start here to learn how you can set up your API key so you can get access to the Gemini API.
  • Counting Tokens Tokens are the basic inputs to the Gemini models. Through this notebook, you will gain a better understanding of tokens through an interactive experience.
  • Gemini Flash Introduction: Get started with Gemini Flash 1.5.
  • Models: Learn about the different models and parameters available in the Gemini API.
  • Working with files: Use the Gemini API to upload files (audio, video, images, code, text) and perform actions with them through the Gemini models.
  • Audio: Learn how to use the Gemini API with audio files.
  • JSON mode: Discover how to use JSON mode.
  • Function Calling: The Gemini API works great with code. Use this quickstart to learn how to write prompts to understand and call functions. Then check out the function calling config tutorial to learn more.
  • PDF files. Learn how to work with PDF files, to and upload text and images.
  • System Instructions: Give models additional context on how to respond by setting system instructions.
  • Safety: Configure safety settings in the Gemini API.
  • Streaming: Learn how to use streaming for single interactions, and for chat.
  • Embeddings: Create high quality and task-specific embeddings.
  • Tuning: Learn how to improve model performance on a specific task through tuning.
  • Video: Upload a video to the Gemini API and use it in your prompt.

When you're finished here, check out the examples folder or the Awesome Gemini page for more fun examples.