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.0.tar.gz (3.2 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.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tenshi-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 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.0.tar.gz
Algorithm Hash digest
SHA256 cc3c5458fed583b4b8da4406ebcde45309922be44c53ad3e8e57f530c34ff7d6
MD5 fc5a8881e2e2a133c180ba953d4924c6
BLAKE2b-256 bbd655c6091bab0a084bc4424a35707dc52784a862cc3f8d0568c3b17fc8407d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tenshi-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8823e5241ca5837937c6c3649acf6347372b92802cfbf59d2d8ec70047e0c910
MD5 f66ef431d663b8ee5bcbbed3ec10f043
BLAKE2b-256 236382306370382ac8f671ed3fa891a8c392e03e7f828022c5ef0b04f1120fc4

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