ProxAI is a lightweight abstraction layer for foundational AI model connections.
Project description
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.
🤝 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.
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
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 proxai-0.2.0.tar.gz.
File metadata
- Download URL: proxai-0.2.0.tar.gz
- Upload date:
- Size: 50.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.9.6 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce357527ad5a7b2b9071e7457ca7d5b96e89d5babf5523dd553603b23edff6ae
|
|
| MD5 |
3900596e9ce826d7ef2ddbcaf1f344ed
|
|
| BLAKE2b-256 |
ea78647be39a6de0b54457e865eafe72df2518ee252cda8f89127671395f78ba
|
File details
Details for the file proxai-0.2.0-py3-none-any.whl.
File metadata
- Download URL: proxai-0.2.0-py3-none-any.whl
- Upload date:
- Size: 63.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.9.6 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4da139384863d7616c57d5e33fc901a16f1211327b920230feef3459b7725e9
|
|
| MD5 |
42d0430808ee1af93735ee1fcc973431
|
|
| BLAKE2b-256 |
9e4a31e1c3aa999878953656f4d87cdd12d69746c3b6700cf86d134231cbe948
|