Google Ai Generativelanguage API client library
Project description
Generative Language API: The Gemini API allows developers to build generative AI applications using Gemini models. Gemini is our most capable model, built from the ground up to be multimodal. It can generalize and seamlessly understand, operate across, and combine different types of information including language, images, audio, video, and code. You can use the Gemini API for use cases like reasoning across text and images, content generation, dialogue agents, summarization and classification systems, and more.
Quick Start
In order to use this library, you first need to go through the following steps:
Installation
Install this library in a virtual environment using venv. venv is a tool that creates isolated Python environments. These isolated environments can have separate versions of Python packages, which allows you to isolate one project’s dependencies from the dependencies of other projects.
With venv, it’s possible to install this library without needing system install permissions, and without clashing with the installed system dependencies.
Code samples and snippets
Code samples and snippets live in the samples/ folder.
Supported Python Versions
Our client libraries are compatible with all current active and maintenance versions of Python.
Python >= 3.7
Unsupported Python Versions
Python <= 3.6
If you are using an end-of-life version of Python, we recommend that you update as soon as possible to an actively supported version.
Mac/Linux
python3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-ai-generativelanguage
Windows
py -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-ai-generativelanguage
Next Steps
Read the Client Library Documentation for Generative Language API to see other available methods on the client.
Read the Generative Language API Product documentation to learn more about the product and see How-to Guides.
View this README to see the full list of Cloud APIs that we cover.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for google-ai-generativelanguage-0.6.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4089c277fa4e26722f76ab03ee3039f28be8bf1c9be282948b9583a154c6d79 |
|
MD5 | 4a18912076821d16f7dd9807af981e2b |
|
BLAKE2b-256 | de720210f7d6fc3bae56414348310de614d5415276f0a9f7ec520504180790fb |
Hashes for google_ai_generativelanguage-0.6.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 236875bb4a6d6ebdba2f12bd9d5e776100fd913402157a47b5e9fb80a13f25a7 |
|
MD5 | a78745c555626a94b3271bbf1f00ac45 |
|
BLAKE2b-256 | 8eba918a5ea59988330a39e90fc01ded23cd683b380a11947b641f56e8a4c258 |