Gemini 1.5 Flash-8B is now available for production use! Learn more Home Gemini API Send feedback Stay organized with collections Save and categorize content based on your preferences. Gemini API cookbook A collection of guides and examples for the Gemini API. Explore more in the Gemini API Cookbook on GitHub. Quickstart in Python Audio Quickstart How to prompt Gemini 1.5 Pro using an audio file. Authentication Quickstart Create an API key and use it with the Python SDK or a command line tool like curl. OAuth Quickstart A simplified approach to using OAuth for authentication. Tokens Quickstart An interactive introduction to tokens and how they are used in the Gemini API. Embeddings Quickstart Quick code examples that show how to get started generating embeddings. File API Quickstart Use the File API to upload a media file and include it in a GenerateContent call. Function Calling Code examples to help you get started with function calling. Function Calling Config A guide for those already familiar with function calling. Prompting Quickstart How to write and run your first prompts with the Gemini API. Safety Quickstart How to use them the Gemini API adjustable safety settings. Streaming Quickstart This notebook demonstrates streaming in the Python SDK. System instructions How to provide a system instruction when generating content. Tuning Quickstart How to get started with model tuning. Prompting with Video Quick example of how to prompt Gemini 1.5 Pro using a video file. Quickstart in Rest Embedding Quickstart How to get started generating embeddings using curl. Function calling Quick code examples that show how to get started with function calling using curl. JSON Mode Quickstart A code example that shows you how to get started with JSON mode using curl. Prompting Quickstart Try out the Gemini API using curl commands to call the methods in the REST API. Safety Quickstart How to use adjustable safety settings with REST. Streaming Quickstart This notebook demonstrates streaming in REST. System instructions How to get started with system instructions using curl. Code examples Anomaly detection Use the embeddings from the Gemini API to detect potential outliers in your dataset. Classify text Use embeddings to train a model to classify posts based on the topic. Guess the shape How to use multiple images in the same prompt with the Gemini API. Marketing campaign Analyze a product sketch and create a marketing campaign & taglines in JSON format. Search Wikipedia using ReAct Minimal implementation of ReAct: Synergizing Reasoning and Acting in Language Models Search re-ranking using Gemini embeddings Use embeddings to re-rank search results. Generation for Story Writing How to write a story using prompt chaining and iterative generation. Document search with embeddings Use the Gemini API to create embeddings so that you can perform document search.
Gemini API cookbook A collection of guides and examples for the Gemini API. Explore more in the Gemini API Cookbook on GitHub.