Skip to content

jfleach/gemini

Repository files navigation

Google Gemini AI Examples

This repository contains sample modules to interact with Google's Gemini AI.

API Key Setup

Generate a Gemini API key from the Google AI Studio and add GEMINI_API_KEY=YOUR_API_KEY to the .env file in the root directory.

Virtual Environment Setup and Requirements Installation

Issue the following commands to setup the virtual environment and install the requirements.

$ python3 -m venv venv
$ python3 pip3 install -r requirements.txt
$ source venv/bin/activate

Running the Examples

Issue the following commands to run the examples.

$ python3 generate_content.py
$ python3 generate_image.py
$ python3 generate_video.py

Running the Tests

Issue the following commands to run the unit tests.

$ pytest

References

Gemini Developer API

About

Google Gemini AI Examples

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages