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
File details
Details for the file google_ai_generativelanguage-0.6.13.tar.gz
.
File metadata
- Download URL: google_ai_generativelanguage-0.6.13.tar.gz
- Upload date:
- Size: 836.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d097fc4b1951b14fe0b27fb4ef618835e9778cbe200723f94c08b14de637533 |
|
MD5 | 84896839d50f979a5d6e12fb693f8b9e |
|
BLAKE2b-256 | d28af08a90c645b9efeaf5e812395aac816f468d2e0bc79d21b3279db29e6cdd |
File details
Details for the file google_ai_generativelanguage-0.6.13-py3-none-any.whl
.
File metadata
- Download URL: google_ai_generativelanguage-0.6.13-py3-none-any.whl
- Upload date:
- Size: 815.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7a6a42e9e39516d6cb51e163963e097177baa54adcc6602655aef613f0c9fef |
|
MD5 | d0493ef827d5e115ae5662221cacfdb2 |
|
BLAKE2b-256 | 54c7a4fae0de0c5610036ca4d548061eb9c37384e7c0bfa37b0d03000a27e085 |