[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],[],[],[],null,["# Gemini API Cookbook\n\nGemini API cookbook\n===================\n\nA collection of guides and examples for the Gemini API. Explore more in the\n[Gemini API Cookbook on GitHub.](https://github.com/google-gemini/cookbook) \n\n### Quickstart in Python\n\n[### Audio Quickstart\nHow to prompt Gemini 1.5 Pro using an audio file.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Audio.ipynb) \n[### Authentication Quickstart\nCreate an API key and use it with the Python SDK or a command line tool like curl.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Authentication.ipynb) \n[### OAuth Quickstart\nA simplified approach to using OAuth for authentication.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Authentication_with_OAuth.ipynb) \n[### Tokens Quickstart\nAn interactive introduction to tokens and how they are used in the Gemini API.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Counting_Tokens.ipynb) \n[### Embeddings Quickstart\nQuick code examples that show how to get started generating embeddings.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Embeddings.ipynb) \n[### File API Quickstart\nUse the File API to upload a media file and include it in a GenerateContent call.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/File_API.ipynb) \n[### Function Calling\nCode examples to help you get started with function calling.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Function_calling.ipynb) \n[### Function Calling Config\nA guide for those already familiar with function calling.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Function_calling_config.ipynb) \n[### Prompting Quickstart\nHow to write and run your first prompts with the Gemini API.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Prompting.ipynb) \n[### Safety Quickstart\nHow to use them the Gemini API adjustable safety settings.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Safety.ipynb) \n[### Streaming Quickstart\nThis notebook demonstrates streaming in the Python SDK.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Streaming.ipynb) \n[### System instructions\nHow to provide a system instruction when generating content.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/System_instructions.ipynb) \n[### Tuning Quickstart\nHow to get started with model tuning.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Tuning.ipynb) \n[### Prompting with Video\nQuick example of how to prompt Gemini 1.5 Pro using a video file.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Video.ipynb) \n\n### Quickstart in Rest\n\n[### Embedding Quickstart\nHow to get started generating embeddings using curl.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/rest/Embeddings_REST.ipynb) \n[### Function calling\nQuick code examples that show how to get started with function calling using curl.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/rest/Function_calling_REST.ipynb) \n[### JSON Mode Quickstart\nA code example that shows you how to get started with JSON mode using curl.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/rest/JSON_mode_REST.ipynb) \n[### Prompting Quickstart\nTry out the Gemini API using curl commands to call the methods in the REST API.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/rest/Prompting_REST.ipynb) \n[### Safety Quickstart\nHow to use adjustable safety settings with REST.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/rest/Safety_REST.ipynb) \n[### Streaming Quickstart\nThis notebook demonstrates streaming in REST.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/rest/Streaming_REST.ipynb) \n[### System instructions\nHow to get started with system instructions using curl.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/rest/System_instructions_REST.ipynb) \n\n### Code examples\n\n[### Anomaly detection\nUse the embeddings from the Gemini API to detect potential outliers in your dataset.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Anomaly_detection_with_embeddings.ipynb) \n[### Classify text\nUse embeddings to train a model to classify posts based on the topic.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Classify_text_with_embeddings.ipynb) \n[### Guess the shape\nHow to use multiple images in the same prompt with the Gemini API.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Guess_the_shape.ipynb) \n[### Marketing campaign\nAnalyze a product sketch and create a marketing campaign \\& taglines in JSON format.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Market_a_Jet_Backpack.ipynb) \n[### Search Wikipedia using ReAct\nMinimal implementation of ReAct: Synergizing Reasoning and Acting in Language Models](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Search_Wikipedia_using_ReAct.ipynb) \n[### Search re-ranking using Gemini embeddings\nUse embeddings to re-rank search results.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Search_reranking_using_embeddings.ipynb) \n[### Generation for Story Writing\nHow to write a story using prompt chaining and iterative generation.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Story_Writing_with_Prompt_Chaining.ipynb) \n[### Document search with embeddings\nUse the Gemini API to create embeddings so that you can perform document search.](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Talk_to_documents_with_embeddings.ipynb)"]]