Multi-provider AI API wrapper with automatic key rotation
Project description
UltimateAPI
A simple Python wrapper to use multiple AI providers with automatic API key rotation.
Features
- Multiple API key support (avoid rate limits)
- Simple function-based usage
- Clean and minimal design
- Secure (uses environment variables)
Installation
pip install ultimateapi
Setup Environment Variables
Set your API keys:
export GROQ_API_KEY_1="your_key_1"
export GROQ_API_KEY_2="your_key_2"
export GROQ_API_KEY_3="your_key_3"
export GROQ_API_KEY_4="your_key_4"
export GROQ_API_KEY_5="your_key_5"
export GROQ_API_KEY_6="your_key_6"
(Works similarly for other providers)
Usage
Groq Example
from ultimateapi import useGroq
response = useGroq("Explain AI in simple terms")
print(response)
How It Works
- Automatically selects a random API key
- Sends request using selected provider
- Returns response text
⚠️ Notes
- Do NOT hardcode API keys
- Make sure at least one API key is set
- Rate limits depend on provider
Author
Narendra Singh (codernsingh)
📜 License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ultimateapi-1.0.3.tar.gz
(2.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ultimateapi-1.0.3.tar.gz.
File metadata
- Download URL: ultimateapi-1.0.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fc8b41c3e13487423a74ba789e690a291055310c0f348d17fca04f7b57fa618
|
|
| MD5 |
06eaa0d7a0119019b60bc10d6437b887
|
|
| BLAKE2b-256 |
9846e43772d5c5480426d0ed93a81f1d6f9cd7b92a1e2aa87966f1c566c4383a
|
File details
Details for the file ultimateapi-1.0.3-py3-none-any.whl.
File metadata
- Download URL: ultimateapi-1.0.3-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73e77ded2852f0ae95857ddef732322dba25f60f29d43aced4700a2e5a6bf0e5
|
|
| MD5 |
0944c68a61fcf0cbc7be7866b1292fd8
|
|
| BLAKE2b-256 |
44a2364c2c3976ad820e41e4956f4b81c81f0a4d39a6a3b073dc86896237d91e
|