Skip to content

WisdomFirm/gemini-pro-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Gemini Pro Quickstart 🚀

Version Status License

A clean, production-ready Python starter kit to interact with Google's Gemini Pro API. This project demonstrates authentication handling and generative text processing in a modular script.

Developed by WisdomFirm for developers exploring LLM integration.

⚠️ Development Notice (v0.1.0)

This project is currently a pre-release version (v0.1.0). It is designed for educational purposes and rapid prototyping. Production implementation may require additional error handling and security measures.

Prerequisites

  • Python 3.9 or higher
  • A Google Cloud project with the Gemini API enabled
  • An API Key for the Gemini API

Installation

1.  Clone the repository:     bash     git clone [https://github.com/WisdomFirm/gemini-pro-quickstart.git](https://github.com/WisdomFirm/gemini-pro-quickstart.git)     cd gemini-pro-quickstart    

2.  Install dependencies:     bash     pip install -r requirements.txt    

Usage

1.  Set up your API Key:     You can set your API key as an environment variable named GOOGLE_API_KEY.

    On Linux/macOS:     bash     export GOOGLE_API_KEY="YOUR_API_KEY"    

    On Windows (Command Prompt):     cmd     set GOOGLE_API_KEY=YOUR_API_KEY    

    On Windows (PowerShell):     powershell     $env:GOOGLE_API_KEY="YOUR_API_KEY"    

2.  Run the script:     bash     python main.py    

Example Output

--- Generating content with Gemini Pro --- 

Prompt: Write a short, inspirational quote about learning and technology.

Response:
"Technology is the brush, but learning is the art. Together, they paint a future limited only by our imagination."
------------------------------------------

License

This project is licensed under the MIT License - see the LICENSE file for details.


About

🚀 A production-ready Python starter kit for Google Gemini Pro API. Includes authentication handling and text generation examples.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages