Skip to main content

ProxAI is a lightweight abstraction layer for foundational AI model connections.

Project description

ProxAI

ProxAI Logo

PyPI version License Discord

⚡️ One Interface for Every AI Model! ⚡️

Official SiteOverviewDocsCommunity

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.

  1. Install ProxAI:

    pip install proxai
    
  2. 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.

  3. 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

⚖️ License

MIT License. See LICENSE for details.

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

proxai-0.2.20.tar.gz (95.7 kB view details)

Uploaded Source

Built Distribution

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

proxai-0.2.20-py3-none-any.whl (117.9 kB view details)

Uploaded Python 3

File details

Details for the file proxai-0.2.20.tar.gz.

File metadata

  • Download URL: proxai-0.2.20.tar.gz
  • Upload date:
  • Size: 95.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.14.2 Darwin/24.4.0

File hashes

Hashes for proxai-0.2.20.tar.gz
Algorithm Hash digest
SHA256 aeb6d8368ee29cda548a9acecbc9f28a7dc1676e260562996c4dbd0612318557
MD5 a927531d4e7d55ef20eea7ee09c495bd
BLAKE2b-256 ff06f0a352e4cb544dff5e7e8397ba099f9b3f44c0983db165d95114e3499b6c

See more details on using hashes here.

File details

Details for the file proxai-0.2.20-py3-none-any.whl.

File metadata

  • Download URL: proxai-0.2.20-py3-none-any.whl
  • Upload date:
  • Size: 117.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.14.2 Darwin/24.4.0

File hashes

Hashes for proxai-0.2.20-py3-none-any.whl
Algorithm Hash digest
SHA256 916b41806ed7997221891bc2367ac50028355b300d060e45bbc80dbdb91f2a35
MD5 3f79dcfb6abc58e5e189d0152b89d53a
BLAKE2b-256 40c4c310cc7e1b4c6205b70cc4ca4311968e1dfe1489ebcfec6a7a532eb9e807

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