-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ray Tien
committed
May 15, 2024
1 parent
02c1720
commit 29c1697
Showing
1 changed file
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,39 @@ | ||
# Welcome to the Gemini API Cookbook | ||
|
||
This is a collection of guides and examples for the Gemini API, including [quickstart](https://github.com/google-gemini/cookbook/tree/main/quickstarts) tutorials for writing prompts and using different features of the API, and [examples](https://github.com/google-gemini/cookbook/tree/main/examples) of things you can build. | ||
|
||
## Get started with the Gemini API | ||
|
||
The Gemini API gives you access to Gemini [models](https://ai.google.dev/models/gemini) created by [Google DeepMind](https://deepmind.google/technologies/gemini/#introduction). 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](https://ai.google.dev/examples/). | ||
|
||
### Start developing | ||
|
||
1. Go to [Google AI Studio](https://aistudio.google.com/). | ||
2. Login with your Google account. | ||
3. [Create](https://aistudio.google.com/app/apikey) an API key. | ||
4. Use a [quickstart](https://github.com/google-gemini/cookbook/blob/main/quickstarts/Prompting.ipynb) for Python, or call the REST API [using curl](https://github.com/google-gemini/cookbook/blob/main/quickstarts/rest/Prompting_REST.ipynb). | ||
|
||
### Capabilities | ||
|
||
Learn about the capabilities of the Gemini API by checking out the quickstarts for [safety](https://github.com/google-gemini/cookbook/blob/main/quickstarts/Safety.ipynb), [embeddings](https://github.com/google-gemini/cookbook/blob/main/quickstarts/Embeddings.ipynb), [function calling](https://github.com/google-gemini/cookbook/blob/main/quickstarts/Function_calling.ipynb), [audio](https://github.com/google-gemini/cookbook/blob/main/quickstarts/Audio.ipynb), and more. | ||
|
||
## Official SDKs | ||
|
||
The Gemini API is a REST API. You can call the API using a command line tool like `curl` , or by using one of our official SDKs: | ||
* [Python](https://github.com/google/generative-ai-python) | ||
* [Node.js](https://github.com/google/generative-ai-js) | ||
* [Dart (Flutter)](https://github.com/google/generative-ai-dart) | ||
* [Android](https://github.com/google/generative-ai-android) | ||
* [Swift](https://github.com/google/generative-ai-swift) | ||
* [Go](https://github.com/google/generative-ai-go) | ||
|
||
- [Python](https://github.com/google-gemini/generative-ai-python) | ||
- [Node.js](https://github.com/google-gemini/generative-ai-js) | ||
- [Dart (Flutter)](https://github.com/google-gemini/generative-ai-dart) | ||
- [Android](https://github.com/google-gemini/generative-ai-android) | ||
- [Swift](https://github.com/google-gemini/generative-ai-swift) | ||
- [Go](https://github.com/google/generative-ai-go) | ||
|
||
## Get help | ||
|
||
Ask a question on the new [Build with Google AI Forum](https://discuss.ai.google.dev/), or open an [issue](https://github.com/google-gemini/cookbook/issues) on GitHub. | ||
|
||
## Contributing | ||
|
||
Contributions are welcome. See [contributing](https://github.com/google-gemini/cookbook/blob/main/CONTRIBUTING.md) to learn more. | ||
|
||
Thank you for developing with the Gemini API! We’re excited to see what you create. |