ProxAI
Philosophy
ProxAI simplifies AI integration by providing a unified interface for connecting to multiple AI providers.
import proxai as px
result = px.generate_text(
'Hello model! What is 23 + 45?',
provider_model=('claude', 'sonnet'))
print(result)
result = px.generate_text(
'Hello model! What is 23 + 45?',
provider_model=('openai', 'gpt-4o'))
print(result)
- ⭐️ Simple Unified API: Pythonic, easy, intuitive, and unified API for all AI models connection.
- 💡 All Major AI Providers: Including Gemini, OpenAI, Claude, Grok, DeepSeek, Cohere, Mistral, and more.
- 🚀 Always Up-to-Date: Let ProxAI handle all new released model integrations, you just list and pick.
- 💻 Model-agnostic AI development: Write python code without thinking which AI provider and model you will use.
Features
- ⏰ Ready to Start: Takes 2 minutes to connect and get responses from all major models.
- 🔍 Pick and Switch: Experiment with different models to find the best fit.
- ⛑️ Robust Error Handling: Comprehensive error handling for API failures.
- 💾 Caching: Speed up responses and reduce costs with built-in query and model caching.
- 💰 Cost Estimation: Basic tracking of your estimated API call costs breakdown.
- 🥂 Integrations Status: See the status of all your integrations at a glance.
- 📊 Analytics: Total token usage, performance metrics, and more.
Quick Start
Check out our Quick Start Guide for a step-by-step guide on how to get started with ProxAI.
-
Install ProxAI:
pip install proxai
-
Set API Keys:
Export your AI provider API keys as environment variables:
export OPENAI_API_KEY="your-openai-key" export GEMINI_API_KEY="your-openai-key" export ANTHROPIC_API_KEY="your-anthropic-key" # Add other provider keys as needed
or, one API key rule them all! ProxConnect🚀
export PROXAI_API_KEY="your-proxai-key"
See Provider Integrations page.
-
Basic Usage:
import proxai as px # Write model agnostic function def get_meaning_of_universe(): response = px.generate_text('What is the meaning of universe?') print(response) # List available models provider_models = px.models.list_models() # Generate response for each model for provider_model in provider_models: px.set_model(provider_model) print(f"Testing {provider_model} model") get_meaning_of_universe()
📚 Documentation
For full details on installation, all features, and advanced usage, please visit our Overview and Documentation.
📈 ProxDash (Optional Dashboard)
Enhance your ProxAI experience with ProxDash, our optional monitoring platform for usage tracking, analytics, and experiment management. The ProxAI library works perfectly standalone.
Local development setup
After cloning, run this once so on-disk file-permission changes don't surface as spurious modifications in git status:
git config --local core.fileMode false
All files in this repo are committed with the executable bit set so individual run scripts work directly. Files arrive on your disk as 0755 after git pull. If you prefer broader perms (e.g. 0777) for your local workflow, chmod -R 777 . is safe — with core.fileMode false set, the change stays invisible to git.
🤝 Contribute & Connect
- Community: Learn how to contribute
- Discord: Join our server
- Issues: Report bugs or request features
- GitHub: https://github.com/proxai/proxai
⚖️ License
MIT License. See LICENSE for details.
Metadata
Release files for proxai 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| proxai-0.3.2.tar.gz | 151.8 kB | Without provenance | Details for proxai-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| proxai-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for proxai-0.3.2-py3-none-any.whl |
Total release size: 334.5 kB
Release files / proxai-0.3.2.tar.gz
| Download URL | proxai-0.3.2.tar.gz |
|---|---|
| Size | 151.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f33da1d7fe1a3c099d65fe87d3546bd625bf7c4a3728ae01e8727816ae49a5d
|
|
BLAKE2b-256 checksum How to use checksums |
d7d62667ecff6b3244bcedb0343ef00f34b89fc29036abab03f104a807ea13af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.1 CPython/3.14.2 Darwin/24.4.0
|
Release files / proxai-0.3.2-py3-none-any.whl
| Download URL | proxai-0.3.2-py3-none-any.whl |
|---|---|
| Size | 182.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4db26708a9ca6b00dc83319801c921102e97a1613caf609116f833013f36c436
|
|
BLAKE2b-256 checksum How to use checksums |
4aabdc59486fb201b1ef6385871add912a22a96e874c374dbea694249ee5f99f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.1 CPython/3.14.2 Darwin/24.4.0
|
Security for proxai 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.