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.12.tar.gz (807.7 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for google_ai_generativelanguage-0.6.12.tar.gz
Algorithm Hash digest
SHA256 bfa03788803061c80c005e28fab5d96f465fcf1c7d28a1eefb1631fb4a2ab67f
MD5 34f34826137158177ae0a53fdb975625
BLAKE2b-256 7af43644823b302ba3ecc65942a447bf2fcc1d029c6df28ee6f9ba2748ffdb78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_ai_generativelanguage-0.6.12-py3-none-any.whl
Algorithm Hash digest
SHA256 2e178bb67a83e1419d98b621bde3cd24081ea18e61e209ac4ea03989b25b7724
MD5 dc1855e5b71b157a2b5e503e665818ad
BLAKE2b-256 371bab4c3439e55f7054099f2d46b2df4b4bd9593474be2d0fd71473575d5d5e

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