Skip to main content

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


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.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

ultimateapi-1.0.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file ultimateapi-1.0.0.tar.gz.

File metadata

  • Download URL: ultimateapi-1.0.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for ultimateapi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7b3df5eeb768c55b6d35b7f99f6f18d3dfb8713b4ed02687a9613c0248a2ff2c
MD5 bc085a44bd01278d9742a045e7cfbb75
BLAKE2b-256 f176dcc107efbe6418fd1a9044a6969f9f336f0f59e918d109fa8e90961055c6

See more details on using hashes here.

File details

Details for the file ultimateapi-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ultimateapi-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for ultimateapi-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f52fd4ea426ed3a53ef7003d7ebfc719b415b1a8ad7e8cfcb66db20f15484581
MD5 7d6a96b16dd7c40d2e8c1edfa2445a0a
BLAKE2b-256 053611f223c4a6f4ad02de5446f088699dc4081e6090564d27dcef1a4b40bbda

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