Skip to main content

Google Ai Generativelanguage API client library

Project description

preview pypi versions

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:

  1. Select or create a Cloud Platform project.

  2. Enable billing for your project.

  3. Enable the Generative Language API.

  4. Setup Authentication.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

google_ai_generativelanguage-0.6.13.tar.gz (836.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file google_ai_generativelanguage-0.6.13.tar.gz.

File metadata

File hashes

Hashes for google_ai_generativelanguage-0.6.13.tar.gz
Algorithm Hash digest
SHA256 5d097fc4b1951b14fe0b27fb4ef618835e9778cbe200723f94c08b14de637533
MD5 84896839d50f979a5d6e12fb693f8b9e
BLAKE2b-256 d28af08a90c645b9efeaf5e812395aac816f468d2e0bc79d21b3279db29e6cdd

See more details on using hashes here.

File details

Details for the file google_ai_generativelanguage-0.6.13-py3-none-any.whl.

File metadata

File hashes

Hashes for google_ai_generativelanguage-0.6.13-py3-none-any.whl
Algorithm Hash digest
SHA256 b7a6a42e9e39516d6cb51e163963e097177baa54adcc6602655aef613f0c9fef
MD5 d0493ef827d5e115ae5662221cacfdb2
BLAKE2b-256 54c7a4fae0de0c5610036ca4d548061eb9c37384e7c0bfa37b0d03000a27e085

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page