Skip to main content

A Gemini AI wrapper with API key rotation and system prompt support.

Project description

Tenshi

Tenshi is a lightweight Gemini AI API wrapper designed for speed, reliability, and simplicity — especially for users relying on free API keys.

🔥 Features

  • 🔁 API Key Rotation – Auto-switches between multiple keys to bypass rate limits
  • 💬 System Prompt Support – Define a system role for consistent responses
  • 🎛️ Custom Temperature / Top-P – Fine-tune creativity and randomness
  • 🆓 Built for Free API Users – Works around quota and rate issues

✨ Installation

pip install tenshi

🚀 Quick Example

from tenshi import Tenshi

bot = Tenshi(api_keys=["your_api_key"])
bot.set_system("You are a helpful assistant.")
response = bot.generate("Hello!")
print(response)

📦 Use Cases

  • Avoid rate limits with free or limited API keys
  • Chain multiple keys for reliability
  • Add system prompts for role-based responses (e.g., tutor, assistant, etc.)
  • Quickly prototype chatbots or AI tools using Gemini

👤 Author

Made with purpose by @rubinexe


⚖️ License

MIT License

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

tenshi-0.1.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tenshi-0.1.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file tenshi-0.1.1.tar.gz.

File metadata

  • Download URL: tenshi-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for tenshi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 39106a10dff50f4af27d50bdc6e14e338b5127f4abd192619a54d36e3b4688cc
MD5 1825de0f733d967706d633e9ee7daa77
BLAKE2b-256 2228979c7e0e88623261d4a3dcd442574b4debf79b8cbfafe18c58d3542e4b59

See more details on using hashes here.

File details

Details for the file tenshi-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tenshi-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for tenshi-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2fa44688e5e4831c1557e758dac773bae843fa5aa0132b4c3a56d004a2d589b3
MD5 ed2964dd85b29d89fd3858f590db6979
BLAKE2b-256 89d1dd9eda05aa2d3d6d39bb082fc9254ffec3303a66111d0805667947f7eedd

See more details on using hashes here.

Supported by

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