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.16.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for google_ai_generativelanguage-0.6.16.tar.gz
Algorithm Hash digest
SHA256 494f73c44dede1fd6853e579efe590f139d0654481d2a5bdadfc415ec5351d3d
MD5 56391b71441f269a54e9a15d3a8ac004
BLAKE2b-256 7a8bcb2da099282cf1bf65e4695a1365166652fd3cf136ce6af2cf9129394a54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_ai_generativelanguage-0.6.16-py3-none-any.whl
Algorithm Hash digest
SHA256 b53c736b8ebed75fe040d48740b0a15370d75e7dbc72249fb7acd2c9171bc072
MD5 a817f665f203b8f6e21edadd50fca33f
BLAKE2b-256 07e5b136691121ed600afc0327ffe3a5da3894774359f15520f33f1653c79a41

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page